Skip to content

Commit

Permalink
updated bowtie process and images in config
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagofilipe12 committed Jul 4, 2018
1 parent c69f3b2 commit 1dcd864
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ Usage: nextflow run tiagofilipe12/pATLASflow [options] or nextflow run main.nf [
Fasta options:
--fasta Provide fasta file pattern to be searched by nextflow. Default: 'fasta/*.fas'
Bowtie2 options:
--max_k Provide the maximum number of alignments allowed per read. Default: 10949 (the number of plasmids present in pATLAS)
--trim5 Provide parameter -5 to bowtie2 allowing to trim 5' end. Default: 0
--cov_cutoff Provide a cutoff value to filter results for coverage results. Default: 0.60
Expand Down
2 changes: 0 additions & 2 deletions lib/Helper.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ class Help{
println(" --fasta Provide fasta file pattern to be searched by " +
"nextflow. Default: 'fasta/*.fas'")
println(" Bowtie2 options:")
println(" --max_k Provide the maximum number of alignments allowed " +
"per read. Default: 10949 (the number of plasmids present in pATLAS)")
println(" --trim5 Provide parameter -5 to bowtie2 allowing to trim " +
"5' end. Default: 0")
println(" --cov_cutoff Provide a cutoff value to filter results for " +
Expand Down
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ process mappingBowtie {
}

"""
bowtie2 -x ${bowtie2Index} ${readsString} -p ${task.cpus} -k \
${params.max_k} -5 ${params.trim5} -S mappingBowtie_${sample}.sam
bowtie2 -x ${bowtie2Index} ${readsString} -p ${task.cpus} -a \
-5 ${params.trim5} -S mappingBowtie_${sample}.sam
"""
}

Expand Down
15 changes: 7 additions & 8 deletions nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ params {
shared_hashes = 0.8
noWinner = false
//bowtie2 unique options
max_k = 10949 // sets k parameter of bowtie2 -k, allowing the same read to map against more than 1 read. Default value is 1.
trim5 = 0
cov_cutoff = 0.60 // cutoff for the coverage in mapping approach
plasmid_length_dict ='jsons/*_length.json'
Expand All @@ -39,13 +38,13 @@ params {
}

process {
$mashScreen.container = 'tiagofilipe12/patlasflow_mash_screen:1.1.1'
$mashOutputJson.container = 'tiagofilipe12/patlasflow_mash_screen:1.1.1'
$runMashDist.container = 'tiagofilipe12/patlasflow_mash_screen:1.1.1'
$mashDistOutputJson.container = 'tiagofilipe12/patlasflow_mash_screen:1.1.1'
$mappingBowtie.container = 'tiagofilipe12/patlasflow_mapping:1.1.5'
$samtoolsView.container = 'tiagofilipe12/patlasflow_mapping:1.1.5'
$jsonDumpingMapping.container = 'tiagofilipe12/patlasflow_mapping:1.1.5'
$mashScreen.container = 'tiagofilipe12/patlasflow_mash_screen:1.4.1'
$mashOutputJson.container = 'tiagofilipe12/patlasflow_mash_screen:1.4.1'
$runMashDist.container = 'tiagofilipe12/patlasflow_mash_screen:1.4.1'
$mashDistOutputJson.container = 'tiagofilipe12/patlasflow_mash_screen:1.4.1'
$mappingBowtie.container = 'tiagofilipe12/patlasflow_mapping:1.4.1'
$samtoolsView.container = 'tiagofilipe12/patlasflow_mapping:1.4.1'
$jsonDumpingMapping.container = 'tiagofilipe12/patlasflow_mapping:1.4.1'
}

// this should be passed with the -profile mash_screen
Expand Down

0 comments on commit 1dcd864

Please sign in to comment.