mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Added module, TODO data
This commit is contained in:
parent
e1a3d1b18a
commit
0a04c96357
3 changed files with 100 additions and 0 deletions
40
.github/workflows/stringtie.yml
vendored
Normal file
40
.github/workflows/stringtie.yml
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
name: stringtie
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- software/stringtie/**
|
||||
- .github/workflows/stringtie.yml
|
||||
- tests/software/stringtie/**
|
||||
pull_request:
|
||||
paths:
|
||||
- software/stringtie/**
|
||||
- .github/workflows/stringtie.yml
|
||||
- tests/software/stringtie/**
|
||||
|
||||
jobs:
|
||||
ci_test:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
nxf_version: [20.11.0-edge]
|
||||
env:
|
||||
NXF_ANSI_LOG: false
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Install Nextflow
|
||||
env:
|
||||
NXF_VER: ${{ matrix.nxf_version }}
|
||||
run: |
|
||||
wget -qO- get.nextflow.io | bash
|
||||
sudo mv nextflow /usr/local/bin/
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: python -m pip install --upgrade pip pytest-workflow
|
||||
|
||||
# Test the module
|
||||
- run: pytest --tag stringtie --symlink --wt 2
|
36
tests/software/stringtie/main.nf
Normal file
36
tests/software/stringtie/main.nf
Normal file
|
@ -0,0 +1,36 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.enable.dsl = 2
|
||||
|
||||
include { STRINGTIE as STRINGTIE_F } from '../../../software/stringtie/main.nf' addParams( options: [ publish_dir:'test_forward' ] )
|
||||
include { STRINGTIE as STRINGTIE_R } from '../../../software/stringtie/main.nf' addParams( options: [ publish_dir:'test_reverse' ] )
|
||||
|
||||
/*
|
||||
* Test with forward strandedness
|
||||
*/
|
||||
workflow test_stringtie_forward {
|
||||
|
||||
def input = []
|
||||
input = [ [ id:'test', strandedness:'forward' ], // meta map
|
||||
[ file("${launchDir}/tests/data/bam/test.paired_end.sorted.bam", checkIfExists: true) ] ]
|
||||
|
||||
STRINGTIE_F (
|
||||
input,
|
||||
file("${launchDir}/tests/data/gff/a.gtf", checkIfExists: true)
|
||||
)
|
||||
}
|
||||
|
||||
/*
|
||||
* Test with reverse strandedness
|
||||
*/
|
||||
workflow test_stringtie_reverse {
|
||||
|
||||
def input = []
|
||||
input = [ [ id:'test', strandedness:'reverse' ], // meta map
|
||||
[ file("${launchDir}/tests/data/bam/test.paired_end.sorted.bam", checkIfExists: true) ] ]
|
||||
|
||||
STRINGTIE_R (
|
||||
input,
|
||||
file("${launchDir}/tests/data/gff/a.gtf", checkIfExists: true)
|
||||
)
|
||||
}
|
24
tests/software/stringtie/test.yml
Normal file
24
tests/software/stringtie/test.yml
Normal file
|
@ -0,0 +1,24 @@
|
|||
- name: Run stringtie forward strand test workflow
|
||||
command: nextflow run ./tests/software/stringtie/ -profile docker -entry test_stringtie_forward -c tests/config/nextflow.config
|
||||
tags:
|
||||
- stringtie
|
||||
files:
|
||||
- path: output/test_forward/test.ballgown
|
||||
- path: output/test_forward/test.gene_abundance.txt
|
||||
- path: output/test_forward/test.transcripts.gtf
|
||||
md5sum: f1b5baa8d94f86e499556a4ec419a75a
|
||||
- path: output/test_forward/test.coverage.gtf
|
||||
md5sum: d41d8cd98f00b204e9800998ecf8427e
|
||||
|
||||
|
||||
- name: Run stringtie reverse strand test workflow
|
||||
command: nextflow run ./tests/software/stringtie/ -profile docker -entry test_stringtie_reverse -c tests/config/nextflow.config
|
||||
tags:
|
||||
- stringtie
|
||||
files:
|
||||
- path: output/test_reverse/test.ballgown
|
||||
- path: output/test_reverse/test.gene_abundance.txt
|
||||
- path: output/test_reverse/test.transcripts.gtf
|
||||
md5sum: cb0367e5f98f19fcc2043d248deb513c
|
||||
- path: output/test_reverse/test.coverage.gtf
|
||||
md5sum: d41d8cd98f00b204e9800998ecf8427e
|
Loading…
Reference in a new issue