Skip to content

Commit

Permalink
Merge pull request #180 from open2c/docker_update_pairtools-1.0
Browse files Browse the repository at this point in the history
Docker update for pairtools 1.0*
  • Loading branch information
agalitsyna authored Nov 10, 2022
2 parents 689df3e + 0b8ffca commit e0b7456
Show file tree
Hide file tree
Showing 7 changed files with 7,184 additions and 3,265 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version='0.3.3'
version='0.3.4'
9 changes: 5 additions & 4 deletions distiller.nf
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def fastqDumpCmd(file_or_srr, library, run, srr_start=0, srr_end=-1, threads=1,
if (use_custom_split) {
cmd = """
#cp -r $HOME/.ncbi/ . # Fix for sra-tools requiring ncbi folder locally
HOME=`readlink -e ./`
#HOME=`readlink -e ./`
fastq-dump ${file_or_srr} -Z --split-spot ${srr_start_flag} ${srr_end_flag} \
| pyfilesplit --lines 4 \
>(bgzip -c -@{bgzip_threads} > ${library}.${run}.1.fastq.gz) \
Expand All @@ -150,7 +150,7 @@ def fastqDumpCmd(file_or_srr, library, run, srr_start=0, srr_end=-1, threads=1,
} else {
cmd = """
#cp -r $HOME/.ncbi/ . # Fix for sra-tools requiring ncbi folder locally
HOME=`readlink -e ./`
#HOME=`readlink -e ./`
fastq-dump ${file_or_srr} --gzip --split-spot --split-3 ${srr_start_flag} ${srr_end_flag}
mv *_1.fastq.gz ${library}.${run}.1.fastq.gz
mv *_2.fastq.gz ${library}.${run}.2.fastq.gz
Expand Down Expand Up @@ -548,12 +548,13 @@ process merge_dedup_splitbam {
"${decompress_command} ${run_pairsam}" :
"pairtools merge ${run_pairsam} --nproc ${task.cpus} --tmpdir \$TASK_TMP_DIR"
)
def dedup_options = params['dedup'].get('dedup_options','')

if(make_pairsam)
"""
TASK_TMP_DIR=\$(mktemp -d -p ${task.distillerTmpDir} distiller.tmp.XXXXXXXXXX)
${merge_command} | pairtools dedup \
${merge_command} | pairtools dedup ${dedup_options} \
--max-mismatch ${params.dedup.max_mismatch_bp} \
--mark-dups \
--output \
Expand Down Expand Up @@ -581,7 +582,7 @@ process merge_dedup_splitbam {
"""
TASK_TMP_DIR=\$(mktemp -d -p ${task.distillerTmpDir} distiller.tmp.XXXXXXXXXX)
${merge_command} | pairtools dedup \
${merge_command} | pairtools dedup ${dedup_options} \
--max-mismatch ${params.dedup.max_mismatch_bp} \
--mark-dups \
--output ${library}.${ASSEMBLY_NAME}.nodups.pairs.gz \
Expand Down
16 changes: 7 additions & 9 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ RUN apt-get update --fix-missing && \


# Set the locale
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN locale-gen en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8

# Install conda
RUN curl -LO http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
RUN curl -LO https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -p /miniconda3 -b && \
rm Miniconda3-latest-Linux-x86_64.sh
rm Miniconda3-latest-Linux-x86_64.sh
ENV PATH=/miniconda3/bin:${PATH}

# Install conda dependencies
Expand All @@ -26,10 +26,8 @@ RUN conda config --set always_yes yes --set changeps1 no && \
conda config --add channels conda-forge && \
conda config --add channels defaults && \
conda config --add channels bioconda && \
conda config --add channels golobor && \
conda config --get && \
conda update -q conda && \
conda info -a && \
conda env update -q -n root --file environment.yml && \
conda clean --tarballs --index-cache --lock

conda clean --tarballs --index-cache
Loading

0 comments on commit e0b7456

Please sign in to comment.