Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

running retropath2 on colab? #18

Open
bbanzai88 opened this issue May 12, 2024 · 0 comments
Open

running retropath2 on colab? #18

bbanzai88 opened this issue May 12, 2024 · 0 comments

Comments

@bbanzai88
Copy link

Hi, I am trying to run Retropath2 on colab.

I have tried this (with both capital R and capital P and lower case r and p) and with and without the kexec):
from retropath2_wrapper import retropath2
import knime
kexec='/usr/local/lib/python3.10/dist-packages/knime/bin/knime'

Create an instance of the RetroPath2 class

r_code = retropath2(
sink_file='/content/sample_data/sink.csv',
source_file='/content/sample_data/source.csv',
rules_file='/content/sample_data/rules.csv',
outdir='/content/sample_data/out',
max_steps=3,
topx=100,
dmin=0,
dmax=100,
mwmax_source=1000,
kexec='/usr/local/lib/python3.10/dist-packages/knime/bin/knime'
)

and got this: ---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in <cell line: 6>()
4
5 # Create an instance of the RetroPath2 class
----> 6 r_code = retropath2(
7 sink_file='/content/sample_data/sink.csv',
8 source_file='/content/sample_data/source.csv',

TypeError: 'module' object is not callable_

Any ideas on what I can do would be greatly appreciated!! Thank you!!

-th

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant