-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into simonleandergrimm-patch-1
- Loading branch information
Showing
12 changed files
with
94 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Use Ubuntu as the base image | ||
FROM ubuntu:22.04 | ||
|
||
# Prevent interactive prompts during package installation | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
# Install essential dependencies, R, and system libraries needed for R packages | ||
RUN apt-get update && apt-get install -y \ | ||
wget \ | ||
pigz \ | ||
pbzip2 \ | ||
r-base \ | ||
r-base-dev \ | ||
libcurl4-openssl-dev \ | ||
libssl-dev \ | ||
libxml2-dev \ | ||
libfontconfig1-dev \ | ||
libharfbuzz-dev \ | ||
libfribidi-dev \ | ||
libfreetype6-dev \ | ||
libpng-dev \ | ||
libtiff5-dev \ | ||
libjpeg-dev \ | ||
libcairo2-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install pacman first, then use it to install other packages | ||
RUN R -e "install.packages('pacman', repos='https://cran.rstudio.com/')" && \ | ||
R -e "pacman::p_load(argparse, plotly, ggsci, tidyverse)" | ||
|
||
# Set working directory | ||
WORKDIR /opt | ||
|
||
# Install Atria | ||
RUN wget https://github.com/cihga39871/Atria/releases/download/v4.1.0/atria-4.1.0-linux-ubuntu22.tar.gz && \ | ||
tar -zxf atria-4.1.0-linux-ubuntu22.tar.gz && \ | ||
rm atria-4.1.0-linux-ubuntu22.tar.gz | ||
|
||
# Create symbolic link | ||
RUN chmod +x /opt/atria-4.1.0/bin/atria && \ | ||
ln -s /opt/atria-4.1.0/bin/atria /usr/local/bin/atria | ||
|
||
# Set environment variables | ||
ENV PATH="/usr/local/bin:/opt/atria-4.1.0/bin:$PATH" | ||
|
||
# Verify installations | ||
RUN which atria && \ | ||
atria --version && \ | ||
Rscript --version && \ | ||
R -e "pacman::p_loaded()" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
process ATRIA { | ||
label "atria" | ||
label "large" | ||
input: | ||
// reads is a list of two files: forward/reverse reads | ||
tuple val(sample), path(reads) | ||
val(adapters_ch) | ||
output: | ||
tuple val(sample), path("*{1,2}.atria.fastq.gz"), emit: reads | ||
shell: | ||
''' | ||
par="--adapter1 !{adapters_ch.join(' ')} --adapter2 !{adapters_ch.join(' ')} --kmer-tolerance 2 --kmer-n-match 9 --trim-score-pe 10.0 --quality-kmer 4 --quality-score 15 --length-range 20:999999 --no-consensus" | ||
in="--read1 !{reads[0]} --read2 !{reads[1]}" | ||
atria ${par} ${in} | ||
''' | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters