-
Notifications
You must be signed in to change notification settings - Fork 752
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
add mtmalign #4339
add mtmalign #4339
Conversation
Use nf-test instead This reverts commit 1854bd9.
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.
Super nice Leon!!
I just added a couple of comments - mainly it comes down to allowing the user to use the prefix to change the name of the output file :)
|
||
output: | ||
tuple val(meta), path("./mTM_result/result.fasta") , emit: alignment | ||
tuple val(meta), path("./mTM_result/result.pdb") , emit: structure |
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.
tuple val(meta), path("./mTM_result/result.pdb") , emit: structure | |
tuple val(meta), path("./mTM_result/*.pdb") , emit: structure |
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.
I don't think this would work – as the inputs are also pdb files, it would also return the input structures.
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.
(mtmalign copies the input structures into the results directory)
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.
Maybe we can then move that file into ${prefix}.pdb ?
I think it's important to have the possibility ti have the output files named correctly
tag "$meta.id" | ||
label 'process_medium' | ||
|
||
conda "bioconda::mtm-align=20220104" |
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.
Should we also update it to this?
conda "${moduleDir}/environment.yml" |
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.
true, we should – I'm not sure its documented anywhere, but it is apparently now the preferred way to have conda envs.
Co-authored-by: Luisa Santus <[email protected]>
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.
LGTM! Please fix test and address @luisas's comment and it will be ready to merge.
mv ./mTM_result/result.fasta ${prefix}.aln | ||
mv ./mTM_result/result.pdb ${prefix}.pdb |
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.
mv ./mTM_result/result.fasta ${prefix}.aln | |
mv ./mTM_result/result.pdb ${prefix}.pdb | |
mv ./mTM_result/result.fasta ${prefix}.aln | |
mv ./mTM_result/result.pdb ${prefix}.pdb |
Anybody know what's up with the linting there?
seems a bit weird to me. |
You can see here how the tags are supposed to be - i made a couple of suggestions that should fix it https://github.com/search?q=repo%3Anf-core%2Fmodules%20clustalo&type=code |
Co-authored-by: Luisa Santus <[email protected]>
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.
This should solve the test error :)
Co-authored-by: Luisa Santus <[email protected]>
* commit mtmalign module * comment & add input name * mtmalign test * Revert "mtmalign test" Use nf-test instead This reverts commit 1854bd9. * add nf-tests * fix script path * forgot to delete line from template * removed unnecessary vars * mess around with tests, still not fully working * make licence array instead of string * now runs the nftest * changed tags * now calling untar correctly * added snapshot * fix conflicting name * check fasta instead of snapshot * Apply suggestions from code review Co-authored-by: Luisa Santus <[email protected]> * fix things incorporating @luisas feedback * add environment.yml * whoops, forgot to change env name * change tag name * Revert "change tag name" This reverts commit 83a325a. * try changing in env.yml * Apply suggestions from code review Co-authored-by: Luisa Santus <[email protected]> * remove empty line * add missing bracket * change glob to unique path * Apply suggestions from code review Co-authored-by: Luisa Santus <[email protected]> --------- Co-authored-by: Leon Rauschning <[email protected]> Co-authored-by: Leon Rauschning <[email protected]> Co-authored-by: Luisa Santus <[email protected]>
* commit mtmalign module * comment & add input name * mtmalign test * Revert "mtmalign test" Use nf-test instead This reverts commit 1854bd9. * add nf-tests * fix script path * forgot to delete line from template * removed unnecessary vars * mess around with tests, still not fully working * make licence array instead of string * now runs the nftest * changed tags * now calling untar correctly * added snapshot * fix conflicting name * check fasta instead of snapshot * Apply suggestions from code review Co-authored-by: Luisa Santus <[email protected]> * fix things incorporating @luisas feedback * add environment.yml * whoops, forgot to change env name * change tag name * Revert "change tag name" This reverts commit 83a325a. * try changing in env.yml * Apply suggestions from code review Co-authored-by: Luisa Santus <[email protected]> * remove empty line * add missing bracket * change glob to unique path * Apply suggestions from code review Co-authored-by: Luisa Santus <[email protected]> --------- Co-authored-by: Leon Rauschning <[email protected]> Co-authored-by: Leon Rauschning <[email protected]> Co-authored-by: Luisa Santus <[email protected]>
This PR adds a module for the structural aligner mTM-align, for use in the multiplesequencealignment pipeline.
PR checklist
versions.yml
file.label
PROFILE=docker pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
PROFILE=singularity pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware
PROFILE=conda pytest --tag <MODULE> --symlink --keep-workflow-wd --git-aware