Package Bio :: Package GenBank :: Module Record
[hide private]
[frames] | no frames]

Module Record

source code

Hold GenBank data in a straightforward format.

classes:

17-MAR-2009: added support for WGS and WGS_SCAFLD lines. Ying Huang & Iddo Friedberg

Classes [hide private]
  Record
Hold GenBank information in a format similar to the original record.
  Reference
Hold information from a GenBank reference.
  Feature
Hold information about a Feature in the Feature Table of GenBank record.
  Qualifier
Hold information about a qualifier in a GenBank feature.
Functions [hide private]
 
_wrapped_genbank(information, indent, wrap_space=1, split_char=' ')
Write a line of GenBank info that can wrap over multiple lines.
source code
 
_indent_genbank(information, indent)
Write out information with the specified indent.
source code
Variables [hide private]
  __package__ = 'Bio.GenBank'
Function Details [hide private]

_wrapped_genbank(information, indent, wrap_space=1, split_char=' ')

source code 

Write a line of GenBank info that can wrap over multiple lines.

This takes a line of information which can potentially wrap over multiple lines, and breaks it up with carriage returns and indentation so it fits properly into a GenBank record.

Arguments:

  • information - The string holding the information we want wrapped in GenBank method.
  • indent - The indentation on the lines we are writing.
  • wrap_space - Whether or not to wrap only on spaces in the information.
  • split_char - A specific character to split the lines on. By default spaces are used.

_indent_genbank(information, indent)

source code 

Write out information with the specified indent.

Unlike _wrapped_genbank, this function makes no attempt to wrap lines -- it assumes that the information already has newlines in the appropriate places, and will add the specified indent to the start of each line.