Skip to content

Commit 6f8a372

Browse files
committed
Fix if no consensus peaks are provided
1 parent 40db9a5 commit 6f8a372

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

modules/local/igv.nf

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,11 @@ process IGV {
3030
# Avoid error when consensus not produced
3131
find * -type l -name "*.bed" -exec echo -e ""{}"\\t0,0,178" \\; | { grep "^$consensus_dir" || test \$? = 1; } > consensus.igv.txt
3232
33-
cat mappings/* > replace_paths.txt
34-
33+
touch replace_paths.txt
34+
if [ -d "mappings" ]; then
35+
cat mappings/* > replace_paths.txt
36+
fi
37+
3538
cat *.igv.txt > igv_files_orig.txt
3639
igv_files_to_session.py igv_session.xml igv_files_orig.txt replace_paths.txt ../../genome/${fasta.getName()} --path_prefix '../../'
3740

0 commit comments

Comments
 (0)