Commit 4c50a0ce authored by khalid's avatar khalid
Browse files

test if igv prefs file exists

parent 0be9b229
......@@ -11,7 +11,7 @@ rule <step_name>__igv_visualize:
shell:
#plot IGV mapping res
"cd {params.output_dir}; "
"sed -i 's|DEFAULT_GENOME_KEY=.*|DEFAULT_GENOME_KEY={input.genome}|' /root/igv/prefs.properties; "
"if [ -f /root/igv/prefs.properties ]; then sed -i 's|DEFAULT_GENOME_KEY=.*|DEFAULT_GENOME_KEY={input.genome}|' /root/igv/prefs.properties fi; "
"cat <<-EOF > igv.batch\n"
"new\n"
"genome {input.genome}\n"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment