Skip to content

Commit

Permalink
Provide interface to pseudoaligner kmer length
Browse files Browse the repository at this point in the history
  • Loading branch information
pinin4fjords committed Dec 22, 2023
1 parent e4c8d67 commit 8de95b7
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
7 changes: 5 additions & 2 deletions conf/modules.config
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ process {
}

withName: 'SALMON_INDEX' {
ext.args = params.gencode ? '--gencode' : ''
ext.args = { [
params.gencode ? '--gencode' : '',
params.pseudo_kmer_size ? "-k ${params.pseudo_kmer_size}": ''
].join(' ').trim() }
publishDir = [
path: { "${params.outdir}/genome/index" },
mode: params.publish_dir_mode,
Expand All @@ -84,7 +87,7 @@ process {
}

withName: 'KALLISTO_INDEX' {
ext.args = { params.gencode ? '--gencode' : '' }
ext.args = params.kmer_size ? "-k ${params.pseudo_kmer_size}" : ''
publishDir = [
path: { "${params.outdir}/genome/index" },
mode: params.publish_dir_mode,
Expand Down
1 change: 1 addition & 0 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ params {
// Alignment
aligner = 'star_salmon'
pseudo_aligner = null
pseudo_aligner_kmer_size = 31
seq_center = null
bam_csi_index = false
star_ignore_sjdbgtf = false
Expand Down
9 changes: 8 additions & 1 deletion nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,13 @@
"fa_icon": "fas fa-hamburger",
"enum": ["salmon", "kallisto"]
},
"pseudo_aligner_kmer_size": {
"type": "integer",
"default": 31,
"description": "Kmer length passed to indexing step of pseudoaligners",
"help_text": "Failure to set a good kmer size could cause issues with quantification with Kallisto or Salmon. This is mostly an issue for short reads (<50bp), where the default kmer size of 31 is an problem.",
"fa_icon": "fas fa-ruler-horizontal"
},
"bam_csi_index": {
"type": "boolean",
"description": "Create a CSI index for BAM files instead of the traditional BAI index. This will be required for genomes with larger chromosome sizes.",
Expand Down Expand Up @@ -397,7 +404,7 @@
},
"min_mapped_reads": {
"type": "number",
"default": 5.0,
"default": 5,
"fa_icon": "fas fa-percentage",
"description": "Minimum percentage of uniquely mapped reads below which samples are removed from further processing.",
"help_text": "Some downstream steps in the pipeline will fail if this threshold is too low."
Expand Down

0 comments on commit 8de95b7

Please sign in to comment.