__init__(self,
adaptor,
primary_id)
(Constructor)
| source code
|
Create a SeqRecord.
Arguments:
-
seq - Sequence, required (Seq, MutableSeq or UnknownSeq)
-
id - Sequence identifier, recommended (string)
-
name - Sequence name, optional (string)
-
description - Sequence description, optional (string)
-
dbxrefs - Database cross references, optional (list of strings)
-
features - Any (sub)features, optional (list of SeqFeature
objects)
-
annotations - Dictionary of annotations for the whole sequence
-
letter_annotations - Dictionary of per-letter-annotations, values
should be strings, list or tuples of the same length as the full
sequence.
You will typically use Bio.SeqIO to read in sequences from files as
SeqRecord objects. However, you may want to create your own SeqRecord
objects directly.
Note that while an id is optional, we strongly recommend you supply a
unique id string for each record. This is especially important if you
wish to write your sequences to a file.
If you don't have the actual sequence, but you do know its length,
then using the UnknownSeq object from Bio.Seq is appropriate.
You can create a 'blank' SeqRecord object, and then populate the
attributes later.
- Overrides:
object.__init__
- (inherited documentation)
|