ora
Run a single-omic ORA with files at the provided paths.
Parameters
gmt_path
-String
of the path to the gmt file of interestanalyte_list_path
-String
of the path to the analyte file of interest.reference_list_path
Returns
Returns a list of dictionaries with the results containing the ORA results for every set.
Panics
Panics if the any file is malformed or not at specified path.
Example
import webgestaltpy
res = webgestaltpy.ora("kegg.gmt", "gene_list.txt", "reference.txt")
print(res[0:2]) ## print first two results
Output
[
{
'set': 'has00010',
'p': 0.7560574551180973,
'fdr': 1,
'overlap': 2,
'expected': 2.6840874707743088,
'enrichment_ratio': 0.7451321992211519
},
{
'set': 'has00020',
'p': 0.7019892669020903,
'fdr': 0.9981116297866582,
'overlap': 1,
'expected': 1.1841562371063128,
'enrichment_ratio': 0.8444831591173054
}
]