Skip to content

Commit 39f5c1e

Browse files
authored
Merge pull request #122 from nf-cmgg/dev
v2.0.4
2 parents 0db52aa + 7e8e7a9 commit 39f5c1e

File tree

6 files changed

+28
-4
lines changed

6 files changed

+28
-4
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
55

66
## dev
77

8+
# v2.0.4
9+
10+
- Add flag to `snap` to allow for more expansion of compressed data
11+
- Parse readgroup samplenames for `snp_` prefixed samples
12+
- Replace GRCh39 by mm10 as default genome for `Mus musculus`
13+
814
## v2.0.3
915

1016
- Update modules

assets/multiqc_config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
report_comment: >
2-
This report has been generated by the <a href="https://github.com/nf-cmgg/preprocessing/releases/tag/2.0.3/" target="_blank">nf-cmgg/preprocessing</a>
2+
This report has been generated by the <a href="https://github.com/nf-cmgg/preprocessing/releases/tag/2.0.4/" target="_blank">nf-cmgg/preprocessing</a>
33
analysis pipeline.
44
report_section_order:
55
"nf-cmgg-preprocessing-methods-description":

conf/igenomes.config

+14
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,21 @@ params {
4343
dragmap = "${params.igenomes_base}/Mmusculus/GRCm39/dragmap"
4444
snap = "${params.igenomes_base}/Mmusculus/GRCm39/snapaligner"
4545
star = "${params.igenomes_base}/Mmusculus/GRCm39/star"
46+
}
47+
"mm10" {
48+
// Genome reference
49+
fai = "${params.igenomes_base}/Mmusculus/mm10/seq/mm10.fa.fai"
50+
fasta = "${params.igenomes_base}/Mmusculus/mm10/seq/mm10.fa"
51+
dict = "${params.igenomes_base}/Mmusculus/mm10/seq/mm10.dict"
52+
gtf = "${params.igenomes_base}/Mmusculus/mm10/seq/Mus_musculus.GRCm38.102.chr.gtf"
4653

54+
// Aligner reference
55+
bowtie2 = "${params.igenomes_base}/Mmusculus/mm10/bowtie2"
56+
bwamem = "${params.igenomes_base}/Mmusculus/mm10/bwa"
57+
bwamem2 = "${params.igenomes_base}/Mmusculus/mm10/bwamem2"
58+
dragmap = "${params.igenomes_base}/Mmusculus/mm10/dragmap"
59+
snap = "${params.igenomes_base}/Mmusculus/mm10/snapaligner"
60+
star = "${params.igenomes_base}/Mmusculus/mm10/star"
4761
}
4862
"GRCz11" {
4963
// Genome reference

conf/modules.config

+2
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ process {
162162
// -hc- : enable DRAGEN compatible mode
163163
// -S id : disable indexing and duplicate marking
164164
// -sa : include secondary and supplementary alignments
165+
// -xf 2 : expansion factor for reading compressed data
165166

166167
//// SNAP
167168
withName: SNAP_ALIGN {
@@ -172,6 +173,7 @@ process {
172173
"-hc-",
173174
"-S id",
174175
"-sa",
176+
"-xf 2",
175177
meta.readgroup ? "-R \"@RG\\t" + meta.readgroup.findResults{ it.value?.trim() ? "$it.key:$it.value" : null }.join("\\t") + "\"" : ""
176178
].join(" ").trim()}
177179
}

nextflow.config

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ manifest {
255255
description = """Demultiplexing, adapter trimming, alignment, and coverage calculation for NGS data."""
256256
mainScript = 'main.nf'
257257
nextflowVersion = '!>=24.10.0'
258-
version = '2.0.3'
258+
version = '2.0.4'
259259
doi = ''
260260
}
261261

workflows/preprocessing.nf

+4-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ workflow PREPROCESSING {
121121
def single_end = fastq[1] ? false : true
122122
// add readgroup metadata
123123
def rg = readgroup_from_fastq(fastq[0])
124-
rg = rg + [ 'SM': meta.samplename,
124+
// if the sample name starts with "snp_", remove it so the sampletracking works later on.
125+
def samplename = meta.samplename.startsWith("snp_") ? meta.samplename[4..-1] : meta.samplename
126+
rg = rg + [ 'SM': samplename,
125127
'LB': meta.library ?: "",
126128
'PL': meta.platform ?: rg.PL,
127129
'ID': meta.readgroup ?: rg.ID
@@ -145,7 +147,7 @@ workflow PREPROCESSING {
145147
if (meta.organism ==~ /(?i)Homo[\s_]sapiens/) {
146148
meta = meta + ["genome":"GRCh38"]
147149
} else if (meta.organism ==~ /(?i)Mus[\s_]musculus/) {
148-
meta = meta + ["genome":"GRCm39"]
150+
meta = meta + ["genome":"mm10"]
149151
} else if (meta.organism ==~/(?i)Danio[\s_]rerio/) {
150152
meta = meta + ["genome":"GRCz11"]
151153
} else {

0 commit comments

Comments
 (0)