def tss_generator(): for transcript in db.features_of_type('mRNA'): #CDS/gene/mRNA... yield TSS(asinterval(transcript), upstream=1, downstream=0)
def tss_generator(): for transcript in db.features_of_type('transcript'): yield TSS(asinterval(transcript), upstream=1000, downstream=1000)
def tss_generator(): """ Generator function to yield TSS of each annotated transcript """ for transcript in db.features_of_type('transcript'): yield TSS(asinterval(transcript), upstream=1, downstream=0)