Mercurial > repos > recetox > qcxms_production_run
diff msp_out.sh @ 0:bf836aaeca19 draft
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 45ad41f2368834ab06929496fb17fc9a85b8e3c5
author | recetox |
---|---|
date | Thu, 22 Feb 2024 08:41:32 +0000 |
parents | |
children | b566b27247f7 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/msp_out.sh Thu Feb 22 08:41:32 2024 +0000 @@ -0,0 +1,11 @@ +#!/bin/sh + +molname=`sed -n '2{p;q}' TMPQCXMS/TMP.1/start.xyz` +kword=$(grep 'NPOINTS' result.jdx) +num_peaks=$(echo "$kword" | sed 's/^[^=]*=//') +echo `pwd` +sed -n '/PEAK/,/END/{/PEAK/!{/END/!p}}' result.jdx > temp.dat +awk '{print $1, $2}' temp.dat > tempa.dat +sed "1s/^/NAME: $molname\nNum Peaks: $num_peaks\n/" tempa.dat >> simulated_spectra.msp +sed -i '$a\ ' simulated_spectra.msp +rm temp.dat tempa.dat \ No newline at end of file