[Biopython] better way to reverse complement?
Cedar McKay
cmckay at u.washington.edu
Wed Jun 24 22:36:58 UTC 2009
Is there a more efficient way to write reverse complemented records to
file than I use?
I'm doing:
record = SeqRecord(record.seq.reverse_complement(), record.name)
out_handle.write(record.format('fasta'))
Is there a way to write the record directly, while specifying that we
want the reverse complement version? Would it be useful to allow
methods of a record or sequence object to be applied during writing?
Making a whole new record just because we want to write a reverse
complement seems cumbersome.
Thanks,
Cedar
More information about the Biopython
mailing list