-
Notifications
You must be signed in to change notification settings - Fork 928
EBI MGnify - ENA Genome uploader #9177
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?
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.
Nice! A first round of comments
| path(fastas, stageAs: "genomes/*") | ||
|
|
||
| output: | ||
| tuple val(meta), path("upload_output/*") , emit: upload_output_dir |
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 rename to emit: results
This is the pattern I mostly see when outputting whole folders
| """ | ||
| genome_upload \\ | ||
| $args \\ | ||
| --upload_study "${meta.study_accession}" \\ |
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 like the use of meta here, but we will need a second opinion if that's preferred over additional input params
|
|
||
| input: | ||
| tuple val(meta), path(metadata_tsv) | ||
| path(fastas, stageAs: "genomes/*") |
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.
would rename to fasta
| description: | | ||
| Groovy Map containing sample information | ||
| e.g. `[ id:'test', study_accession:'ERP159782', center_name:'nf-core' ]` | ||
| - upload_output/*: |
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.
| - upload_output/*: | |
| - upload_output: |
| - upload_output/*: | ||
| type: directory | ||
| description: Directory containing all upload outputs | ||
| pattern: "upload_output/*" |
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.
| pattern: "upload_output/*" | |
| pattern: "*" |
| @@ -0,0 +1,5 @@ | |||
| process { | |||
| withName: 'GENOMEUPLOADER' { | |||
| ext.args = '--mags' | |||
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.
| ext.args = '--mags' | |
| ext.args = params.module_args |
|
|
||
| test("genome - fasta - gz") { | ||
|
|
||
| when { |
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.
| when { | |
| when { | |
| params { | |
| module_args = '--mags' | |
| } |
| ], | ||
| metadata_file | ||
| ] | ||
| input[1] = file('https://github.com/nf-core/test-datasets/raw/refs/heads/magmap/testdata/GCA_002688505.1_ASM268850v1_genomic.fna.gz', checkIfExists: true) |
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 file will probably need to be deposited in nf-core test-datasets as well
| @@ -0,0 +1,29 @@ | |||
| { | |||
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 dont see the stub test in the snapshot
| { assert process.success }, | ||
| { assert snapshot(process.out).match() } |
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.
| { assert process.success }, | |
| { assert snapshot(process.out).match() } | |
| { assert process.success }, | |
| { assert snapshot( | |
| process.out.upload_output_dir, | |
| process.out.registered_mags, | |
| process.out.genome_samples, | |
| process.out.manifests, | |
| process.out.versions.collect{ path(it).yaml } | |
| ).match() } |
PR checklist
Closes #XXX
versions.ymlfile.labelnf-core modules test <MODULE> --profile dockernf-core modules test <MODULE> --profile singularitynf-core modules test <MODULE> --profile condanf-core subworkflows test <SUBWORKFLOW> --profile dockernf-core subworkflows test <SUBWORKFLOW> --profile singularitynf-core subworkflows test <SUBWORKFLOW> --profile conda