Skip to content

Commit

Permalink
Merge pull request #57 from genomic-medicine-sweden/fix-R-error
Browse files Browse the repository at this point in the history
Update R version in dockerfile
  • Loading branch information
sofstam authored May 28, 2022
2 parents 27eb193 + 8b8e50a commit c4edf92
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ params{
profile = false
cleanup = true
scheme = false
tmpdir = "~/tmp"

// Repo to download your primer scheme from
schemeRepoURL = 'https://github.com/genomic-medicine-sweden/gms-artic.git'
Expand Down
2 changes: 2 additions & 0 deletions environments/illumina/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ channels:
- conda-forge
- bioconda
- defaults
- r
dependencies:
- biopython=1.74
- libxcb
Expand All @@ -27,6 +28,7 @@ dependencies:
- fastqc=0.11.9
- multiqc=1.11
- nextclade=1.10.2
- r=3.6.0
- pip:
- pandas >= 1.1
- scikit-learn >= 0.23.1
Expand Down
7 changes: 5 additions & 2 deletions modules/qc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ process fastqc {
file "*fastqc*"

"""
fastqc ${forward} ${reverse} --format fastq --threads ${task.cpus}
fastqc ${forward} ${reverse} --format fastq --threads ${task.cpus} --dir ${params.tmpdir}
"""
}

Expand All @@ -75,6 +75,8 @@ process statsInsert {
tag { sampleName }

label 'largemem'
errorStrategy 'retry'
maxRetries 5

publishDir "${params.outdir}/QCStats/${task.process.replaceAll(":","_")}", pattern: "*.txt", mode: 'copy'
publishDir "${params.outdir}/QCStats/${task.process.replaceAll(":","_")}", pattern: "*.pdf", mode: 'copy'
Expand All @@ -91,7 +93,8 @@ process statsInsert {
if [[ \$( samtools view -F 12 ${bam} | cut -f1 | sort -T ./tmp | uniq -c | awk '\$1 > 1 { count++ } END { print count }' ) > 0 ]]
then
picard CollectInsertSizeMetrics I=${bam} O=${sampleName}_insert_size.metrics.txt \
H=${sampleName}_insert_size.distribution.pdf
H=${sampleName}_insert_size.distribution.pdf \
TMP_DIR=${params.tmpdir}
else
echo "Skipping sample ${sampleName} - no usable paired reads"
touch ${sampleName}_insert_size.metrics.txt
Expand Down

0 comments on commit c4edf92

Please sign in to comment.