marioangst / motifr

Motif analysis in multi-level networks
https://marioangst.github.io/motifr/
Other
13 stars 2 forks source link

explicit return if motif cannot be found #50

Closed marioangst closed 4 years ago

marioangst commented 4 years ago

We should have a return (it would make sense if this was returned from sma) if a motif cannot be found in a given network.

This would make for a much better UI in show_motif and explore_motifs, because we could then throw an explicit error message (eg. "the motif(s) xxx do not exist in the network supplied")

tseppelt commented 4 years ago

With the next version of sma (2.1.2, currently being uploaded to PyPI), exemplify_motif will return NULL instead of raising an error:


 > exemplify_motif(directed_dummy_net, "2,1[III.C.6]")
NULL
marioangst commented 4 years ago

wrapped up in 400400b0940e7b8243adf65dafd32714a2647d79