# HG changeset patch # User rnateam # Date 1527004038 14400 # Node ID 68656d100a7f799dd0999bf31343bed43fbfa475 # Parent bc594df2aba32febb1647b5c375f4a84d64d65fc planemo upload for repository https://github.com/tbischler/PEAKachu commit 172dab2fc73fcce3ae7df19286b48848af9033d2-dirty diff -r bc594df2aba3 -r 68656d100a7f peakachu.xml --- a/peakachu.xml Thu Feb 15 15:59:41 2018 -0500 +++ b/peakachu.xml Tue May 22 11:47:18 2018 -0400 @@ -1,4 +1,4 @@ - + Calls Peaks in CLIP data python @@ -65,10 +65,18 @@ --padj_threshold $padj_threshold && - head -n 1 -q ./tmp_output/peak_tables/*.csv | head -n 1 > peaks.tsv && - tail -n +2 -q ./tmp_output/peak_tables/*.csv >> peaks.tsv && - mv peaks.tsv '$peak_tables' && - mv ./tmp_output/plots/Initial*.png '$MA_plot' + if ls ./tmp_output/peak_tables/*.csv > /dev/null; + then + head -n 1 -q ./tmp_output/peak_tables/*.csv | head -n 1 > peaks.tsv && + tail -n +2 -q ./tmp_output/peak_tables/*.csv >> peaks.tsv && + mv peaks.tsv '$peak_tables' && + cat ./tmp_output/peak_annotations/*.gff | awk '/peak/ {print $0}' > peak_annotations.gff && + mv peak_annotations.gff '$peak_annotations' && + mv ./tmp_output/plots/Initial*.png '$MA_plot'; + else + echo "No Peaks Found" >&2; + fi + ]]> @@ -157,6 +165,7 @@ + @@ -164,7 +173,7 @@ - + diff -r bc594df2aba3 -r 68656d100a7f test-data/test1_peak_annotations.gff --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/test1_peak_annotations.gff Tue May 22 11:47:18 2018 -0400 @@ -0,0 +1,2 @@ +NC_016810.1 PEAKachu peak_region 514559 514582 . - . ID=NC_016810.1:peak_1 +NC_016810.1 PEAKachu peak_region 514559 514584 . + . ID=NC_016810.1:peak_2