Home | Trees | Indices | Help |
|
---|
|
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|
|||
__package__ =
|
|
After all BPMs are generated, two different pruning mechanisms are applied. The first is pruning all BPMs that have a module less than the minimum size or greater than the maximum size. If either is 0, then the pruning for that constraint is skipped. The second pruning mechanism is more complex. Essentially, the interaction weight of each BPM is calculated (see 'interweight') and the list of BPMs are then sorted by that interaction weight in descending order. Starting from the beginning, BPMs are then added to final set of BPMs if and only if its Jaccard index with every BPM already in the final set is less than the threshold. |
Calculates the interaction weight of a BPM. It is defined as the difference of sums of interaction scores within each module and the sum of interaction scores between each module divided by the number of genes in the entire BPM. The value returned is a BPM "decorated" with the interaction weight for sorting purposes. This roundabout means of decoration is used so that parallelism can be used for calculating the interaction weights. (As opposed to using a higher order function with 'sorted'.) |
The Jaccard index of a BPM: the number of genes in the intersection of bpm1 and bpm2 divided by the number of genes in the union of bpm1 and bpm2. A BPM is simply the union of its corresponding modules. |
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu Sep 6 16:38:34 2012 | http://epydoc.sourceforge.net |