Mercurial > repos > anmoljh > mayatool_extract
comparison ExtractFromSDFiles.xml @ 0:e3086f60b0e4 draft
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
author | anmoljh |
---|---|
date | Fri, 01 Jun 2018 04:57:02 -0400 |
parents | |
children | ae1ad90ca587 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e3086f60b0e4 |
---|---|
1 <tool id="ExtractFromSDFiles" name="ExtractFromSDFiles" version="1.0"> | |
2 <description>extract data from file according to field name and Ids </description> | |
3 <requirements> | |
4 <requirement type="package" version="9.0">mayachemtools</requirement> | |
5 </requirements> | |
6 <stdio> | |
7 <exit_code range="1:" /> | |
8 </stdio> | |
9 | |
10 <command> <![CDATA[ | |
11 | |
12 #if '.sdf' in $inputsdf.name | |
13 | |
14 /bin/mkdir -p $inputsdf.extra_files_path; | |
15 ln -sf $inputsdf $inputsdf.extra_files_path/molecules.sdf; | |
16 | |
17 ExtractFromSDFiles.pl -o -m datafieldbylist -d $Identifier,`cat ${indexnumbers}` -r $outputsdf.name $inputsdf.extra_files_path/molecules.sdf > $logs; | |
18 | |
19 /bin/rm -rf $inputsdf.extra_files_path; | |
20 cp $outputsdf.name $outputsdf; | |
21 | |
22 #end if | |
23 | |
24 ]]> </command> | |
25 <inputs> | |
26 <param name="inputsdf" type="data" format="sdf" label="Original SDF File " help="sdf file from which selected ids of molecules need to be extracted." /> | |
27 <param name="Identifier" type="text" label="Field name" help="Give field name of molecules on which compound need to be extracted Ex. MolID,PUBCHEM_COMPOUND_ID,CID etc." /> | |
28 <param name="indexnumbers" type="data" format="txt" label="Id file which need to be extracted from dataset" help="select file of ids ie. result file obtained from the tool 'Extract IDs From Prediction Result'" /> | |
29 </inputs> | |
30 <outputs> | |
31 <data name="outputsdf" format="sdf" label="extracted_cpds_from_${inputsdf.name}" /> | |
32 <data name="logs" format="txt" label="logfile" /> | |
33 </outputs> | |
34 <tests> | |
35 <test> | |
36 <param name="inputsdf" value="Pred_set.sdf" /> | |
37 <param name="Identifier" value="MOLECULE_NAME" /> | |
38 <param name="indexnumbers" value="extracted_ids.txt" /> | |
39 <output name="outputsdf" file="extracted_cpds.sdf" compare="sim_size" delta="8000000" /> | |
40 <output name="logs" file="ext_log.txt" compare="sim_size" delta="800000" /> | |
41 </test> | |
42 </tests> | |
43 </tool> |