-
Notifications
You must be signed in to change notification settings - Fork 43
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
Error exsecute HotNet2 #42
Comments
Thanks for your questions. Could you try the We replaced the |
I tried to create a virtualenv with python 2.7.10 with the command: I execute the virtual machine with the command: and after I install che requirements with the command: Execute the first command of the error persists Moreover, I tried to run the command: and the error is the following: Do you have any suggestion? Best regards Alessandro LUMACA |
I would double check to make sure that you are actually running Python 2 and not Python 3 here. The If the error persists, then there may be another issue here. |
Thank you for the answer. I tried running HotNet2 on two virtualenv: one with Python 2 and the other with Python 3. I stopped using virtualenv because I have problems with the h5py package on the Mac (macOS Mojave, v: 10.14.2, 64bit). I install it with pip but I have some troubles when it comes to importing it. The based command is: I made some transformations of the print commands and some import, from Python 2 to Python 3. I stopped at this error, it can not import "component_sizes" from the file “~/hotnet2/hnio.py" and I can not find the respective * .py file in the project. In case some passages are not clear, ask me as well. Best regards |
It looks like you are changing parts of the code to run with Python 3, but the updated code still has errors in Python 3. I would recommend running HotNet2 without changing the code with Python 2, which we have used successfully on a number of systems, including macOS. You may also want to try Hierarchical HotNet, which has many improvements over HotNet2 including full Python 2/3 compatibility. Here are links to the to the paper and GitHub repository: |
Good morning The script *.sh executes it, but not completely. Running the first script (makeNetworkFiles.py) gives me the following warning:
The NumPy library (v. 1.16.0) was previously installed via pip 9.0.3 (command: pip install numpy). The execution of the * .sh script, however, continues and generates the *.json files in the folder "paper/data/heats" and the *.h5 files in the folder ”data/networks/xxx". After, with the execution of the script HotNet2.py, I saw that it goes to the files that are in the folder "data/networks/xxx/permuted" (option: Also, running the paper_commands.sh script goes a term considered in the "scripts/permuteNetwork.py" file I commented on the instruction and related ones: Otherwise with debugging I saw that the program stays on that line of code. I have a MacBook with a i7 of the first generation. Do you have any suggestion? Best regards Alessandro |
The From your email, it is not clear to me whether or not you changed the |
It is true, it is not very clear. I'll explain to you better what I did. I have commented only lines 73, 83 and 84 of file "scripts/permuteNetwork.py", since with the debugging the program is looped to line 73. By running all the "scripts/permuteNetwork.py" python codes from the script paper_commands.sh, the folders "~/permuted/" are empty. For every command that executes, the program gives a warning because it does not find the file in the folder "~/permuted/". Since you tell me that execution can take many hours, I try to decrease the permutations of the network and check for any errors. Best regards Alessandro |
If you comment-out these lines of this code, then HotNet2 will not generate permuted networks, which is why these folders are empty and why you are receiving errors. I recommend running the code without changing it (you may want to clone it from GitHub again) using many fewer permutations to see if the issue persists. |
Good morning,
The script ends and does not generate the "result" folder (passed with the I tried to execute the code with both Python 2.7.15 and version 3.6 and the error persists. Do you have any suggestion? Thank, Alessandro |
You are receiving this error because none of the genes in the largest connected component of your network has a positive heat score. Please see the data from the HotNet2 paper for examples: |
Good morning,
I tried executing HotNet2 on a Mac with Python 3.6.5 (command:
python -V
). As recommended on the README.txt file (present in the project’s root), I used virtualenv (v. 16.2.0, installed with the command:pip install virtualenv
).I used the “paper_commands.sh” file to see the commands to be executed via terminal. I based myself on:
> python ../makeNetworkFiles.py -e data/networks/hint+hi2012/hint+hi2012_edge_list -i data/networks/hint+hi2012/hint+hi2012_index_gene -nn hint+hi2012 -p hint+hi2012 -b 0.4 -o data/networks/hint+hi2012 -np 100 -c 1
Executing it, it gives me this error:
File "makeNetworkFiles.py", line 60
if not args.only_permutations:
^
SyntaxError: invalid syntax
The error is related to the -op (only permutation) parameter which is not defined in the command. So, I did some tests adding the file “data/heats/pan12.gene2freq.txt”, present in the project, but I still do not work (so it becomes
python ../makeNetworkFiles.py -e data/networks/hint+hi2012/hint+hi2012_edge_list -i data/networks/hint+hi2012/hint+hi2012_index_gene -nn hint+hi2012 -p hint+hi2012 -b 0.4 -o data/networks/hint+hi2012 -np 100 -c 1 -op data/heats/pan12.gene2freq.txt
).Later, I went down to the "example" folder. By consulting the README.txt file in the folder I tried to run the command:
> python makeRequiredPPRFiles.py @example/configs/influence_matrix.config
Even though it was executed, it still couldn’t find the file “makeRequiredPPRFiles.py”, giving me the error:
Do you have any suggestion?
Best regards
Alessandro LUMACA
The text was updated successfully, but these errors were encountered: