Table of Contents

Module: __init__ Bio/Gobase/__init__.py

Gobase

This module provides code to work with files from http://megasun.bch.umontreal.ca/gobase/

Classes: Record Holds gobase sequence data. Iterator Iterates over sequence data in a gobase file. Dictionary Accesses a gobase file using a dictionary interface. RecordParser Parses gobase sequence data into a Record object. SequenceParser Parses gobase sequence data into a Sequence object.

_Scanner Scans a gobase-format stream. _RecordConsumer Consumes gobase data to a Record object. _SequenceConsumer Consumes gobase data to a Sequence object.

Functions: index_file Index a FASTA file for a Dictionary.

Imported modules   
from Bio.ParserSupport import *
from types import *
Functions   
index_file
  index_file 
index_file (
        filename,
        indexname,
        rec2key=None,
        )

index_file(filename, ind/exname, rec2key=None)

Index a gobase file. filename is the name of the file. indexname is the name of the dictionary. rec2key is an optional callback that takes a Record and generates a unique key (e.g. the accession number) for the record. If not specified, the sequence title will be used.

Exceptions   
KeyError, "duplicate key %s found" % key
KeyError, "empty sequence key was produced"
ValueError, "%s does not exist" % filename
Classes   
Dictionary

Accesses a gobase file using a dictionary interface.

GeneRecord

Holds information from a Gobase record.

Iterator

Returns one record at a time from a Gobase file.

ProteinRecord

Holds information from a Gobase record.

Record

Holds information from a Gobase record.

RecordParser

Parses Gobase sequence data into a Record object.

SequenceParser

Parses gobase sequence data into a Sequence object.

SequenceRecord

Holds information from a Gobase record.

_RecordConsumer

Consumer that converts a gobase record to a Record object.

_Scanner

Scans a gobase file.


Table of Contents

This document was automatically generated on Sat Jul 7 09:49:52 2001 by HappyDoc version r1_5