Bases: object
SeqGroup class can be used to store a set of sequences (aligned or not).
Parameters: |
|
---|
msf = ">seq1\nAAAAAAAAAAA\n>seq2\nTTTTTTTTTTTTT\n"
seqs = SeqGroup(msf, format="fasta")
print seqs.get_seq("seq1")
Returns the list of entries currently stored.
Returns the sequence associated to a given entry name.
Returns an iterator over all sequences in the collection. Each item is a tuple with the sequence name, sequence, and sequence comments
Updates or adds a sequence
Returns the text representation of the sequences in the supplied given format (default=FASTA). If “oufile” argument is used, the result is written into the given path.