-
Notifications
You must be signed in to change notification settings - Fork 15
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
metadata not defined in forest_local.py #120
Comments
Hi @sipesk, Can you try re-running without the -t option? There may be an issue with the parallelization. Let me know if that works or not. Thanks for using PhyloFisher! Best, |
No dice. I tried both python and python3 as well.
|
Hi, @robert-ervin-jones . I have the same question in my test with the original "metadata.tsv". How to bypass multiprocessing? And my test in remote server produce no result(except for the empty dir "forest_out_M.D.Y" itself). Local test error info as below:
After I add "metadata = {}" in line 20, the info changed as below:
Then I commented out the function "def parallel_susp_clades(trees)", and changed "suspicious = parallel_susp_clades(trees)" to "suspicious = suspicious_clades(trees)", the error info changed as below:
|
Solved in a silly way: I successfully changed multiprocessing to a simple "for loop", and then the result came out smoothly in 1 min. To achieve this, change:
to
You will see the list of suspicious genes in the corresponding tree in your terminal. Result files are as below: Hope this helps! @robert-ervin-jones @sipesk |
Hi @shuiyujinlan, Would it be possible for you to open a PR with your proposed code changes? Best, |
Had the same issue, and the fix by shuiyujinlan worked for me as well. Thanks! |
Remove multiprocessing to fix the bug in issue TheBrownLab#120 "metadata not defined in forest_local.py"(and import PyQt5 for ete3, I'm not sure if it's necessary.).
Only fix the bug in issue TheBrownLab#120.
Sure. I opened a PR just now. And hope you'll find some clues in my reply and description to fix it more gracefully (e.g. retain the multiprocessing function). |
…121) * Update forest_local.py Remove multiprocessing to fix the bug in issue #120 "metadata not defined in forest_local.py"(and import PyQt5 for ete3, I'm not sure if it's necessary.). * Update forest_local.py Only fix the bug in issue #120. * Update matrix_constructor.py To fix the snakemake bug "MissingRuleException: No rule to produce snakemake (if you use input functions make sure that they don't raise unexpected exceptions)." It's caused by "--of phylip" because in original code, one of output file "matrix.fas" in python didn't match the name "f'{out_dir}/matrix.{out_dict[out_format.lower()]}'"(if use default --of fasta, they are thesame) in snakemake file. --------- Co-authored-by: Robert E. Jones <56359883+robert-ervin-jones@users.noreply.github.com>
Hello,
Phylofisher is great and was running smoothly until i brought the sgt_construct_out.tar.gz to my local machine.
I downloaded forest_local.py and now get an error with the metadata args. I've checked the .tar.gz to make sure than the metadata.tsv are there and contain text
The text was updated successfully, but these errors were encountered: