Mercurial > repos > bgruening > natural_product_likeness
comparison natural_product_likeness_calculator.xml @ 18:da45aa9141cf
ChemicalToolBoX update.
author | Bjoern Gruening <bjoern.gruening@gmail.com> |
---|---|
date | Tue, 23 Jul 2013 19:01:28 +0200 |
parents | 08e8e01c6fcb |
children | 4b59e2a3b0be |
comparison
equal
deleted
inserted
replaced
17:2f5a2e537ad6 | 18:da45aa9141cf |
---|---|
1 <tool id="ctb_np-likeness-calculator" name="Natural Product" version="0.2"> | 1 <tool id="ctb_np-likeness-calculator" name="Natural Product" version="0.2.1"> |
2 <description>likeness calculator</description> | 2 <description>likeness calculator</description> |
3 <parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="100" shared_inputs="" merge_outputs="outfile,outfragments"></parallelism> | 3 <!--<parallelism method="multi" split_inputs="infile" split_mode="to_size" split_size="100" shared_inputs="" merge_outputs="outfile,outfragments"></parallelism>--> |
4 <requirements> | 4 <requirements> |
5 <requirement type="package" version="2.0">np-likeness-scorer</requirement> | 5 <requirement type="package" version="2.0">np-likeness-scorer</requirement> |
6 </requirements> | 6 </requirements> |
7 <command> | 7 <command> |
8 ## NPLC is really picky with file extensions. We need to specify every datatype as file extension | |
9 ## A workaround is to create a symlink with a proper file-extension. | |
10 #import tempfile | |
11 #set $temp_file = tempfile.NamedTemporaryFile() | |
12 #set $temp_link = "%s.%s" % ($temp_file.name, $infile.ext) | |
13 $temp_file.close() | |
14 ln -s $infile $temp_link; | |
15 | |
8 java -jar \$NPLS_JAR_PATH/NP-Likeness-2.0.jar | 16 java -jar \$NPLS_JAR_PATH/NP-Likeness-2.0.jar |
9 -in "${infile}" | 17 -in "${temp_link}" |
10 -out "${outfile}" | 18 -out "${outfile}" |
11 #if $reconstruct_fragments: | 19 #if $reconstruct_fragments: |
12 -reconstructFragments true | 20 -reconstructFragments true |
13 -outFragments $outfragments | 21 -outFragments $outfragments |
14 #end if | 22 #end if |
23 ; | |
24 rm $temp_link | |
15 </command> | 25 </command> |
16 <stdio> | 26 <stdio> |
17 <exit_code range="1:" /> | 27 <exit_code range="1:" /> |
18 <exit_code range=":-1" /> | 28 <exit_code range=":-1" /> |
19 </stdio> | 29 </stdio> |
20 <inputs> | 30 <inputs> |
21 <param format="smi,sdf" name="infile" type="data" label="Molecule file" help="Dataset missing? See TIP below"/> | 31 <param format="smi,sdf" name="infile" type="data" label="Molecule file" help="Dataset missing? See TIP below"/> |
22 <param name='reconstruct_fragments' type='boolean' label='Fragments-scores are written out in SMILES format' truevalue='' falsevalue='' /> | 32 <param name='reconstruct_fragments' type='boolean' label='Fragments-scores are written out in SMILES format' truevalue='' falsevalue='' /> |
23 </inputs> | 33 </inputs> |
24 <outputs> | 34 <outputs> |
25 <data format="sdf" name="outfile" /> | 35 <data format_source="infile" name="outfile" /> |
26 <data format="tabular" name="outfragments"> | 36 <data format="tabular" name="outfragments"> |
27 <filter>reconstruct_fragments is True</filter> | 37 <filter>reconstruct_fragments is True</filter> |
28 </data> | 38 </data> |
29 </outputs> | 39 </outputs> |
30 <tests> | 40 <tests> |