Skip to content
Snippets Groups Projects
Verified Commit 9d6cde36 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

danpos: simplify bg2wig import

parent 8c4b0d09
No related branches found
No related tags found
No related merge requests found
...@@ -2,8 +2,7 @@ version = "v2.2.2_cv3" ...@@ -2,8 +2,7 @@ version = "v2.2.2_cv3"
container_url = "biocontainers/danpos:${version}" container_url = "biocontainers/danpos:${version}"
include { include {
bigwig_to_wig as bigwig_to_wig_ip; bigwig_to_wig
bigwig_to_wig_ip as bigwig_to_wig_wce
} from "./../ucsc/main.nf" } from "./../ucsc/main.nf"
params.dpos = "--smooth_width 0 -n N " params.dpos = "--smooth_width 0 -n N "
...@@ -59,9 +58,7 @@ workflow dpos_bg { ...@@ -59,9 +58,7 @@ workflow dpos_bg {
bg_ip bg_ip
bg_wce bg_wce
main: main:
bigwig_to_wig_ip(bg_ip) dpos_wig(fastq, bigwig_to_wig(bg_ip), bigwig_to_wig(bg_wce))
bigwig_to_wig_wce(bg_wce)
dpos_wig(fastq, bigwig_to_wig_ip.out.wig, bigwig_to_wig_wce.out.wig)
emit: emit:
wig = dpos_wig.out.wig wig = dpos_wig.out.wig
folder = dpos_wig.out.folder folder = dpos_wig.out.folder
...@@ -210,9 +207,7 @@ workflow dpeak_bg { ...@@ -210,9 +207,7 @@ workflow dpeak_bg {
bg_ip bg_ip
bg_wce bg_wce
main: main:
bigwig_to_wig_ip(bg_ip) dpeak_wig(fastq, bigwig_to_wig(bg_ip), bigwig_to_wig(bg_wce))
bigwig_to_wig_wce(bg_wce)
dpeak_wig(fastq, bigwig_to_wig_ip.out.wig, bigwig_to_wig_wce.out.wig)
emit: emit:
wig = dpeak_wig.out.wig wig = dpeak_wig.out.wig
folder = dpeak_wig.out.folder folder = dpeak_wig.out.folder
...@@ -270,14 +265,12 @@ workflow dpeak_bgvsbg { ...@@ -270,14 +265,12 @@ workflow dpeak_bgvsbg {
bg_ip_b bg_ip_b
bg_wce_b bg_wce_b
main: main:
bigwig_to_wig_ip(bg_ip)
bigwig_to_wig_wce(bg_wce)
dpeak_wigvswig( dpeak_wigvswig(
fastq, fastq,
bigwig_to_wig_ip(bg_ip_a).out.wig, bigwig_to_wig(bg_ip_a),
bigwig_to_wig_wce(bg_wce_a).out.wig, bigwig_to_wig(bg_wce_a),
bigwig_to_wig_ip(bg_ip_b).out.wig, bigwig_to_wig(bg_ip_b),
bigwig_to_wig_wce(bg_wce_b).out.wig bigwig_to_wig(bg_wce_b)
) )
emit: emit:
wig = dpeak_wig.out.wig wig = dpeak_wig.out.wig
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment