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

Fix the bug in issue#120 "NameError: name 'metadata' is not defined" #121

Merged
merged 4 commits into from
May 29, 2024

Conversation

shuiyujinlan
Copy link
Contributor

Simply remove the multiprocessing module and use "for loop" to receive data in suspicious trees.
This is usable but may slow down the process in handling big data.
It will be better if someone fix the bug inside the multiprocessing module, which caused the NameError in suspicious_clades.
I fix it this way just because I'm not familiar to multiprocessing.

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.
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.
Copy link
Member

@robert-ervin-jones robert-ervin-jones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you so much!

@robert-ervin-jones robert-ervin-jones merged commit 13ac7c8 into TheBrownLab:master May 29, 2024
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

Successfully merging this pull request may close these issues.

2 participants