mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-11-10 20:23:10 +00:00
Added ucsc module
This commit is contained in:
parent
27dbe8b52a
commit
b95bd37780
3 changed files with 61 additions and 0 deletions
39
.github/workflows/ucsc_bedgraphtobigwig.yml
vendored
Normal file
39
.github/workflows/ucsc_bedgraphtobigwig.yml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
name: ucsc_bedgraphtobigwig
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- software/ucsc/bedgraphtobigwig/**
|
||||
- .github/workflows/ucsc_bedgraphtobigwig.yml
|
||||
- tests/software/ucsc/**
|
||||
pull_request:
|
||||
paths:
|
||||
- software/ucsc/bedgraphtobigwig/**
|
||||
- .github/workflows/ucsc_bedgraphtobigwig.yml
|
||||
- tests/software/ucsc/**
|
||||
|
||||
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 ucsc_bedgraphtobigwig --symlink --wt 2
|
15
tests/software/ucsc/main.nf
Normal file
15
tests/software/ucsc/main.nf
Normal file
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env nextflow
|
||||
|
||||
nextflow.enable.dsl = 2
|
||||
|
||||
include { UCSC_BEDGRAPHTOBIGWIG } from '../../../software/ucsc/bedgraphtobigwig/main.nf' addParams( options: [:] )
|
||||
|
||||
workflow test_ucsc_bedgraphtobigwig {
|
||||
def input = []
|
||||
input = [ [ id:'test' ], // meta map
|
||||
[ file('https://raw.githubusercontent.com/igvteam/igv.js/master/test/data/wig/bedgraph-example-uscs.bedgraph', checkIfExists: true) ] ]
|
||||
UCSC_BEDGRAPHTOBIGWIG (
|
||||
input,
|
||||
file('https://raw.githubusercontent.com/igvteam/igv.js/master/test/data/wig/chrom.sizes', checkIfExists: true)
|
||||
)
|
||||
}
|
7
tests/software/ucsc/test.yml
Normal file
7
tests/software/ucsc/test.yml
Normal file
|
@ -0,0 +1,7 @@
|
|||
- name: Run bedgraphtobigwig test workflow
|
||||
command: nextflow run ./tests/software/ucsc/ -profile docker -entry test_ucsc_bedgraphtobigwig -c tests/config/nextflow.config
|
||||
tags:
|
||||
- ucsc_bedgraphtobigwig
|
||||
files:
|
||||
- path: output/ucsc/test.bigWig
|
||||
md5sum: 5346de25b01ecbff91b63178b3bfbeec
|
Loading…
Reference in a new issue