Skip to content

Commit

Permalink
basic testing for runReadsToContig
Browse files Browse the repository at this point in the history
  • Loading branch information
aw-watson committed Dec 17, 2024
1 parent 76c285d commit 46f4aa2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: CI Tests

on: [push, pull_request]
on: [push]

jobs:
test:
Expand Down
7 changes: 3 additions & 4 deletions main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,10 @@ workflow {
}

if(params.modules.runAssembly && !params.r2c.useAssembledContigs) {
ASSEMBLY(params.assembly.plus(params.shared), paired, unpaired, avgLen)
contigs = ASSEMBLY.out.outContigs
ASSEMBLY(params.assembly.plus(params.shared), paired, unpaired, avgLen)
contigs = ASSEMBLY.out.outContigs
READSTOCONTIGS(params.r2c.plus(params.shared), paired, unpaired, contigs)
}

READSTOCONTIGS(params.r2c.plus(params.shared), paired, unpaired, contigs)


}
4 changes: 3 additions & 1 deletion modules/runReadsToContig/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
FROM continuumio/miniconda3:23.5.2-0 AS build
FROM continuumio/miniconda3:main AS build

ENV container=docker

Expand All @@ -14,6 +14,7 @@ RUN conda init bash \

RUN conda install -n readsToContig -c conda-forge r-base
RUN conda install -n readsToContig -c conda-forge python=3.11
RUN conda install -n readsToContig -c bioconda minimap2=2.24
RUN conda install -n readsToContig -c bioconda perl-json
RUN conda install -n readsToContig -c bioconda samclip=0.4.0
RUN conda install -n readsToContig -c bioconda bwa
Expand All @@ -39,6 +40,7 @@ FROM debian:buster AS runtime
#RUN apk add --no-cache bash

COPY --from=build /venv /venv
RUN apt-get update && apt-get install procps -y && apt-get clean
ENV PERL5LIB=/venv/lib/perl5/core_perl
ENV PATH=/venv/bin:$PATH

Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ process {
container = 'apwat/run_assembly:1.5'
}
withLabel: 'r2c' {
container = 'apwat/run_r2c:1.3'
container = 'apwat/run_r2c:1.6'
}
}

Expand Down
3 changes: 3 additions & 0 deletions tests/modules/runAssembly/runAssembly.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ nextflow_workflow {
}
assembly{
assembler = "lrasm"
lrasm {
ec = true
}
}
}
workflow {
Expand Down

0 comments on commit 46f4aa2

Please sign in to comment.