Mercurial > repos > recetox > qcxms_production_run
view msp_out.sh @ 4:356f7916ac07 draft default tip
planemo upload for repository https://github.com/RECETOX/galaxytools/tree/master/tools/qcxms commit 5a088c3d758c9a1dbd119dad55ecffa173139a40
author | recetox |
---|---|
date | Thu, 17 Oct 2024 06:17:42 +0000 |
parents | b566b27247f7 |
children |
line wrap: on
line source
#!/bin/sh molname=`sed -n '1{p;q}' molname.txt` 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