def bio_reverse_comp( fname ): fasta = get_index( fname, tag='bio', flag='c') keys = fasta.keys() keys.sort() for rec in keys: seq = fasta[rec].seq.reverse_complement() sub = seq.tostring() fasta.close()
def pygr_reverse_comp( fname ): fasta = seqdb.SequenceFileDB( fname ) keys = fasta.keys() keys.sort() for rec in keys: # force full reverse complement seq = str(-fasta[rec]) sub = seq[:10]
def bio_reverse_comp(fname): fasta = get_index(fname, tag='bio', flag='c') keys = fasta.keys() keys.sort() for rec in keys: seq = fasta[rec].seq.reverse_complement() sub = seq.tostring() fasta.close()
def pygr_reverse_comp(fname): fasta = seqdb.SequenceFileDB(fname) keys = fasta.keys() keys.sort() for rec in keys: # force full reverse complement seq = str(-fasta[rec]) sub = seq[:10]
def cogent_reverse_comp( fname ): fasta = get_index( fname, tag='cogent', flag='c') keys = fasta.keys() keys.sort() for rec in keys: seq = fasta[rec].reversecomplement() seq = str(seq) sub = seq[:10] fasta.close()
def cogent_reverse_comp(fname): fasta = get_index(fname, tag='cogent', flag='c') keys = fasta.keys() keys.sort() for rec in keys: seq = fasta[rec].reversecomplement() seq = str(seq) sub = seq[:10] fasta.close()