Skip to content

Commit

Permalink
Removed redundant lines and updated modules.config
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoDuarteF committed Dec 9, 2024
1 parent c69d846 commit fe07df8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
6 changes: 3 additions & 3 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ process {
]
}

withName: 'PLOT_BUSCO_IDEOGRAM' {
withName: 'GENOME_ANNOTATION_BUSCO_IDEOGRAM' {
publishDir = [
path: { "${params.outdir}/busco_ideogram" },
path: { "${params.outdir}/genome_annotation_busco_ideogram" },
mode: params.publish_dir_mode,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: 'GENOME_BUSCO_IDEOGRAM' {
withName: 'GENOME_ONLY_BUSCO_IDEOGRAM' {
publishDir = [
path: { "${params.outdir}/genome_busco_ideogram" },
mode: params.publish_dir_mode,
Expand Down
6 changes: 3 additions & 3 deletions modules/local/genome_only_busco_ideogram.nf
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ process GENOME_ONLY_BUSCO_IDEOGRAM {
# Get chromosome lengths:
seqkit fx2tab -i -n -l ${genome} > ${prefix}_for_karyotype.txt
# Call script for table wrangling
$projectDir/bin/plot_markers1.R ${prefix}_for_karyotype.txt ${prefix}
plot_markers1.R ${prefix}_for_karyotype.txt ${prefix}
# Call script for plotting
$projectDir/bin/plot_busco_ideogram.R \\
plot_busco_ideogram.R \\
--busco_output ${prefix}_busco_coordinates.txt \\
--karyotype ${prefix}_karyotype.txt \\
--prefix ${prefix} \\
Expand Down
6 changes: 2 additions & 4 deletions subworkflows/local/genome_and_annotation.nf
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ workflow GENOME_AND_ANNOTATION {
| combine(ch_gff_agat, by:0) // by:0 | Only combine when both channels share the same id
| combine(ch_gff_long, by:0)
| multiMap {
meta, fasta, gff_unfilt, gff_filt ->
meta, fasta, gff_unfilt, gff_filt -> // null is is probably not necessary
fasta : fasta ? tuple( meta, file(fasta) ) : null // channel: [ val(meta), [ fasta ] ]
gff_unfilt : gff_unfilt ? tuple( meta, file(gff_unfilt) ) : null // channel: [ val(meta), [ gff ] ], unfiltered
gff_filt : gff_filt ? tuple( meta, file(gff_filt) ) : null // channel: [ val(meta), [ gff ] ], filtered for longest isoform
Expand Down Expand Up @@ -134,8 +134,6 @@ workflow GENOME_AND_ANNOTATION {
// MODULE: Run BUSCO
//

//GFFREAD.out.gffread_fasta.collect().view()

BUSCO_BUSCO (
GFFREAD.out.gffread_fasta,
"proteins", // hardcoded
Expand Down Expand Up @@ -182,7 +180,7 @@ workflow GENOME_AND_ANNOTATION {
}
}

GENOME_ANNOTATION_BUSCO_IDEOGRAM ( ch_plot_input )//removed this temporarily:, ch_karyotype
GENOME_ANNOTATION_BUSCO_IDEOGRAM ( ch_plot_input )

ch_tree_data = ch_tree_data.mix(BUSCO_BUSCO.out.batch_summary.collect { meta, file -> file })

Expand Down

0 comments on commit fe07df8

Please sign in to comment.