Skip to content

Commit

Permalink
Update: process overlap_with_known_TFBS
Browse files Browse the repository at this point in the history
  • Loading branch information
renewiegandt committed Nov 8, 2018
1 parent 87bbda0 commit da77364
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pipeline.nf
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//!/usr/bin/env nextflow

Channel.fromPath(params.input).map {it -> [it.simpleName, it]}.set {bigwig_input}
Channel.fromPath(params.genome_fasta).into {fa_overlap; fa_scan}
Channel.fromPath(params.genome_fasta).into {fa_overlap; fa_scan; fa_overlap_2}
Channel.fromPath(params.jaspar_db).into {db_for_motivscan; db_for_tomtom}
Channel.fromPath(params.config).set {config}

Expand All @@ -13,14 +13,14 @@ process footprint_extraction {
set name, file (bigWig) from bigwig_input

output:
set name, file ('*.bed') into bed_for_overlapp_with_TFBS
set name, file ('*.bed') into bed_for_overlap_with_TFBS

script:
"""
"""
}


//Abfrage ob ausgeführt werden muss.
process extract_known_TFBS {

input:
Expand All @@ -36,16 +36,20 @@ process extract_known_TFBS {
}


bed_for_overlap_with_TFBS.combine(known_TFBS_for_overlap).combine(fa_overlap_2).set {for_overlap}


process overlap_with_known_TFBS {

input:
file (TFBS) from known_TFBS_for_overlap
set file (bed_footprints), file (bed_motifs), file (fasta) from for_overlap

output:
file ('*.FASTA') into FASTA_for_clustering

script:
"""
${path_bin}/compareBed.sh --data ${bed_footprints} --motifs ${bed_motifs} --fasta ${fasta} -o ${name_placeholder} -min ${params.min_size_fp} -max ${params.max_size_fp}
"""
}

Expand Down

0 comments on commit da77364

Please sign in to comment.