7
|
1 <tool id="mayatoolsbar45se11" name="mayatools" version="0.0.1">
|
|
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
|
|
6
|
|
7 </requirements>
|
|
8 <command interpreter="">
|
|
9 <![CDATA[
|
|
10 #if '.sdf' in $inputsdf.name
|
|
11 /bin/mkdir -p $inputsdf.extra_files_path;
|
|
12 ln -sf $inputsdf $inputsdf.extra_files_path/molecules.sdf;
|
|
13 ExtractFromSDFiles.pl -o -m datafieldbylist -d $Identifier,`cat ${indexnumbers}` -r $outputsdf.name $inputsdf.extra_files_path/molecules.sdf > $logs;
|
|
14 /bin/rm -rf $inputsdf.extra_files_path;
|
|
15 cp $outputsdf.name $outputsdf;
|
|
16 #end if
|
|
17 ]]>
|
|
18 </command>
|
|
19 <inputs>
|
|
20 <param name="inputsdf" type="data" format="sdf" label="Original SDF File " help="sdf file from which selected ids of molecules need to be extracted." />
|
|
21 <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." />
|
|
22 <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'" />
|
|
23
|
|
24 <!--param name="max_olap" type="integer" value="50" label="Set maximum overlap length" help="Overlaps this short or shorter are ignored." /-->
|
|
25 </inputs>
|
|
26 <outputs>
|
|
27 <data name="outputsdf" type="txt" format="sdf" label="extracted_cpds_from_${inputsdf.name}.sdf" />
|
|
28 <data name="logs" format="txt" label="logfile" />
|
|
29
|
|
30 </outputs>
|
|
31 <tests>
|
|
32
|
|
33 </tests>
|
|
34 </tool>
|