Skip to content

Commit

Permalink
Merge pull request oicr-gsi#5 from jts/1.6-dev
Browse files Browse the repository at this point in the history
1.6 dev
  • Loading branch information
mlaszloffy authored Nov 11, 2020
2 parents 2d2d555 + 78b9cf9 commit b9af712
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 71 deletions.
20 changes: 8 additions & 12 deletions conf/base.config
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ params{
// Scheme version
schemeVersion = 'V3'

// For ivar's amplicon filter
primer_pairs_tsv = false

// Run experimental medaka pipeline? Specify in the command using "--medaka"
medaka = false

Expand All @@ -36,18 +39,11 @@ params{

// Run nanopolish pipeline
nanopolish = false

// Upload data to CLIMB?
upload = false

// CLIMB username
CLIMBUser = false

// CLIMB SSH pubkey
CLIMBkey = false

// CLIMB hostname
CLIMBHostname = false
}

executor {
name = 'local'
cpus = 20
memory = '16GB'
}

2 changes: 1 addition & 1 deletion environments/illumina/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ dependencies:
- bwa=0.7.17=pl5.22.0_2
- samtools=1.10
- trim-galore=0.6.5
- ivar=1.2.3
- ivar=1.3
- pysam=0.16.0.1
2 changes: 1 addition & 1 deletion modules/illumina.nf
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ process trimPrimerSequences {
"""
samtools view -F4 -o ${sampleName}.mapped.bam ${bam}
samtools index ${sampleName}.mapped.bam
${ivarCmd} -i ${sampleName}.mapped.bam -b ${bedfile} -m ${params.illuminaKeepLen} -q ${params.illuminaQualThreshold} -p ivar.out
${ivarCmd} -i ${sampleName}.mapped.bam -b ${bedfile} -m ${params.illuminaKeepLen} -q ${params.illuminaQualThreshold} -f ${params.primer_pairs_tsv} -p ivar.out
samtools sort -o ${sampleName}.mapped.primertrimmed.sorted.bam ivar.out.bam
"""
}
Expand Down
15 changes: 0 additions & 15 deletions modules/upload.nf
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,3 @@ process prepareUploadDirectory {
"""
}


process uploadToCLIMB {
tag { params.prefix }

input:
tuple(path(sshkey), path(uploadDir))

output:

script:
"""
rsync -Lav -e "ssh -i ${sshkey} -l ${params.CLIMBUser}" ${uploadDir} ${params.CLIMBHostname}:upload/
"""
}

14 changes: 0 additions & 14 deletions workflows/articNcovNanopore.nf
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ include {bamToCram} from '../modules/out.nf'

include {collateSamples} from '../modules/upload.nf'


// import subworkflows
include {CLIMBrsync} from './upload.nf'


// workflow component for artic pipeline
workflow sequenceAnalysisNanopolish {
take:
Expand Down Expand Up @@ -127,13 +122,4 @@ workflow articNcovNanopore {
} else if ( params.medaka ) {
sequenceAnalysisMedaka(ch_fastqDirs)
}

if ( params.upload ) {

Channel.fromPath("${params.CLIMBkey}")
.set{ ch_CLIMBkey }

CLIMBrsync(sequenceAnalysis.out.qc_pass, ch_CLIMBkey )
}
}

14 changes: 0 additions & 14 deletions workflows/illuminaNcov.nf
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ include {bamToCram} from '../modules/out.nf'

include {collateSamples} from '../modules/upload.nf'

// import subworkflows
include {CLIMBrsync} from './upload.nf'


workflow prepareReferenceFiles {
// Get reference fasta
if (params.ref) {
Expand Down Expand Up @@ -142,16 +138,6 @@ workflow ncovIllumina {

// Actually do analysis
sequenceAnalysis(performHostFilter.out, prepareReferenceFiles.out.bwaindex, prepareReferenceFiles.out.bedfile)

// Upload files to CLIMB
if ( params.upload ) {

Channel.fromPath("${params.CLIMBkey}")
.set{ ch_CLIMBkey }

CLIMBrsync(sequenceAnalysis.out.qc_pass, ch_CLIMBkey )
}

}

workflow ncovIlluminaCram {
Expand Down
14 changes: 0 additions & 14 deletions workflows/upload.nf

This file was deleted.

0 comments on commit b9af712

Please sign in to comment.