Skip to content

Commit

Permalink
Merge pull request #101 from nf-core/publish_results
Browse files Browse the repository at this point in the history
Decreased size of results folder
  • Loading branch information
FernandoDuarteF authored Dec 3, 2024
2 parents 20bb70f + f944325 commit ae76a10
Show file tree
Hide file tree
Showing 3 changed files with 84 additions and 15 deletions.
50 changes: 38 additions & 12 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,12 @@ process {
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]

withName: FASTQC {
ext.args = '--quiet'
}

withName: 'NCBIGENOMEDOWNLOAD' {
ext.args = "--format fasta,gff -N"
publishDir = [
path: { "${params.outdir}/ncbigenomedownload" },
mode: params.publish_dir_mode,
enabled: params.save_assembly,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
Expand All @@ -36,11 +33,39 @@ process {
publishDir = [
path: { "${params.outdir}/gffread" },
mode: params.publish_dir_mode,
enabled: params.save_extracted_seqs,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: 'PIGZ_UNCOMPRESS' {
publishDir = [
path: { "${params.outdir}/agat" },
mode: params.publish_dir_mode,
enabled: false,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}


withName: 'AGAT_SPSTATISTICS' {
publishDir = [
path: { "${params.outdir}/agat" },
mode: params.publish_dir_mode,
//pattern: '*.txt'
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: 'AGAT_CONVERTSPGXF2GXF' {
publishDir = [
path: { "${params.outdir}/agat" },
mode: params.publish_dir_mode,
enabled: params.save_validated_annotation,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: 'FASTAVALIDATOR' {
publishDir = [
path: { "${params.outdir}/fastavalidator" },
Expand All @@ -53,6 +78,7 @@ process {
publishDir = [
path: { "${params.outdir}/orthofinder" },
mode: params.publish_dir_mode,
enabled: params.save_orthofinder_results,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
Expand All @@ -61,6 +87,7 @@ process {
publishDir = [
path: { "${params.outdir}/busco" },
mode: params.publish_dir_mode,
pattern: '*.txt',
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
Expand Down Expand Up @@ -89,6 +116,12 @@ process {

withName: 'SORT_BY_LENGTH' {
ext.prefix = { "${meta.id}_sorted" }
publishDir = [
path: { "${params.outdir}/tidk_explore" },
mode: params.publish_dir_mode,
enabled: params.save_sorted_seqs,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}

withName: 'TIDK_EXPLORE' {
Expand All @@ -113,6 +146,7 @@ process {
publishDir = [
path: { "$params.outdir/output_data/longest" },
mode: params.publish_dir_mode,
enabled: params.save_longest_isoform,
saveAs: { filename -> filename.equals('versions.yml') ? null : filename }
]
}
Expand All @@ -125,14 +159,6 @@ process {
]
}

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

withName: 'GENE_OVERLAPS' {
publishDir = [
path: { "${params.outdir}/gene_overlaps" },
Expand Down
19 changes: 18 additions & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,30 @@ params {
igenomes_base = null
igenomes_ignore = false

// tidk skip
// tidk options
skip_tidk = false

// seqkit options
save_sorted_seqs = false

// Genome only option
genome_only = null

// AGAT options
save_validated_annotation = false

// ncbigenomedownload options
groups = 'all'
save_assembly = false

// GFFREAD options
save_extracted_seqs = false

// orthofinder options
save_orthofinder_results = false

// Longest options
save_longest_isoform = false

// merqury/meryl options
run_merqury = false
Expand Down
30 changes: 28 additions & 2 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@
},
"busco_lineage": {
"type": "string",
"default": "auto",
"default": "hymenoptera_odb10",
"description": "A flag to set the busco lineage. Default: auto"
},
"busco_lineages_path": {
Expand Down Expand Up @@ -347,5 +347,31 @@
{
"$ref": "#/definitions/generic_options"
}
]
],
"properties": {
"save_sorted_seqs": {
"type": "boolean",
"description": "Publish sorted fasta genome files from TIDK Explore subworkflow"
},
"save_validated_annotation": {
"type": "boolean",
"description": "Publish gff files validated by AGAT"
},
"save_assembly": {
"type": "boolean",
"description": "Publish genomes and/or annotations of user-supplied RefSeq IDs"
},
"save_extracted_seqs": {
"type": "boolean",
"description": "Publish extracted protein fasta files by GFFREAD"
},
"save_orthofinder_results": {
"type": "boolean",
"description": "Publish orthofinder results"
},
"save_longest_isoform": {
"type": "boolean",
"description": "Publish longest protein isoform fasta files"
}
}
}

0 comments on commit ae76a10

Please sign in to comment.