Skip to content

Conversation

@FernandoDuarteF
Copy link

@FernandoDuarteF FernandoDuarteF commented Oct 28, 2025

Closes #4.

Changes

  • Now there are two input types: --input_genome for genome submission and --input_assembly for assembly submission. Every input type has it's own samplesheet schema. --input has been removed.
  • Added validation for the two input types: one for the genome samplesheet (input_schema_genome.json) and one for the genome samplesheet (input_schema_assembly.json).

Comments

We need a test data to start building the assembly subworkflow.

Comment on lines +99 to +107
if ( params.input_genome ) {
ch_samplesheet = Channel
.fromList(samplesheetToList(params.input_genome, "${projectDir}/assets/schema_input_genome.json"))
} else if ( params.input_assembly ) {
ch_samplesheet = Channel
.fromList(samplesheetToList(params.input_assembly, "${projectDir}/assets/schema_input_assembly.json"))
} else {
error("No input was found. Please, point to the location of your samplesheet using --input_genome or --input_assembly")
}
Copy link
Author

@FernandoDuarteF FernandoDuarteF Oct 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how the validation is done now

@FernandoDuarteF
Copy link
Author

FernandoDuarteF commented Oct 28, 2025

Now there is a test for every submission type: test_genome and test_assembly. Only test_genome works (there's no assembly submission test data yet).

@FernandoDuarteF
Copy link
Author

Added assemblysubmit.nf workflow. Now there are two workflows: assemblysubmit.nf and genomesubmit.nf. Depending on the input type one will run over the other.

assemblysubmit.nf only runs coverM for now. Test data is in assests/samplesheet_assembly.csv.

There's also a seqsubmit.nf workflow which doesn't do anything.

@FernandoDuarteF
Copy link
Author

Removed params.input presence check from linting (check .nf-core.yml) as it has been replaced for params.input_genome and param.input_assembly.

@FernandoDuarteF FernandoDuarteF changed the base branch from dev to assembly_workflow October 29, 2025 15:41
@FernandoDuarteF
Copy link
Author

Pushing against nf-core:assembly_workflow (branch I've just created), as I'm pushing from my fork. If you want to still work on this you can merge it this PR and work on the nf-core:assembly_workflow branch.

@ochkalova ochkalova merged commit 222afe5 into nf-core:assembly_workflow Oct 29, 2025
8 of 13 checks passed
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

Successfully merging this pull request may close these issues.

Develop nf-core subworkflow for uploading metagenomic assemblies with proper metadata handling

2 participants