mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Fix up cutadapt tests
This commit is contained in:
parent
f36902b9af
commit
31c0f617b9
7 changed files with 32 additions and 27 deletions
13
.github/workflows/cutadapt.yml
vendored
13
.github/workflows/cutadapt.yml
vendored
|
@ -7,10 +7,11 @@ on:
|
|||
jobs:
|
||||
run_ci_test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
NXF_ANSI_LOG: false
|
||||
steps:
|
||||
# Check out the repository
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Checkout submodules
|
||||
shell: bash
|
||||
run: |
|
||||
|
@ -25,10 +26,10 @@ jobs:
|
|||
|
||||
- name: Test module with paired-end data
|
||||
run: |
|
||||
cd software/cutadapt/test_paired/
|
||||
nextflow run . -ansi-log false
|
||||
cd software/cutadapt/test/
|
||||
nextflow run .
|
||||
|
||||
- name: Test module with single-end data
|
||||
run: |
|
||||
cd software/cutadapt/test_single/
|
||||
nextflow run . -ansi-log false
|
||||
cd software/cutadapt/test/
|
||||
nextflow run . --single_end
|
||||
|
|
5
.github/workflows/fastqc.yml
vendored
5
.github/workflows/fastqc.yml
vendored
|
@ -7,7 +7,8 @@ on:
|
|||
jobs:
|
||||
run_ci_test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
NXF_ANSI_LOG: false
|
||||
steps:
|
||||
|
||||
# Check out the repository
|
||||
|
@ -20,4 +21,4 @@ jobs:
|
|||
sudo mv nextflow /usr/local/bin/
|
||||
|
||||
# Test the module
|
||||
- run: nextflow run ./software/fastqc/test/ -ansi-log false
|
||||
- run: nextflow run ./software/fastqc/test/
|
||||
|
|
5
.github/workflows/samtools_index.yml
vendored
5
.github/workflows/samtools_index.yml
vendored
|
@ -7,7 +7,8 @@ on:
|
|||
jobs:
|
||||
run_ci_test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
NXF_ANSI_LOG: false
|
||||
steps:
|
||||
|
||||
# Check out the repository
|
||||
|
@ -20,4 +21,4 @@ jobs:
|
|||
sudo mv nextflow /usr/local/bin/
|
||||
|
||||
# Test the module
|
||||
- run: nextflow run ./software/samtools/index/test/ -ansi-log false
|
||||
- run: nextflow run ./software/samtools/index/test/
|
||||
|
|
5
.github/workflows/samtools_sort.yml
vendored
5
.github/workflows/samtools_sort.yml
vendored
|
@ -7,7 +7,8 @@ on:
|
|||
jobs:
|
||||
run_ci_test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
NXF_ANSI_LOG: false
|
||||
steps:
|
||||
|
||||
# Check out the repository
|
||||
|
@ -20,4 +21,4 @@ jobs:
|
|||
sudo mv nextflow /usr/local/bin/
|
||||
|
||||
# Test the module
|
||||
- run: nextflow run ./software/samtools/sort/test/ -ansi-log false
|
||||
- run: nextflow run ./software/samtools/sort/test/
|
||||
|
|
5
.github/workflows/tcoffee.yml
vendored
5
.github/workflows/tcoffee.yml
vendored
|
@ -7,7 +7,8 @@ on:
|
|||
jobs:
|
||||
run_ci_test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
NXF_ANSI_LOG: false
|
||||
steps:
|
||||
|
||||
# Check out the repository
|
||||
|
@ -27,4 +28,4 @@ jobs:
|
|||
# Test the module
|
||||
- run: |
|
||||
cd software/tcoffee/test/
|
||||
nextflow run . -ansi-log false
|
||||
nextflow run .
|
||||
|
|
5
.github/workflows/trim_galore.yml
vendored
5
.github/workflows/trim_galore.yml
vendored
|
@ -7,7 +7,8 @@ on:
|
|||
jobs:
|
||||
run_ci_test:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
env:
|
||||
NXF_ANSI_LOG: false
|
||||
steps:
|
||||
|
||||
# Check out the repository
|
||||
|
@ -20,4 +21,4 @@ jobs:
|
|||
sudo mv nextflow /usr/local/bin/
|
||||
|
||||
# Test the module
|
||||
- run: nextflow run ./software/trim_galore/test/ -ansi-log false
|
||||
- run: nextflow run ./software/trim_galore/test/
|
||||
|
|
|
@ -3,19 +3,18 @@ nextflow.preview.dsl = 2
|
|||
include '../main.nf' params(params)
|
||||
|
||||
// Define input channels
|
||||
paired_end_input = Channel.fromFilePairs('../../../test-datasets/tools/cutadapt/input/*_{1,2}.fastq' )
|
||||
input_fastqs = Channel.fromFilePairs('../../../test-datasets/tools/cutadapt/input/*_{1,2}.fastq' )
|
||||
|
||||
// TODO: params.single_end is set to false in nextflow config
|
||||
// But most of this module is not functional currently anyway....
|
||||
single_end_input = Channel.from([
|
||||
['SRR4238351', '../../../test-datasets/tools/cutadapt/input/SRR4238351_subsamp.fastq.gz'],
|
||||
['SRR4238355', '../../../test-datasets/tools/cutadapt/input/SRR4238355_subsamp.fastq.gz'],
|
||||
['SRR4238359', '../../../test-datasets/tools/cutadapt/input/SRR4238359_subsamp.fastq.gz'],
|
||||
['SRR4238379', '../../../test-datasets/tools/cutadapt/input/SRR4238379_subsamp.fastq.gz']
|
||||
]).map { row -> [ row[0], [ file(row[1]) ] ] }
|
||||
if(params.single_end){
|
||||
input_fastqs = Channel.from([
|
||||
['SRR4238351', '../../../test-datasets/tools/cutadapt/input/SRR4238351_subsamp.fastq.gz'],
|
||||
['SRR4238355', '../../../test-datasets/tools/cutadapt/input/SRR4238355_subsamp.fastq.gz'],
|
||||
['SRR4238359', '../../../test-datasets/tools/cutadapt/input/SRR4238359_subsamp.fastq.gz'],
|
||||
['SRR4238379', '../../../test-datasets/tools/cutadapt/input/SRR4238379_subsamp.fastq.gz']
|
||||
]).map { row -> [ row[0], [ file(row[1]) ] ] }
|
||||
}
|
||||
|
||||
// Run the workflow
|
||||
workflow {
|
||||
cutadapt(paired_end_input)
|
||||
cutadapt(single_end_input)
|
||||
cutadapt(input_fastqs)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue