Skip to content

Commit

Permalink
Fix validation schema, and fix assembly channels for longread and sho…
Browse files Browse the repository at this point in the history
…rtread assemblers, when assembly input is given
  • Loading branch information
muabnezor committed Nov 29, 2024
1 parent e277290 commit 75a36f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 20 deletions.
21 changes: 1 addition & 20 deletions assets/schema_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,26 +43,7 @@
}
},
"required": ["sample", "group"],
"allOf": [
{
"if": {
"required": ["short_reads_2"]
},
"then": {
"required": ["short_reads_1"]
}
},
{
"if": {
"not": {
"allOf": [{ "required": ["short_reads_1"] }, { "required": ["short_reads_2"] }]
}
},
"then": {
"required": ["long_reads"]
}
}
]
"anyOf": [{ "required": ["short_reads_1"] }, { "required": ["long_reads"] }]
},
"uniqueEntries": ["sample", "run"],
"dependentRequired": {
Expand Down
4 changes: 4 additions & 0 deletions workflows/mag.nf
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,10 @@ workflow MAG {

ch_assemblies = Channel.empty()
ch_assemblies = ch_assemblies.mix(ch_assemblies_split.ungzip, GUNZIP_ASSEMBLYINPUT.out.gunzip)
ch_shortread_assemblies = Channel.empty()
ch_shortread_assemblies = ch_shortread_assemblies.mix(ch_assemblies_split.ungzip, GUNZIP_ASSEMBLYINPUT.out.gunzip)
// TODO ALSO FIX FOR LONGREAD
ch_longread_assemblies = Channel.empty()
}

ch_quast_multiqc = Channel.empty()
Expand Down

0 comments on commit 75a36f2

Please sign in to comment.