load_genes(geneinter_file='
' ,
ignore_file='
' ,
squaring=True)
| source code
|
Loads all of the gene pairs and their corresponding interaction scores
into memory. It also keeps a set of all genes for iterative purposes.
- There is some criteria for excluding genes from this process:
- If an ignore gene list file is provided, any gene in that file
is excluded from the set of genes used.
- If an interaction score is zero, it is KEPT in the set of
genes used to generate BPMs with an interaction score of 0.
This gene information is then available at the 'geneint' module level,
since they are both used pervasively throughout BPM generation.
Finally, if we add the gene pair (g1, g2) with score S to the dictionary,
then we'll also add (g2, g1) with score S to the dictionary. This increases
memory usage but saves cpu cycles when looking up interaction scores.
Basically, we force the dictionary to be a reflexive matrix.
|