# HG changeset patch # User rnateam # Date 1527003834 14400 # Node ID 09c51ff142a2fd05170869d512bd7a5c91542010 # Parent ba2996b5f69ca9d71a7f1f2798179dc24c2dd936 planemo upload for repository https://github.com/tbischler/PEAKachu commit 172dab2fc73fcce3ae7df19286b48848af9033d2-dirty diff -r ba2996b5f69c -r 09c51ff142a2 peakachu.xml --- a/peakachu.xml Thu Feb 15 16:00:17 2018 -0500 +++ b/peakachu.xml Tue May 22 11:43:54 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 ba2996b5f69c -r 09c51ff142a2 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:43:54 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