Mercurial > repos > anmoljh > mayatool_extract
annotate ExtractFromSDFiles.xml @ 0:e3086f60b0e4 draft
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
author | anmoljh |
---|---|
date | Fri, 01 Jun 2018 04:57:02 -0400 |
parents | |
children | ae1ad90ca587 |
rev | line source |
---|---|
0
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
1 <tool id="ExtractFromSDFiles" name="ExtractFromSDFiles" version="1.0"> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
2 <description>extract data from file according to field name and Ids </description> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
3 <requirements> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
4 <requirement type="package" version="9.0">mayachemtools</requirement> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
5 </requirements> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
6 <stdio> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
7 <exit_code range="1:" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
8 </stdio> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
9 |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
10 <command> <![CDATA[ |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
11 |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
12 #if '.sdf' in $inputsdf.name |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
13 |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
14 /bin/mkdir -p $inputsdf.extra_files_path; |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
15 ln -sf $inputsdf $inputsdf.extra_files_path/molecules.sdf; |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
16 |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
17 ExtractFromSDFiles.pl -o -m datafieldbylist -d $Identifier,`cat ${indexnumbers}` -r $outputsdf.name $inputsdf.extra_files_path/molecules.sdf > $logs; |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
18 |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
19 /bin/rm -rf $inputsdf.extra_files_path; |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
20 cp $outputsdf.name $outputsdf; |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
21 |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
22 #end if |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
23 |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
24 ]]> </command> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
25 <inputs> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
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." /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
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." /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
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'" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
29 </inputs> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
30 <outputs> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
31 <data name="outputsdf" format="sdf" label="extracted_cpds_from_${inputsdf.name}" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
32 <data name="logs" format="txt" label="logfile" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
33 </outputs> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
34 <tests> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
35 <test> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
36 <param name="inputsdf" value="Pred_set.sdf" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
37 <param name="Identifier" value="MOLECULE_NAME" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
38 <param name="indexnumbers" value="extracted_ids.txt" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
39 <output name="outputsdf" file="extracted_cpds.sdf" compare="sim_size" delta="8000000" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
40 <output name="logs" file="ext_log.txt" compare="sim_size" delta="800000" /> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
41 </test> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
42 </tests> |
e3086f60b0e4
planemo upload commit a1f4dd8eb560c649391ada1a6bb9505893a35272-dirty
anmoljh
parents:
diff
changeset
|
43 </tool> |