Skip to content
Snippets Groups Projects
Verified Commit adeec642 authored by Mia Croiset's avatar Mia Croiset
Browse files

fix cpu usage from hicstuff functions

parent 2d1bd8f7
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ process CUTSITE { ...@@ -19,7 +19,7 @@ process CUTSITE {
def output_rev = task.ext.output_rev ?: "${meta2.id}_${meta2.chunk}_${meta2.mates}.fastq" def output_rev = task.ext.output_rev ?: "${meta2.id}_${meta2.chunk}_${meta2.mates}.fastq"
""" """
hicstuff_cutsite.py -r1 ${reads1} -r2 ${reads2} -e ${digestion} -o1 ${output_for} -o2 ${output_rev} ${args} hicstuff_cutsite.py -r1 ${reads1} -r2 ${reads2} -e ${digestion} -o1 ${output_for} -o2 ${output_rev} -c ${task.cpus} ${args}
cat <<-END_VERSIONS > versions.yml cat <<-END_VERSIONS > versions.yml
"${task.process}": "${task.process}":
hicstuff: v3.1.3) hicstuff: v3.1.3)
......
...@@ -22,7 +22,7 @@ process ITERALIGN { ...@@ -22,7 +22,7 @@ process ITERALIGN {
[ -z "\$INDEX" ] && INDEX=`find -L ./ -name "*.rev.1.bt2l" | sed "s/\\.rev.1.bt2l\$//"` [ -z "\$INDEX" ] && INDEX=`find -L ./ -name "*.rev.1.bt2l" | sed "s/\\.rev.1.bt2l\$//"`
[ -z "\$INDEX" ] && echo "Bowtie2 index files not found" 1>&2 && exit 1 [ -z "\$INDEX" ] && echo "Bowtie2 index files not found" 1>&2 && exit 1
hicstuff_iteralign.py -r ${reads} -g \$INDEX -b ${prefix}.bam ${args} hicstuff_iteralign.py -r ${reads} -g \$INDEX -b ${prefix}.bam -n ${task.cpus} ${args}
samtools view -F 2048 -h -@ $task.cpus -O BAM ${prefix}.bam -o ${prefix}_iteraligned.bam samtools view -F 2048 -h -@ $task.cpus -O BAM ${prefix}.bam -o ${prefix}_iteraligned.bam
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment