Package bpm :: Module bpmreader
[hide private]
[frames] | no frames]

Module bpmreader

source code

Provides a function to read and parse a BPM file into a nice data structure.
Functions [hide private]
 
read(f)
A BPM file reader function. Assumes 'f' is in the CSV file format that is the output from the 'mkbpms' program. (i.e., one module per line with the module name in the first column followed by its genes in subsequent columns.)
source code
Variables [hide private]
  __package__ = 'bpm'
Function Details [hide private]

read(f)

source code 

A BPM file reader function. Assumes 'f' is in the CSV file format that is the output from the 'mkbpms' program. (i.e., one module per line with the module name in the first column followed by its genes in subsequent columns.)

The returned data structure is a list of tuples. Each tuple represents a BPM where the first element is a list of genes in the first module and the second element is a list of genes in the second module.

i.e., [([Gene], [Gene])]