Skip to content

Commit

Permalink
Merge pull request #1 from theiagen/im-v1.2.0-dev
Browse files Browse the repository at this point in the history
Update HMAS-wdl to v1.2.0
  • Loading branch information
cimendes authored Dec 10, 2024
2 parents f2aac20 + 0014cd0 commit d5c860b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 13 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ WORKDIR /

# Version arguments
# ARG variables only persist during build time
# using latest release from 2023/06/20
ARG HMAS_VERSION="1.0.0"
ARG HMAS_VERSION="1.2.0"
ARG HMAS_SRC_URL=https://github.com/ncezid-biome/HMAS-QC-Pipeline2/archive/refs/tags/v${HMAS_VERSION}.zip

# metadata labels
Expand Down Expand Up @@ -53,6 +52,8 @@ RUN mamba create -y --name hmas -c conda-forge -c bioconda -c defaults \
cutadapt=3.5 \
pear \
vsearch=2.22.1 \
multiqc=1.21 \
fastqc=0.12.1 \
nextflow=22.10.6 && \
mamba clean -a -y

Expand Down
16 changes: 8 additions & 8 deletions tasks/task_hmas.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ task hmas {
Array[File] read1
Array[File] read2
File primers
String docker="us-docker.pkg.dev/general-theiagen/internal/hmas:1.0.0"
Int memory = 32
Int cpu = 12
Int disk_size = 500
String docker="us-docker.pkg.dev/general-theiagen/internal/hmas:1.2.0"
Int memory = 24
Int cpu = 8
Int disk_size = 100
}
command <<<
date | tee DATE
Expand All @@ -30,16 +30,16 @@ task hmas {
cp -r /HMAS-QC-Pipeline2/* ./

# Run nextflow
nextflow run hmas2.nf --outdir OUT --reads reads --primer ~{primers}
nextflow run hmas2.nf --outdir OUT --reads reads --primer ~{primers}

>>>
output {
String hmas_docker = docker
String analysis_date = read_string("DATE")
File hmas_report = "OUT/report.csv"
Array[File] hmas_clean_read1 = glob("OUT/*/temp/*.1.fastq")
Array[File] hmas_clean_read2 = glob("OUT/*/temp/*.2.fastq")
Array[File] hmas_consensus_fasta = glob("OUT/*/*final.unique.fasta")
File hmas_multiqc_html = "OUT/multiqc_report.html"
File hmas_mqc_yaml = "OUT/report_mqc.yaml"
Array[File] hmas_final_fasta = glob("OUT/*/*final.unique.fasta")
}
runtime {
docker: "~{docker}"
Expand Down
6 changes: 3 additions & 3 deletions workflows/hmas.wdl
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ workflow hmas_wf {
}
output {
File hmas_report = hmas.hmas_report
Array[File] hmas_clean_read1 = hmas.hmas_clean_read1
Array[File] hmas_clean_read2 = hmas.hmas_clean_read2
Array[File] hmas_consensus_fasta = hmas.hmas_consensus_fasta
File hmas_multiqc_html = hmas.hmas_multiqc_html
File hmas_mqc_yaml = hmas.hmas_mqc_yaml
Array[File] hmas_final_fasta = hmas.hmas_final_fasta
String hmas_docker = hmas.hmas_docker
String analysis_date = hmas.analysis_date
}
Expand Down

0 comments on commit d5c860b

Please sign in to comment.