Sourcecode: plaintext highlighted
checkembl.intron
checkembl.testembl
checkembl.maketrembl
Makes a sequence objects from a string. Prints in a variety of formats Can do a simple translation from dna->protein sequence. See maketrembl module.
Sourcecode: plaintext highlighted
Only the methods with 'fmt_' prefix are the sequence format methods. Others are internal methods
classseq.SeqFormat
Methods: __init__ : format : error : fmt_gcg : fmt_genbank : fmt_fasta : fmt_staden : fmt_raw : fmt_pir : fmt_asn : fmt_nbrf : fmt_embl : fmt_swiss : fmt_ig : fmt_stdpir
- method __init__ ()
classseq.SeqFormat.__init__
- method format (command, args=None) Sets the format if available.
Otherwise raises formatError
classseq.SeqFormat.format
- method error (mname) Report (SeqFormat) Error:
classseq.SeqFormat.error
- method fmt_gcg (seq, name=None) prints the sequence in gcg format
classseq.SeqFormat.fmt_gcg
- method fmt_genbank (seq, name=None) prints the sequence in genbank format
classseq.SeqFormat.fmt_genbank
- method fmt_fasta (seq, name) prints the sequence in FASTA format
classseq.SeqFormat.fmt_fasta
- method fmt_staden (seq, name) prints the sequence in STADEN format
classseq.SeqFormat.fmt_staden
- method fmt_raw (seq, name) just prints the sequence
classseq.SeqFormat.fmt_raw
- method fmt_pir (seq, name) prints the sequence in PIR format
classseq.SeqFormat.fmt_pir
- method fmt_asn (seq, name='tmp')
classseq.SeqFormat.fmt_asn
- method fmt_nbrf (seq, name='tmp')
classseq.SeqFormat.fmt_nbrf
- method fmt_embl (seq, name=None) prints the sequence in EMBL format
classseq.SeqFormat.fmt_embl
- method fmt_swiss (seq, name=None) prints the sequence in SWISSPROT format
classseq.SeqFormat.fmt_swiss
- method fmt_ig (seq, name=None) prints in ig/standord format
classseq.SeqFormat.fmt_ig
- method fmt_stdpir (seq, name=None)
classseq.SeqFormat.fmt_stdpir
Makes a sequence object. Removes all numeric values, spaces and line feed if there is any.
Inherits SeqFormat class.
classseq.Seq
Methods: __init__ : __repr__ : GetFormats : Len : SetFormat : WhichFormat : SeqPrint : SubSeq : Subseq : Get : SetName : SeqInfo : translate
- method __init__ (seq=None, name=None, seqType=None)
classseq.Seq.__init__
- method __repr__ () print the sequence object. The format should be set
before printing.
classseq.Seq.__repr__
- method GetFormats () Returns all the available formats
classseq.Seq.GetFormats
- method Len () Returns length of the sequence
classseq.Seq.Len
- method SetFormat (name) Sets the format to print with
classseq.Seq.SetFormat
- method WhichFormat () Returns the current format set
classseq.Seq.WhichFormat
classseq.Seq.SeqPrint
- method SubSeq (ifrom, ito) Returns the subsequence of a sequence as a sequence object
classseq.Seq.SubSeq
- method Subseq (ifrom, ito) Returns subsequence as a string
classseq.Seq.Subseq
- method Get (ifrom, ito) Returns the sequence as a string
classseq.Seq.Get
- method SetName (name) Sets a name for the sequence
classseq.Seq.SetName
- method SeqInfo () Prints info about the sequence object
classseq.Seq.SeqInfo
classseq.trans
classseq.gcgchecksum
splits rather slices the string, for 'n' charecters
classseq.stringSplit
returns true when j is between a and b
classseq.between
general purpose printing function. Prints the string s with numchars in each column for ncols. The line is prefixed if with prefix string and number of charecters printed in each line is printed when printlineno is true.
This function is enough to take care of embl/swissprot/fasta etc., formats.
classseq._printString
general purpose printing function. Prints the string s with numchars in each column for ncols. The line is prefixed if with prefix string and number of charecters printed in each line is printed when printlineno is true.
This function is enough to take care of embl/swissprot/fasta etc., formats.
classseq.printStringGcg
Let us test it
classseq.test
Another test
classseq.test2
classseq.ttest
Sourcecode: plaintext highlighted
database.ReadLine
Methods: __init__ : __getitem__
Abstract parser for database entry. Based on the parse dictionary's keys the fields of an entry becomes the attributes to the instance. Access to the fields are through the instance.attribute or through Field method.
database.DBParser
Methods: __init__ : Init : Parse : Field : PrintFields : ReParse
- method __init__ (parserDict={}, parseFields=None)
database.DBParser.__init__
- method Init (parserDict, parseFields=None)
database.DBParser.Init
- method Field (name)
database.DBParser.Field
- method PrintFields ()
database.DBParser.PrintFields
- method ReParse (str, retToken, pat) str:string to parse, retToken:return token, pat:parser
database.DBParser.ReParse
database class provides interface to open the database files through NextFile method if the current file is reached EOF, then the next file is opened for reading, this is done automatically by NextEntry. read the entries through NextEntry method. Opens the next file through NextFile method if current file is reached EOF.
database.database
Methods: __init__ : tell : seek : Info : Init : OpenFile : ActiveFile : NextFile : Close : NextEntry : _NextEntry
- method __init__ (dbName=None, dbtype=None)
database.database.__init__
- method tell ()
database.database.tell
- method seek (pos)
database.database.seek
- method Info ()
database.database.Info
- method Init (dbName, dbType=None)
database.database.Init
- method OpenFile (fileName)
database.database.OpenFile
- method ActiveFile ()
database.database.ActiveFile
- method NextFile ()
database.database.NextFile
- method Close ()
database.database.Close
database.dbInformation
database.testembl
database.testswissprot
database.testpdbfinder
database.testenzyme
database.testgenbank
Sourcecode: plaintext highlighted
Sourcecode: plaintext highlighted
Sourcecode: plaintext highlighted
feat.ftobj
feat.findob
Methods: __init__ : _search : search : empty : printf : ftgetfor : next : ftget_keyval
- method __init__ (pat=r'FT [a-zA-Z]+[^\n]+\n(FT [^\n]+\n)*', parentid=None)
feat.findob.__init__
- method _search (stri, pat=None)
feat.findob._search
- method search (stri, pat=None)
feat.findob.search
- method empty ()
feat.findob.empty
- method printf (tmplist=None)
feat.findob.printf
- method ftgetfor (key='')
feat.findob.ftgetfor
- method next ()
feat.findob.next
- method ftget_keyval (key, val='')
feat.findob.ftget_keyval
Sourcecode: plaintext highlighted
Sourcecode: plaintext highlighted
generate_dbs.intron
generate_dbs.testembl
generate_dbs.maketrembl
Sourcecode: plaintext highlighted
complement returns strings. join should handle range as well as strings.
jo.expfeat
Methods: __init__ : getfeature : join : complement
Sourcecode: plaintext highlighted
pdbfinder_parser.CheckConflict
pdbfinder_parser.testpdbfinder
Sourcecode: plaintext highlighted
prosite_parser.testprosite
prosite_parser.testprosite2
Sourcecode: plaintext highlighted
Sourcecode: plaintext highlighted
Created by Doc-Tool V0.9 on Thu Oct 19 14:08:07 2000