Skip to content
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

Update published contigs #25

Merged
merged 4 commits into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions subworkflows/local/assembly_qc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ workflow ASSEMBLY_QC {

ch_versions = ch_versions.mix(SEQKIT_SEQ.out.versions)

filtered_contigs = SEQKIT_SEQ.out.fastx
cleaned_contigs = SEQKIT_SEQ.out.fastx

if ( params.remove_human_phix ) {

Expand All @@ -52,10 +52,10 @@ workflow ASSEMBLY_QC {
ch_versions = ch_versions.mix(BLAST_BLASTN_HUMAN_PHIX.out.versions.first())

SEQKIT_GREP_HUMAN_PHIX(
filtered_contigs.join( BLAST_BLASTN_HUMAN_PHIX.out.txt )
cleaned_contigs.join( BLAST_BLASTN_HUMAN_PHIX.out.txt )
)

filtered_contigs = SEQKIT_GREP_HUMAN_PHIX.out.filter
cleaned_contigs = SEQKIT_GREP_HUMAN_PHIX.out.filter

ch_versions = ch_versions.mix(SEQKIT_GREP_HUMAN_PHIX.out.versions)
}
Expand All @@ -68,14 +68,14 @@ workflow ASSEMBLY_QC {
}

BLAST_BLASTN_HOST(
filtered_contigs,
cleaned_contigs,
ch_blast_host_refs
)

ch_versions = ch_versions.mix(BLAST_BLASTN_HOST.out.versions.first())

SEQKIT_GREP_HOST(
filtered_contigs.join( BLAST_BLASTN_HOST.out.txt )
cleaned_contigs.join( BLAST_BLASTN_HOST.out.txt )
)

cleaned_contigs = SEQKIT_GREP_HOST.out.filter
Expand All @@ -84,10 +84,10 @@ workflow ASSEMBLY_QC {
}

PUBLISH_CLEANED_CONTIGS(
filtered_contigs
cleaned_contigs
)

emit:
filtered_contigs = filtered_contigs
cleaned_contigs = cleaned_contigs
versions = ch_versions
}
4 changes: 2 additions & 2 deletions workflows/miassembler.nf
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ workflow MIASSEMBLER {

// Coverage //
ASSEMBLY_COVERAGE(
ASSEMBLY_QC.out.filtered_contigs.join( READS_QC.out.qc_reads, remainder: false ),
ASSEMBLY_QC.out.cleaned_contigs.join( READS_QC.out.qc_reads, remainder: false ),
READS_QC.out.fastp_json
)

Expand All @@ -255,7 +255,7 @@ workflow MIASSEMBLER {
// Stats //
/* The QUAST module was modified to run metaQUAST instead */
QUAST(
ASSEMBLY_QC.out.filtered_contigs,
ASSEMBLY_QC.out.cleaned_contigs,
[ [], [] ], // reference
[ [], [] ] // gff
)
Expand Down
Loading