stPeakList.pl 0.fid/test.ft2 ../peak_lists/peaks_corr_final.list > peaks_list.tab
cat peaks_list.tab
</source>
=== Make file with paths to .ft2 files ===
Then we make a file list of filepaths to .ft2 files.
<source lang="bash">
ls -v -d -1 */*.ft2 > ft2_files.ls
cat ft2_files.ls
</source>
=== Measure the height or sum in a spectral point box ===
<source lang="bash">
seriesTab -in peaks_list.tab -out peaks_list_max_standard.ser -list ft2_files.ls -max
seriesTab -in peaks_list.tab -out peaks_list_max_dx1_dy1.ser -list ft2_files.ls -max -dx 1 -dy 1
</source>
OR make the sum in a box:
<source lang="bash">
seriesTab -in peaks_list.tab -out peaks_list_sum_dx1_dy1.ser -list ft2_files.ls -sum -dx 1 -dy 1
</source>
=== Extract the spectra settings from Varian procpar file ===
Now we want to make a frequency setting file for relax.
<source lang="bash">
set NCYCLIST=`awk '/^ncyc /{f=1;next}f{print $0;exit}' procpar`; echo $NCYCLIST
set TIMET2=`awk '/^time_T2 /{f=1;next}f{print $2;exit}' procpar`; echo $TIMET2
set SFRQ=`awk '/^sfrq /{f=1;next}f{print $2;exit}' procpar`; echo $SFRQ
foreach I (`seq 2 ${#NCYCLIST}`)
set NCYC=${NCYCLIST[$I]}; set FRQ=`echo ${NCYC}/${TIMET2} | bc -l`; echo $NCYC $TIMET2 $FRQ $SFRQ >> ncyc.txt
end
cat ncyc.txt
</source>
= See also =
[[Category:Tutorials]]