Skip to content

Commit daa25b9

Browse files
committed
Merge branch 'preseq_test'
2 parents 86850dc + 09d56ef commit daa25b9

File tree

5 files changed

+61
-29
lines changed

5 files changed

+61
-29
lines changed

.github/workflows/phantompeakqualtools.yml renamed to .github/workflows/preseq_lcextrap.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
name: phantompeakqualtools
1+
name: preseq_lcextrap
22
on:
33
push:
44
paths:
5-
- software/phantompeakqualtools/**
6-
- .github/workflows/phantompeakqualtools.yml
7-
- tests/software/phantompeakqualtools/**
5+
- software/preseq/lcextrap/**
6+
- .github/workflows/preseq_lcextrap.yml
7+
- tests/software/preseq/**
88
pull_request:
99
paths:
10-
- software/phantompeakqualtools/**
11-
- .github/workflows/phantompeakqualtools.yml
12-
- tests/software/phantompeakqualtools/**
10+
- software/preseq/lcextrap/**
11+
- .github/workflows/preseq_lcextrap.yml
12+
- tests/software/preseq/**
1313

1414
jobs:
1515
ci_test:
@@ -37,4 +37,4 @@ jobs:
3737
run: python -m pip install --upgrade pip pytest-workflow
3838

3939
# Test the module
40-
- run: pytest --tag phantompeakqualtools --symlink --wt 2
40+
- run: pytest --tag preseq_lcextrap --symlink --wt 2

tests/software/phantompeakqualtools/main.nf

Lines changed: 0 additions & 12 deletions
This file was deleted.

tests/software/phantompeakqualtools/test.yml

Lines changed: 0 additions & 9 deletions
This file was deleted.

tests/software/preseq/main.nf

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env nextflow
2+
3+
nextflow.enable.dsl = 2
4+
5+
include { PRESEQ_LCEXTRAP as PRESEQ_LCEXTRAP_SE } from '../../../software/preseq/lcextrap/main.nf' addParams( options: [ publish_dir:'test_preseq_single_end' ] )
6+
include { PRESEQ_LCEXTRAP as PRESEQ_LCEXTRAP_PE } from '../../../software/preseq/lcextrap/main.nf' addParams( options: [ publish_dir:'test_preseq_paired_end' ] )
7+
8+
/*
9+
* Test with single-end data
10+
*/
11+
12+
workflow test_preseq_single_end {
13+
14+
def input = []
15+
input = [ [ id:'test', single_end:true ], // meta map
16+
[ file('https://github.com/smithlabcode/preseq/raw/master/data/SRR1003759_5M_subset.mr', checkIfExists: true), ] ]
17+
PRESEQ_LCEXTRAP_SE ( input )
18+
}
19+
20+
/*
21+
* Test with paired-end data
22+
*/
23+
24+
workflow test_preseq_paired_end {
25+
26+
def input = []
27+
input = [ [ id:'test', single_end:false ], // meta map
28+
[ file('https://github.com/smithlabcode/preseq/raw/master/data/SRR1003759_5M_subset.mr', checkIfExists: true), ] ]
29+
30+
PRESEQ_LCEXTRAP_PE ( input )
31+
}
32+

tests/software/preseq/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
- name: Run preseq single-end lcextrap
2+
command: nextflow run ./tests/software/preseq -profile docker -entry test_preseq_single_end -c tests/config/nextflow.config
3+
tags:
4+
- preseq
5+
- preseq_lcextrap
6+
7+
files:
8+
- path: output/test_preseq_single_end/test.ccurve.txt
9+
md5sum: 76ae04c8eaf19c94e3210bb69da38498
10+
- path: output/test_preseq_single_end/test.command.log
11+
12+
- name: Run preseq paired-end lcextrap
13+
command: nextflow run ./tests/software/preseq -profile docker -entry test_preseq_paired_end -c tests/config/nextflow.config
14+
tags:
15+
- preseq
16+
- preseq_lcextrap
17+
18+
files:
19+
- path: output/test_preseq_paired_end/test.ccurve.txt
20+
md5sum: 2836d2fabd2213f097fd7063db550276
21+
- path: output/test_preseq_paired_end/test.command.log

0 commit comments

Comments
 (0)