def test_merge_tfo(self): txp = RNADNAInteractionSet(organism="hg19", filename=sample_txp) txp.merge_tfo() print(map(len, txp.merged.values()))
def test_filter_tts(self): txp = RNADNAInteractionSet(organism="hg19", filename=sample_txp) g = GenomicRegionSet("g") s = GenomicRegion(chrom="chr2", initial=74000000, final=75000000) g.add(s) result = txp.count_tts(g)
def test_unique_tfo(self): txp = RNADNAInteractionSet(organism="hg19", filename=sample_txp) txp.unique_tfo()
def test_filter_tfo(self): txp = RNADNAInteractionSet(organism="hg19", filename=sample_txp) txp.filter_tfo(start=500, end=1000, output=False, adverse=True)
def test_count_tfo(self): txp = RNADNAInteractionSet(organism="hg19", filename=sample_txp)
def test_read_txp(self): txp = RNADNAInteractionSet(organism="hg19", filename=sample_txp) a = len(txp) b = txp[3]
def test_sort_tts(self): txp = RNADNAInteractionSet(organism="hg19", filename=sample_txp) txp.sort_tts()
def test_filter_tfo(self): txp = RNADNAInteractionSet(organism="hg19", filename=sample_txp) txp.filter_tfo(start=500,end=1000, output=False, adverse=True)