Mercurial > repos > jjohnson > spectrast
changeset 0:4e23dcad9087 draft
planemo upload for repository https://github.com/galaxyproteomics/tools-galaxyp/tree/master/tools/spectrast commit d390af4450c890f34bfb02a5c1feaaa10b015411-dirty
author | jjohnson |
---|---|
date | Mon, 14 May 2018 14:48:42 -0400 |
parents | |
children | 390a3c4a7f6b |
files | macros.xml spectrast_import.xml test-data/test.ms2 |
diffstat | 3 files changed, 721 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/macros.xml Mon May 14 14:48:42 2018 -0400 @@ -0,0 +1,15 @@ +<macros> + <token name="@VERSION@">5.0.0</token> + <xml name="requirements"> + <requirements> + <requirement type="package" version="5.0.0">tpp</requirement> + <yield/> + </requirements> + </xml> + <xml name="citations"> + <citations> + <citation type="doi">10.1002/pmic.200600625</citation> + <yield /> + </citations> + </xml> +</macros>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/spectrast_import.xml Mon May 14 14:48:42 2018 -0400 @@ -0,0 +1,44 @@ +<tool id="spectrast_import" name="SpectraST Import" version="@VERSION@.0"> + <description>Spectral Library</description> + <macros> + <import>macros.xml</import> + </macros> + <expand macro="requirements" /> + <command detect_errors="exit_code"><$','',$input.display_name.split('/')[-1]) + $ext + ln -s '$input' '$input_name' && + mkdir -p '$output.files_path' && + spectrast -cN'${output.files_path}/library' '$input_name' | tee '$output' + ]]></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"/> + </inputs> + <outputs> + <data name="output" format="splib"/> + </outputs> + <tests> + <test> + <param name="input" ftype="ms2" value="test.ms2"/> + <output name="output"> + <assert_contents> + <has_text_matching expression="Total number of spectra in library: 1" /> + </assert_contents> + </output> + </test> + </tests> + <help><![CDATA[ +**What it does** + +Imports a spectral library from the following formats: + + NIST (National Institute of Standards and Technology)'s .msp format + X!Hunter's .hlf format + BiblioSpec's .ms2 format + + ]]></help> + <expand macro="citations" /> +</tool>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test-data/test.ms2 Mon May 14 14:48:42 2018 -0400 @@ -0,0 +1,662 @@ +H CreationDate Mon May 7 19:27:23 2018 +H Extractor BlibToMs2 +H Comment Library /panfs/roc/groups/7/galaxy/galaxy/tmp/bibliospec/msgf.blib +S 1 1 784.865 +Z 2 1550.64 +D seq FKWNGTDTNSAAEK +D modified seq FKWNGTDTNSAAEK +222.15 215.1 +226.12 430.3 +231.15 2031.2 +232.24 955.1 +241.22 230.4 +242.50 344.8 +243.29 93.3 +244.33 770.5 +245.10 291.0 +251.73 315.3 +253.21 348.0 +257.19 370.3 +258.25 1122.5 +259.30 683.3 +261.30 602.0 +262.20 234.3 +266.27 451.5 +267.18 294.7 +269.20 232.8 +270.16 212.1 +271.24 124.4 +272.11 215.8 +275.34 328.5 +276.20 7651.9 +277.25 861.3 +277.93 72.0 +284.14 644.3 +285.15 262.7 +286.39 243.0 +291.42 459.6 +294.19 207.4 +295.43 455.0 +296.25 276.5 +297.18 396.1 +303.36 614.7 +305.27 216.3 +308.28 454.7 +310.35 793.8 +311.28 1132.6 +313.27 324.8 +314.28 148.8 +315.28 707.1 +324.29 862.0 +325.25 264.7 +326.56 311.0 +327.32 272.3 +328.29 148.9 +330.23 162.9 +331.36 155.8 +333.12 323.8 +334.09 178.8 +336.20 547.7 +339.28 419.3 +340.80 530.3 +342.43 389.1 +343.33 858.5 +344.23 641.2 +347.28 1662.9 +348.50 338.7 +349.50 504.0 +350.34 137.8 +352.23 174.6 +354.65 561.3 +355.46 328.7 +357.48 241.0 +359.15 169.6 +361.22 88.9 +363.25 208.1 +365.00 1175.1 +367.46 251.3 +368.27 126.7 +369.16 321.0 +371.18 1050.7 +372.21 291.4 +373.30 976.8 +375.25 480.5 +378.77 287.8 +381.28 989.9 +382.09 222.1 +383.31 721.1 +384.43 245.6 +385.34 307.9 +392.29 129.6 +395.04 1013.0 +397.28 657.8 +398.35 412.4 +399.07 211.3 +401.38 761.4 +403.17 392.7 +404.45 382.6 +406.07 529.0 +409.30 941.1 +410.45 401.6 +412.32 1822.4 +413.45 196.0 +415.37 886.4 +417.45 556.4 +418.43 1548.0 +419.31 909.6 +420.27 1269.1 +421.35 100.5 +422.27 1072.7 +423.21 733.0 +424.26 1664.9 +425.52 643.1 +427.33 1110.1 +428.25 813.2 +429.21 968.2 +430.18 209.9 +431.36 980.7 +433.36 265.0 +434.32 230.9 +437.21 165.4 +440.34 3389.4 +441.23 1414.0 +442.38 767.9 +444.27 961.5 +445.50 639.4 +450.58 210.0 +452.31 453.2 +453.58 506.0 +455.46 820.0 +457.42 328.8 +458.35 1172.6 +459.84 792.2 +461.34 558.4 +462.34 6647.8 +463.49 2858.2 +464.38 507.9 +466.55 218.5 +467.39 393.0 +468.51 816.1 +470.25 367.3 +471.43 1705.3 +472.19 819.5 +473.45 849.2 +474.80 1453.2 +477.43 287.4 +478.45 331.7 +479.32 704.1 +480.42 1086.9 +481.40 552.8 +484.42 248.4 +485.43 927.4 +486.38 960.0 +487.12 1621.6 +488.43 291.9 +489.32 388.4 +491.26 484.4 +492.43 922.4 +494.34 1188.2 +495.43 1722.2 +497.45 435.9 +498.20 270.1 +499.33 553.4 +500.42 208.2 +501.42 654.3 +502.35 191.0 +504.47 395.3 +505.32 2859.5 +506.07 1331.3 +507.34 813.6 +508.50 269.9 +510.34 143.7 +511.47 848.2 +512.44 349.8 +513.33 183.0 +514.37 1457.9 +515.39 1279.6 +516.75 138.7 +519.84 385.6 +521.34 707.9 +522.48 831.6 +523.45 420.6 +524.68 332.5 +525.38 138.3 +526.30 917.4 +527.50 218.1 +528.36 492.2 +531.44 721.0 +535.55 141.4 +537.52 1206.4 +538.36 175.6 +539.36 1106.1 +540.21 361.0 +541.38 600.1 +542.39 2197.9 +543.27 1295.5 +544.18 263.3 +545.49 111.9 +548.34 523.6 +549.41 514.1 +550.44 284.6 +552.33 137.1 +553.37 903.2 +554.46 1225.1 +555.52 2405.3 +556.65 1106.9 +557.49 786.3 +558.86 1888.8 +559.50 1591.0 +560.46 332.5 +561.38 878.1 +564.40 680.8 +566.47 491.2 +567.50 1182.7 +568.47 250.0 +572.36 778.2 +573.35 175.1 +574.83 201.4 +575.88 1850.8 +576.52 4304.3 +577.58 7036.5 +578.41 3519.4 +579.43 790.3 +580.48 239.0 +581.39 178.3 +582.35 276.8 +583.32 706.7 +584.44 862.5 +585.39 820.8 +587.65 1797.1 +588.39 681.8 +589.43 1309.3 +590.44 107.5 +591.82 1806.1 +592.72 128.8 +593.55 678.9 +594.29 966.4 +595.55 332.7 +596.22 529.0 +597.26 791.3 +598.07 885.6 +599.01 1687.5 +600.07 1972.0 +602.62 969.3 +603.78 1327.5 +604.52 727.6 +606.53 707.3 +609.60 377.1 +610.49 1431.3 +611.49 613.4 +612.62 707.5 +613.29 946.6 +614.39 936.4 +615.38 1696.7 +616.58 1958.4 +617.30 51.2 +619.43 4515.9 +620.42 3058.7 +621.56 2387.4 +622.59 1527.2 +623.59 1839.5 +624.41 2587.4 +625.41 1202.7 +626.57 674.2 +627.42 424.7 +628.42 922.2 +629.36 321.4 +630.28 2294.3 +631.26 573.6 +633.46 4293.5 +634.38 994.8 +635.50 1300.6 +637.28 1310.6 +639.15 6815.4 +640.44 4771.1 +641.43 2247.8 +642.26 990.3 +643.43 992.9 +644.46 1600.0 +645.38 165.6 +647.32 5624.7 +647.92 1085.2 +648.54 1520.0 +650.77 1051.1 +651.51 980.8 +653.27 386.0 +654.45 1395.7 +656.64 2493.4 +657.37 190.7 +658.37 380.0 +660.38 723.7 +661.81 2816.5 +662.47 855.0 +665.74 1114.5 +667.70 648.6 +668.70 611.5 +670.59 528.2 +671.70 3173.5 +672.61 858.7 +673.37 518.1 +675.28 202.1 +676.46 784.4 +677.32 891.8 +679.30 559.8 +680.74 727.5 +682.52 410.6 +683.41 57.8 +684.24 1861.7 +685.35 608.0 +686.55 413.3 +687.44 373.9 +688.76 1118.9 +689.48 446.2 +690.44 1531.4 +691.80 3243.5 +692.43 793.5 +693.74 2091.2 +694.54 3539.1 +695.74 605.4 +696.47 80.6 +698.75 1746.8 +699.71 902.8 +700.37 442.0 +702.68 6153.2 +703.57 5776.3 +704.43 1245.5 +705.70 576.8 +707.78 1771.0 +708.65 1508.2 +709.56 1246.1 +711.55 8745.4 +712.43 4402.2 +713.14 142.6 +715.01 645.3 +716.60 3977.7 +717.65 4870.4 +720.45 26895.8 +721.41 7756.3 +722.17 2128.9 +723.32 989.7 +724.34 698.3 +725.67 245.8 +726.44 154.5 +727.49 612.8 +730.35 343.5 +731.52 709.9 +732.92 2950.4 +733.66 3000.5 +734.52 1696.0 +735.62 3270.2 +737.40 1717.4 +738.44 243.2 +739.28 2173.8 +740.63 184.0 +741.47 2744.6 +742.08 388.6 +742.70 917.1 +743.82 443.1 +744.63 959.5 +745.67 4948.2 +746.40 2072.6 +747.02 264.7 +747.99 481.7 +749.39 2365.3 +750.34 1523.3 +751.38 2000.3 +752.65 18627.3 +753.62 4943.6 +754.50 3111.5 +755.78 1725.1 +756.71 1234.9 +757.54 2362.6 +758.58 3455.5 +759.51 320.3 +760.76 1380.4 +762.27 2400.5 +763.03 3926.8 +763.94 1856.3 +764.79 290.4 +766.67 15190.9 +767.66 31097.7 +768.54 9313.9 +769.28 1613.3 +770.30 2269.9 +771.80 708.7 +772.56 224.6 +773.53 234.5 +775.82 28382.5 +776.65 62637.0 +777.59 7367.0 +778.21 352.0 +782.47 191.0 +788.52 273.4 +789.53 162.0 +792.77 638.0 +794.45 745.0 +797.45 364.6 +798.56 185.9 +799.53 330.3 +801.72 1330.7 +811.54 1388.5 +813.51 158.0 +814.46 1694.3 +815.51 1337.6 +816.54 234.0 +817.58 665.7 +818.49 981.8 +819.61 658.6 +822.54 173.9 +827.89 334.6 +830.11 605.3 +831.62 2185.3 +832.58 3591.4 +833.42 524.8 +834.45 338.2 +835.44 8816.1 +836.62 3783.7 +838.67 1190.7 +840.55 563.5 +842.70 239.9 +844.63 779.8 +846.60 512.1 +849.57 12136.6 +850.57 3998.9 +851.74 1094.7 +853.63 393.6 +854.81 81.2 +859.36 182.1 +867.46 317.4 +869.66 236.6 +875.39 280.1 +879.00 135.1 +880.48 612.9 +884.21 1250.3 +887.63 117.1 +888.60 111.9 +890.35 360.1 +895.45 274.2 +898.69 386.7 +899.55 416.4 +901.69 567.5 +903.43 216.5 +907.48 213.3 +908.44 397.7 +909.45 3061.4 +910.81 1370.6 +912.39 1802.8 +913.57 889.8 +915.51 563.1 +916.54 576.0 +917.39 381.5 +918.84 307.3 +919.62 311.9 +921.06 1028.8 +923.48 924.8 +925.45 277.1 +926.88 419.2 +927.70 140.3 +928.57 759.5 +929.63 851.4 +930.61 552.8 +931.69 140.1 +932.62 377.2 +933.40 110.2 +934.62 256.7 +935.82 808.4 +936.63 5353.9 +937.45 3296.2 +938.06 906.5 +938.69 157.0 +939.90 1255.5 +941.93 107.9 +942.71 595.3 +944.64 312.5 +947.40 242.7 +948.83 512.1 +949.84 1085.6 +950.72 585.3 +951.86 1329.1 +952.64 851.4 +953.58 903.8 +954.49 400.4 +955.81 271.0 +958.80 89.0 +959.52 499.1 +962.35 757.9 +964.63 88.6 +965.68 1260.4 +967.02 1344.8 +968.50 1087.0 +969.38 1273.9 +970.45 1521.2 +971.97 486.2 +973.02 1172.7 +975.37 3043.5 +976.62 2757.3 +978.55 621.7 +980.42 346.6 +983.30 475.5 +984.69 249.8 +985.63 196.3 +988.78 163.5 +992.48 3458.0 +993.56 18198.6 +994.68 8532.4 +995.60 3634.7 +996.86 113.0 +997.91 264.2 +998.71 433.2 +1002.52 513.4 +1003.45 192.6 +1004.53 227.9 +1007.65 595.9 +1008.67 577.4 +1010.75 410.0 +1011.61 1210.1 +1012.67 717.9 +1014.64 519.0 +1020.41 1351.2 +1021.02 1176.7 +1022.99 220.4 +1023.66 823.9 +1024.87 859.3 +1026.53 481.3 +1028.19 1272.4 +1029.62 159.8 +1030.23 115.1 +1031.67 675.0 +1033.11 328.5 +1040.75 569.9 +1046.43 684.6 +1047.56 556.1 +1049.54 679.2 +1050.83 202.0 +1054.96 201.7 +1055.99 329.2 +1058.38 453.5 +1060.15 660.2 +1062.63 255.1 +1064.68 869.2 +1065.92 897.2 +1066.74 382.8 +1067.80 321.4 +1069.53 227.3 +1070.72 378.5 +1073.84 912.5 +1074.89 706.1 +1077.42 2053.0 +1081.71 341.3 +1082.64 775.3 +1087.53 361.5 +1089.81 2140.6 +1090.63 3634.1 +1091.59 1005.0 +1092.44 258.0 +1095.85 305.2 +1096.63 244.4 +1098.64 310.1 +1103.74 898.3 +1104.55 295.0 +1106.49 414.2 +1107.62 19912.3 +1108.60 11504.9 +1109.74 2027.9 +1110.64 666.1 +1111.32 256.0 +1112.70 682.1 +1116.78 1351.0 +1117.92 197.0 +1118.63 656.6 +1121.71 777.5 +1130.83 609.1 +1133.29 618.6 +1134.05 235.4 +1134.72 1351.4 +1135.96 448.8 +1137.96 247.2 +1139.80 68.1 +1147.35 358.6 +1148.43 1030.7 +1149.86 1004.4 +1150.86 1562.3 +1151.77 4737.5 +1152.65 904.7 +1153.40 940.1 +1154.64 1004.3 +1155.88 457.9 +1161.46 256.9 +1162.68 648.5 +1167.73 173.1 +1169.10 568.1 +1176.54 522.9 +1183.83 356.9 +1187.89 589.7 +1188.87 867.7 +1190.62 284.9 +1194.94 748.2 +1198.97 226.2 +1199.70 909.0 +1204.72 1023.0 +1205.75 1904.3 +1206.60 570.3 +1209.87 294.8 +1213.72 210.8 +1214.71 549.4 +1218.30 382.2 +1222.56 2222.2 +1223.67 973.6 +1224.90 1159.9 +1236.89 139.5 +1237.80 86.4 +1240.89 209.0 +1242.04 231.2 +1245.63 477.2 +1248.60 292.1 +1250.90 241.2 +1258.73 1915.9 +1259.84 1370.2 +1260.77 346.6 +1264.19 116.2 +1264.87 666.9 +1271.15 233.5 +1275.95 2237.8 +1276.81 3059.9 +1277.72 1607.5 +1278.74 418.6 +1285.49 561.3 +1287.81 374.6 +1290.71 509.6 +1293.69 45114.2 +1294.72 30144.4 +1295.68 11608.2 +1296.48 296.7 +1299.91 279.8 +1300.91 254.0 +1308.27 409.7 +1308.94 390.1 +1309.61 789.7 +1310.68 115.3 +1313.74 415.4 +1319.81 249.9 +1322.71 350.5 +1360.81 712.2 +1387.66 60.8 +1389.08 385.4 +1394.97 416.9 +1396.13 166.4 +1403.84 429.0 +1404.85 514.8 +1405.68 1268.6 +1407.81 343.8 +1421.63 1608.4 +1422.83 3651.5 +1423.79 2601.8 +1424.90 1284.5 +1440.02 145.6 +1442.08 251.2 +1442.91 456.2 +1451.93 218.1 +1459.69 232.7 +1472.73 339.1 +1505.74 292.4 +1565.08 294.4