| Trees | Indices | Help |
|
|---|
|
|
Access to General Feature Format databases created with BioPerl (DEPRECATED). This is the "old" Bio.GFF module by Michael Hoffman, which offers access to a MySQL database holding GFF data loaded by BioPerl. This code has now been deprecated, and will be removed (or at best, relocated) in order to free the Bio.GFF namespace for a new GFF parser in Biopython (including GFF3 support). Based on documentation for Lincoln Stein's Perl Bio::DB::GFF >>> import os >>> import Bio.GFF >>> PASSWORD = os.environ['MYSQLPASS'] >>> DATABASE_GFF = 'wormbase_ws93' >>> FASTADIR = '/local/wormbase_ws93/' >>> gff = Bio.GFF.Connection(passwd=PASSWORD, db=DATABASE_GFF, fastadir=FASTADIR)
Version: $Revision: 1.10 $
|
|||
| |||
|
|||
|
Segment this will only work for the simplest of easy.Location objects |
|||
|
Connection Connection to GFF database |
|||
|
RetrieveSeqname Singleton: contain records of loaded FASTA files |
|||
|
Feature strand may be: +/0 = Watson -/1 = Crick |
|||
|
FeatureQueryRow row of FeatureQuery results... |
|||
|
FeatureQuery SELECT fdata.fref AS seqname,... |
|||
|
FeatureAggregate >>> feature1_1 = Feature(location=easy.LocationFromString("NC_001802x.fna:336..1631"), frame=0) # gag-pol >>> feature1_2 = Feature(location=easy.LocationFromString("NC_001802x.fna:1631..4642"), frame=0) # slippage >>> aggregate = FeatureAggregate([feature1_1, feature1_2]) >>> print aggregate.location() join(NC_001802x.fna:336..1631,NC_001802x.fna:1631..4642) >>> xlate_str = aggregate.translate().tostring() >>> xlate_str[:5], xlate_str[-5:] ('MGARA', 'RQDED') |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
DEFAULT_ALPHABET = IUPACUnambiguousDNA()
|
|||
__warningregistry__ =
|
|||
|
|||
>>> object_split("Sequence:F02E9.2a")
('Sequence', 'F02E9.2a')
|
|
|||
__warningregistry__
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0.1 on Thu Aug 18 17:53:32 2011 | http://epydoc.sourceforge.net |