Skip to content

Commit

Permalink
add kegg enrichment function tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjaynagi committed Apr 19, 2023
1 parent d2a7719 commit dded835
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion tests/test_anoexpress.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,22 @@ def test_plot_gene_expression_type(plot_type):
analysis="gamb_colu",
microarray=False,
plot_type=plot_type,
)
)

def test_go_hypergeometric():
go = xpress.go_hypergeometric(analysis='gamb_colu_arab_fun', name="median", func=np.nanmedian
)
assert isinstance(go, pd.DataFrame)
assert go.iloc[0,0] == 'GO:0042302' # check first value is correct

def test_pfam_hypergeometric():
pfam = xpress.pfam_hypergeometric(analysis='gamb_colu_arab_fun', name="median", func=np.nanmedian
)
assert isinstance(pfam, pd.DataFrame)
assert pfam.iloc[0,0] == 'C_tripleX' # check first value is correct

def test_kegg_hypergeometric():
kegg = xpress.kegg_hypergeometric(analysis='gamb_colu_arab_fun', name="median", func=np.nanmedian
)
assert isinstance(kegg, pd.DataFrame)
assert kegg.iloc[0,0] == 'aga00982' # check first value is correct

0 comments on commit dded835

Please sign in to comment.