Package Bio :: Package GFF :: Class RetrieveSeqname
[hide private]
[frames] | no frames]

Class RetrieveSeqname

source code

            object --+    
                     |    
GenericTools.Surrogate --+
                         |
            object --+   |
                     |   |
   SeqRecord.SeqRecord --+
                         |
                        RetrieveSeqname

Singleton: contain records of loaded FASTA files

>>> RetrieveSeqname._dir = 'GFF'
>>> RetrieveSeqname._diagnostics = 1
>>> sys.stderr = sys.stdout # dump diagnostics to stdout so doctest can see them
>>> record1 = RetrieveSeqname('NC_001802.fna')
Loading GFF/NC_001802.fna... Done.
>>> record1.id
'gi|9629357|ref|NC_001802.1|'
>>> record2 = RetrieveSeqname('NC_001802.fna')
>>> record1.seq is record2.seq # should be same space in memory
1
Instance Methods [hide private]
 
__init__(self, seqname)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code

Inherited from GenericTools.Surrogate: __getattr__

Inherited from SeqRecord.SeqRecord: __add__, __contains__, __format__, __getitem__, __iter__, __len__, __nonzero__, __radd__, __repr__, __str__, format, lower, upper

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]
  __records = {}
  _diagnostics = 0
Properties [hide private]

Inherited from SeqRecord.SeqRecord: letter_annotations, seq

Inherited from object: __class__

Method Details [hide private]

__init__(self, seqname)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)