krumsieklab / maplet

R statistical toolbox for metabolomics
GNU General Public License v3.0
17 stars 6 forks source link

mt_plots_net should throw better error when all edges are filtered out #148

Open KelseyChetnik opened 3 years ago

KelseyChetnik commented 3 years ago

In GitLab by @kelsey.chetnik on Jan 23, 2021, 13:35

When corr_filter is set too low and all edges are removed, the function throws an error that's hard to interpret. The function should catch this case and throw a proper error.

KelseyChetnik commented 3 years ago

In GitLab by @kelsey.chetnik on @krumsiek on Jan 24, 2021, 17:56

Clarification: I mean the case when no edge meets e.g. the p-value cutoff.