Skip to content

Commit

Permalink
even more threading
Browse files Browse the repository at this point in the history
  • Loading branch information
MateuszChilinski committed Jul 30, 2024
1 parent 8c3f12d commit a41e349
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,6 @@ RUN pip3 install plumbum

RUN curl -s https://get.nextflow.io | bash && mv nextflow /opt/

RUN wget https://github.com/SFGLab/nf-hichip/archive/refs/tags/1.7.tar.gz && tar -xvzf 1.7.tar.gz && mv nf-hichip-1.7/* . && rm 1.7.tar.gz && rm -r nf-hichip-1.7
RUN wget https://github.com/SFGLab/nf-hichip/archive/refs/tags/1.8.tar.gz && tar -xvzf 1.8.tar.gz && mv nf-hichip-1.8/* . && rm 1.8.tar.gz && rm -r nf-hichip-1.8

RUN /opt/nextflow
4 changes: 2 additions & 2 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ process CreateBigwig {
script:
"""
samtools sort -@ ${params.threads} -m ${params.mem}G ${final_bam} -o ${sample}_output_final_sorted.bam
samtools index ${sample}_output_final_sorted.bam
bamCoverage -p ${params.threads} -b ${sample}_output_final_sorted.bam -o ${sample}_output.bigWig -p ${params.threads}
samtools index -@ ${params.threads} ${sample}_output_final_sorted.bam
bamCoverage -p ${params.threads} -b ${sample}_output_final_sorted.bam -o ${sample}_output.bigWig
"""
}

Expand Down
8 changes: 4 additions & 4 deletions main_chipseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,11 @@ process CreateBigwig {
script:
"""
samtools sort -@ ${params.threads} -m ${params.mem}G ${final_bam} -o ${sample}_output_final_sorted.bam
samtools index ${sample}_output_final_sorted.bam
bamCoverage -p ${params.threads} -b ${sample}_output_final_sorted.bam -o ${sample}_output.bigWig -p ${params.threads}
samtools index -@ ${params.threads} ${sample}_output_final_sorted.bam
bamCoverage -p ${params.threads} -b ${sample}_output_final_sorted.bam -o ${sample}_output.bigWig
samtools sort -@ ${params.threads} -m ${params.mem}G ${input_final_bam} -o ${sample}_input_output_final_sorted.bam
samtools index ${sample}_input_output_final_sorted.bam
bamCoverage -p ${params.threads} -b ${sample}_input_output_final_sorted.bam -o ${sample}_input_output.bigWig -p ${params.threads}
samtools index -@ ${params.threads} ${sample}_input_output_final_sorted.bam
bamCoverage -p ${params.threads} -b ${sample}_input_output_final_sorted.bam -o ${sample}_input_output.bigWig
"""
}

Expand Down

0 comments on commit a41e349

Please sign in to comment.