Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restructure file hierarchy #36

Merged
merged 5 commits into from
Jul 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/cutadapt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: cutadapt
on:
push: {}
pull_request:
paths: tools/cutadapt/*
paths: software/cutadapt/*

jobs:
run_ci_test:
Expand All @@ -25,10 +25,10 @@ jobs:

- name: Test module with paired-end data
run: |
cd tools/cutadapt/test_paired/
cd software/cutadapt/test_paired/
nextflow run . -ansi-log false

- name: Test module with single-end data
run: |
cd tools/cutadapt/test_single/
cd software/cutadapt/test_single/
nextflow run . -ansi-log false
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: master
# Only if a conda environment file or a docker build file has been updated
paths:
- tools/*/environment.yml
- tools/*/Dockerfile
- software/*/environment.yml
- software/*/Dockerfile

jobs:
build_docker:
Expand Down Expand Up @@ -36,7 +36,7 @@ jobs:
echo $TOOL
done;
echo '-----'
for d in tools/*; do
for d in software/*; do
for TOOL in $TOOLS; do
echo "$d -- $TOOL"
if echo $d/ | grep -q "$TOOL"; then
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fastqc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: FastQC
on:
push: {}
pull_request:
paths: tools/fastqc/*
paths: software/fastqc/*

jobs:
run_ci_test:
Expand All @@ -20,4 +20,4 @@ jobs:
sudo mv nextflow /usr/local/bin/

# Test the module
- run: nextflow run ./tools/fastqc/test/ -ansi-log false
- run: nextflow run ./software/fastqc/test/ -ansi-log false
4 changes: 2 additions & 2 deletions .github/workflows/samtools_index.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: samtools index
on:
push: {}
pull_request:
paths: tools/samtools/index*
paths: software/samtools/index*

jobs:
run_ci_test:
Expand All @@ -20,4 +20,4 @@ jobs:
sudo mv nextflow /usr/local/bin/

# Test the module
- run: nextflow run ./tools/samtools/index/test/ -ansi-log false
- run: nextflow run ./software/samtools/index/test/ -ansi-log false
4 changes: 2 additions & 2 deletions .github/workflows/samtools_sort.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: samtools sort
on:
push: {}
pull_request:
paths: tools/samtools/sort*
paths: software/samtools/sort*

jobs:
run_ci_test:
Expand All @@ -20,4 +20,4 @@ jobs:
sudo mv nextflow /usr/local/bin/

# Test the module
- run: nextflow run ./tools/samtools/sort/test/ -ansi-log false
- run: nextflow run ./software/samtools/sort/test/ -ansi-log false
4 changes: 2 additions & 2 deletions .github/workflows/tcoffee.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: tcoffee
on:
push: {}
pull_request:
paths: tools/tcoffee/*
paths: software/tcoffee/*

jobs:
run_ci_test:
Expand All @@ -26,5 +26,5 @@ jobs:

# Test the module
- run: |
cd tools/tcoffee/test/
cd software/tcoffee/test/
nextflow run . -ansi-log false
4 changes: 2 additions & 2 deletions .github/workflows/trim_galore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Trim Galore!
on:
push: {}
pull_request:
paths: tools/trim_galore/*
paths: software/trim_galore/*

jobs:
run_ci_test:
Expand All @@ -20,4 +20,4 @@ jobs:
sudo mv nextflow /usr/local/bin/

# Test the module
- run: nextflow run ./tools/trim_galore/test/ -ansi-log false
- run: nextflow run ./software/trim_galore/test/ -ansi-log false
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env nextflow
nextflow.preview.dsl = 2
include '../../../nf-core/module_testing/check_process_outputs.nf' params(params)
include '../../../tests/functions/check_process_outputs.nf' params(params)
include '../main.nf' params(params)

// Define input channels
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env nextflow
nextflow.preview.dsl = 2
include '../../../../nf-core/module_testing/check_process_outputs.nf' params(params)
include '../../../../tests/functions/check_process_outputs.nf' params(params)
include '../main.nf' params(params)

reads = '../../../../test-datasets/tools/bwa/mem/reads/*_R{1,2}_001.fastq.gz'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (params.verbose){
println ("[WORKFLOW] FASTQ SCREEN ARGS ARE: " + params.fastq_screen_args)
}

// TODO: include '../../../nf-core/module_testing/check_process_outputs.nf'
// TODO: include '../../../tests/functions/check_process_outputs.nf'
include '../main.nf'

// Define input channels
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/fastqc/test/main.nf → software/fastqc/test/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ params.fastqc_args = ''
params.verbose = false

// TODO: check the output files in some way
// include '../../../nf-core/module_testing/check_process_outputs.nf'
// include '../../../tests/functions/check_process_outputs.nf'
include '../main.nf'

// Define input channels
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env nextflow
nextflow.preview.dsl = 2
include '../../../nf-core/module_testing/check_process_outputs.nf' params(params)
include '../../../tests/functions/check_process_outputs.nf' params(params)
include '../main.nf' params(params)

// Define input channels
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env nextflow
nextflow.preview.dsl = 2
include '../../../nf-core/module_testing/check_process_outputs.nf' params(params)
include '../../../tests/functions/check_process_outputs.nf' params(params)
include '../main.nf' params(params)

// Define input channels
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ params.outdir = "."
params.verbose = false
params.multiqc_args = ''

// include '../../../nf-core/module_testing/check_process_outputs.nf'
// include '../../../tests/functions/check_process_outputs.nf'
include '../main.nf'

if (params.verbose){
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env nextflow
nextflow.preview.dsl = 2
include '../../../nf-core/module_testing/check_process_outputs.nf' params(params)
include '../../../tests/functions/check_process_outputs.nf' params(params)
include '../main.nf' params(params)

// Define input channels
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 1 addition & 6 deletions tools/tcoffee/test/main.nf → software/tcoffee/test/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

nextflow.preview.dsl = 2

include check_output from '../../../nf-core/module_testing/check_process_outputs.nf'
include check_output from '../../../tests/functions/check_process_outputs.nf'
include tcoffee from '../main.nf'

// Define input channels
Expand All @@ -13,8 +13,3 @@ workflow {
tcoffee(fasta)
// .check_output()
}





File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (params.verbose){
}

// TODO: check the output files in some way
// include '../../../nf-core/module_testing/check_process_outputs.nf'
// include '../../../tests/functions/check_process_outputs.nf'
include '../main.nf' // params (clip_r1: 6, clip_r2: 10) // how to pass additional parameters

ch_read_files = Channel
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.