-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bug fixes #46
Bug fixes #46
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some small comments but very nice! 😄
Maybe we could add to safe_get
to requests.get
a timeout, this way even if the problem is in the user site as with the new CRG cluster it won't stay idle for ever, something such as:
return requests.get(url, timeout = 300)
uniprot_id = i["target_gene"].split("|")[-1].split("=")[-1] | ||
print(f"{uniprot_id}") | ||
except KeyError: | ||
pass # yes, I mean this, we just want to return an empty file if nothing is found |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😆 Nice comment! Maybe we could add a warning here? Something as "id not found"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be tricky, as the module captures stderr from this script to get the database version
@@ -25,10 +25,11 @@ process FETCH_OMA_GROUP_LOCAL { | |||
prefix = task.ext.prefix ?: meta.id | |||
""" | |||
# Obtain the OMA ID for the given Uniprot ID of the query protein | |||
omaid=\$(uniprot2oma_local.py $uniprot_idmap $uniprot_id) | |||
uniprot2oma_local.py $uniprot_idmap $uniprot_id > oma_id.txt || test -f oma_id.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😍
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
Co-authored-by: Jose Espinosa-Carrasco <kadomu@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! thanks! 🚀
Fixed a few errors caused by nonexistent files
Fixed isoform handling in OMA fetch
Improved large script readability
Added execute permissions to report run script
PR checklist
nf-core lint
).nextflow run . -profile test,docker --outdir <OUTDIR>
).