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

Bad operand protections - DIAMOND_specific_organism_retriever.py can be overwritten when calling it #27

Open
jfvorwald opened this issue Mar 6, 2019 · 2 comments

Comments

@jfvorwald
Copy link

jfvorwald commented Mar 6, 2019

Recently I've been helping some researchers with their Samsa2 troubles. I've noticed a few students using operands inappropriately leading to some headaches. I know it's hard to account for this stuff but it might be nice to actively help prevent them!

In the file DIAMOND_specific_organism_retriever.py you might consider adding the following check after the -O, sys.argv parsing. I have seen a few students make this mistake.

if target_org_outfile == os.path.basename(__file__): sys.exit("Cannot write to the file we are specifying: target_org_outfile: {}".format(target_org_outfile))

@jfvorwald
Copy link
Author

I will PR the suggestion this weekend if you just want to wait to review the suggestion :)

@jfvorwald jfvorwald changed the title Bad operand protections Bad operand protections - DIAMOND_specific_organism_retriever.py can be overwritten when calling it Mar 6, 2019
@transcript
Copy link
Owner

transcript commented Mar 6, 2019 via email

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

2 participants