Did I find the right examples for you? yes no

All Samples(5)  |  Call(5)  |  Derive(0)  |  Import(0)

src/e/e/eebprogramming-HEAD/lec10review/annotations.py   eebprogramming(Download)
print aln
exon = aln.getSeq('x').addAnnotation(Feature, 'exon', 'fred', [(3,8)])
aln_exons = aln.getAnnotationsFromSequence('x', 'exon')
aln_exons = aln.getAnnotationsFromAnySequence('exon')
print exon
exon = s.addAnnotation(Feature, 'exon', 'fred', [(3,8)])
exon = aln.getSeq('x').copyAnnotations(s)
aln_exons = list(aln.getAnnotationsFromSequence('x', 'exon'))
print aln_exons
aln = LoadSeqs(data=[['x', '-AAAAAAAAA'], ['y', '------TTTT']])
exon = aln.getSeq('x').addFeature('exon', 'fred', [(3,8)])
aln_exons = list(aln.getAnnotationsFromSequence('x', 'exon'))
aln = LoadSeqs(data=[['x', '-AAAAAAAAA'], ['y', 'TTTT--T---']])
exon = aln.getSeq('x').addFeature('exon', 'fred', [(3,8)])
aln_exons = list(aln.getAnnotationsFromSequence('x', 'exon'))
print aln_exons[0].getSlice()
aln = LoadSeqs(data=[['x', 'C-CCCAAAAA'], ['y', '-T----TTTT']])
print aln
exon = aln.getSeq('x').addFeature('exon', 'ex1', [(0,4)])
print exon
print exon.getSlice()
aln_exons = list(aln.getAnnotationsFromSequence('x', 'exon'))