[Biopython] random peptide sequences

ferreirafm at usp.br ferreirafm at usp.br
Fri Apr 6 06:44:04 EDT 2012


Hi Peter,
quick replaying also: thanks.

Citando Peter Cock <p.j.a.cock at googlemail.com>:

> Just a quick reply - try changing this:
>
> rec = SeqRecord('GPGPG'.join(peplist), id="pep%s" % k)
>
> to
>
> rec = SeqRecord(Seq('GPGPG'.join(peplist)), id="pep%s" % k)
>
> You'll need to add this import line at the start as well,
> from Bio.Seq import Seq
>



More information about the Biopython mailing list