Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
renewiegandt committed Dec 14, 2018
1 parent 9318075 commit 63548bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 0 additions & 3 deletions bin/compareBed.sh
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,6 @@ fi

Rscript --vanilla $path/merge.R $min $max $workdir $data

echo "------------------------------------------------------------"
echo $workdir
head -100 $workdir/merged.bed
#5. add fasta sequences to bed and create fasta file
bedtools getfasta -fi $fasta -bed $workdir/merged.bed -bedOut > $output
bedtools getfasta -name -fi $fasta -bed "$output" -fo "$output".fasta
Expand Down
2 changes: 1 addition & 1 deletion config/motif_estimation.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
params {
//bed_to_clustered_fasta
min_seq = 50
min_seq = 10

//glam2
motif_min_len = 8
Expand Down
2 changes: 1 addition & 1 deletion nextflow.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
wd = "/mnt/agnerds/Rene.Wiegandt/10_Master/masterJLU2018"
createTimeout = 60
createTimeout = 40
params.threads=60 //Parameter for for scripts! Not for nextflow processes.
params.config="${wd}/config/uropa.config"

Expand Down
4 changes: 2 additions & 2 deletions pipeline.nf
Original file line number Diff line number Diff line change
Expand Up @@ -247,12 +247,12 @@ process overlap_with_known_TFBS {
set name, file (bed_footprints), val (bed_motifs), file (fasta) from for_overlap

output:
set name, file ("${name}.bed") into bed_for_reducing
set name, file ("${name}_unknown.bed") into bed_for_reducing

script:
motif_list = bed_motifs.toString().replaceAll(/\s|\[|\]/,"")
"""
${path_bin}/compareBed.sh --data ${bed_footprints} --motifs ${motif_path} --fasta ${fasta} -o ${name}_un.bed -min ${params.min_size_fp} -max ${params.max_size_fp} -p ${path_bin}
${path_bin}/compareBed.sh --data ${bed_footprints} --motifs ${motif_path} --fasta ${fasta} -o ${name}_unknown.bed -min ${params.min_size_fp} -max ${params.max_size_fp} -p ${path_bin}
"""
}

Expand Down

0 comments on commit 63548bd

Please sign in to comment.