-
Notifications
You must be signed in to change notification settings - Fork 953
Add rgi/bwt #9585
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
base: master
Are you sure you want to change the base?
Add rgi/bwt #9585
Conversation
- Use template from rgi/main
- Use fastq pair instead of single fasta file
- add fastq extensions to 'pattern'
- Trying to pass linter
- build KMA/BWT index in workdir instead of program executable dir - update test snapshot
- Don't check temp/ directory on snapshot, is different every time - Update snapshot
- provide input.reads as list - don't check tsv snapshot (it's different every time)
- json files are in random order so snapshot differs every time (I think)
|
@nickp60 we might want to adjust the output channels a little bit, looks to me as though these are the main files: |
|
@SPPearce thank you for the review, addressed your comments. |
- Use '--local' flag as default
|
@vinisalazar Thanks for doing all this! I agree with changing the output to specify those 5 outputs; that seems in line with the description in the docs |
|
Sorry, missed your message last week. |
- Code review from nf-core#9585
- Create topics field in meta.yml
|
@nf-core-bot fix linting |
|
Nothing for me to do here! 🤷 |
jfy133
left a comment
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.
Ok first pass, some general things:
- please remove unnecessary whitespace
- If you don't want to EMIT the DB_VERSION etc., you can remove them entirely. I seem to remember we exported for downstream usage (e.g. hAMRonization, which may still be useful here!)
|
|
||
| rgi \\ | ||
| bwt \\ | ||
| ${args} \\ |
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.
| ${args} \\ | |
| ${args2} \\ |
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.
Sorry, where exactly would this args2 come from?
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.
So the ext.args variables are defined in pipelines' modules.config file. You need one args variable for each command/section of a piped command 1, so you don't duplicate the same argument for two diffren tools/subcommands
Footnotes
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.e., in this case you don't use it for anything (even if it has to be there) but it would be defined in the pipeline logic :)
modules/nf-core/rgi/bwt/main.nf
Outdated
| def read_one = reads instanceof List ? reads[0] : reads | ||
| def read_two = reads instanceof List && reads.size() > 1 ? reads[1] : null |
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.
Please use the nf-core convention of using meta.single to decide how to inject single or paired end reads
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.
An example:
| input = meta.single_end ? "in=${fastq.join(',')}" : "in=${fastq[0]} in2=${fastq[1]}" |
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.
Don't rush on that one, let me discuss with James ;)
| "content": [ | ||
| null, | ||
| [ | ||
| "test.temp.sam.temp.fsa" | ||
| ], | ||
| null, | ||
| null |
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 looks odd, is it epected all the output to be null?
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.
@nickp60 would you be able to clarify this one? I'm not super familiar with rgi output.
prototaxites
left a comment
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.
Little thought about arity :)
Co-authored-by: Jim Downie <[email protected]> Co-authored-by: James A. Fellows Yates <[email protected]>
|
@jfy133 @prototaxites thanks heaps for the review! I merged some of the suggestions and left comments in others. |
|
Responded - linting is failing though! |
Summary of changes:
cc @nickp60