Package Bio :: Module SeqRecord :: Class SeqRecord
[show private | hide private]
[frames | no frames]

Class SeqRecord


A SeqRecord object holds a sequence and information about it.

Main attributes: id - Identifier such as a locus tag (string) seq - The sequence itself (Seq object)

Additional attributes: name - Sequence name, e.g. gene name (string) description - Additional text (string) dbxrefs - List of database cross references (list of strings) features - Any (sub)features defined (list of SeqFeature objects) annotations - Further information about the whole sequence (dictionary)
Method Summary
  __init__(self, seq, id, name, description, dbxrefs, features)
Create a SeqRecord
  __repr__(self)
  __str__(self)

Method Details

__init__(self, seq, id='<unknown id>', name='<unknown name>', description='<unknown description>', dbxrefs=None, features=None)
(Constructor)

Create a SeqRecord

Arguments: seq - Sequence, required (Seq object) id - Sequence identifier, recommended (string) name - Seqeuence name, optional (string) description - Seqeuence description, optional (string) dbxrefs - Database cross references, optional (list of strings) features - Any (sub)features, optional (list of SeqFeature objects)

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.

You can create a 'blank' SeqRecord object can then populated the attributes later. Note that currently the annotations dictionary cannot be specified when creating the SeqRecord.

Generated by Epydoc 2.1 on Mon Aug 27 16:43:52 2007 http://epydoc.sf.net