Mercurial > repos > jjohnson > spectrast
diff spectrast_import.xml @ 3:7f02fc51bddf draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/spectrast commit 379705f578f9a0465f497894c7d2b5f68b6a55e6-dirty
| author | jjohnson |
|---|---|
| date | Wed, 25 Jul 2018 10:58:17 -0400 |
| parents | 4e23dcad9087 |
| children | c9bfe6adb7cd |
line wrap: on
line diff
--- a/spectrast_import.xml Wed Jun 20 12:58:33 2018 -0400 +++ b/spectrast_import.xml Wed Jul 25 10:58:17 2018 -0400 @@ -1,5 +1,5 @@ <tool id="spectrast_import" name="SpectraST Import" version="@VERSION@.0"> - <description>Spectral Library</description> + <description>Spectral Library from ms2, msp, or hlf</description> <macros> <import>macros.xml</import> </macros> @@ -10,12 +10,16 @@ #set $ext = '.' + str($input.extension) #set $input_name = $re.sub('[.](ms2|msp|hlf)$','',$input.display_name.split('/')[-1]) + $ext ln -s '$input' '$input_name' && + mkdir -p libdir && + spectrast -cN'libdir/library' '$input_name' | tee '$output' && mkdir -p '$output.files_path' && - spectrast -cN'${output.files_path}/library' '$input_name' | tee '$output' + for i in library.splib library.sptxt library.spidx library.pepidx; do if [ -e outdir/${i} ]; then cp -p outdir/${i} '$output.files_path'; fi; done ]]></command> <inputs> <param name="input" type="data" format="ms2,msp,hlf" label="Spectral library ms2, msp, or hlf" help="BiblioSpec .ms2, NIST .msp, or X!Hunter .hlf"/> + <param name="bin" type="boolean" truevalue="" falsevalue="-c_BIN!" checked="true" + label="Write library in binary format, which enables quicker search."/> </inputs> <outputs> <data name="output" format="splib"/>
