annotate galaxy_stubs/LigandFileSplitter.xml @ 2:605370bc1def draft default tip

Uploaded
author luis
date Tue, 12 Jul 2016 12:33:33 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
605370bc1def Uploaded
luis
parents:
diff changeset
1 <?xml version='1.0' encoding='UTF-8'?>
605370bc1def Uploaded
luis
parents:
diff changeset
2 <!--This is a configuration file for the integration of a tools into Galaxy (https://galaxyproject.org/). This file was automatically generated using CTD2Galaxy.-->
605370bc1def Uploaded
luis
parents:
diff changeset
3 <!--Proposed Tool Section: [Preparation]-->
605370bc1def Uploaded
luis
parents:
diff changeset
4 <tool id="LigandFileSplitter" name="LigandFileSplitter" version="1.1.0">
605370bc1def Uploaded
luis
parents:
diff changeset
5 <description>split molecule files</description>
605370bc1def Uploaded
luis
parents:
diff changeset
6 <macros>
605370bc1def Uploaded
luis
parents:
diff changeset
7 <token name="@EXECUTABLE@">LigandFileSplitter</token>
605370bc1def Uploaded
luis
parents:
diff changeset
8 <import>macros.xml</import>
605370bc1def Uploaded
luis
parents:
diff changeset
9 </macros>
605370bc1def Uploaded
luis
parents:
diff changeset
10 <expand macro="stdio"/>
605370bc1def Uploaded
luis
parents:
diff changeset
11 <expand macro="requirements"/>
605370bc1def Uploaded
luis
parents:
diff changeset
12 <command>LigandFileSplitter
605370bc1def Uploaded
luis
parents:
diff changeset
13
605370bc1def Uploaded
luis
parents:
diff changeset
14 #if $param_i:
605370bc1def Uploaded
luis
parents:
diff changeset
15 -i $param_i
605370bc1def Uploaded
luis
parents:
diff changeset
16 #end if
605370bc1def Uploaded
luis
parents:
diff changeset
17 #if $param_no:
605370bc1def Uploaded
luis
parents:
diff changeset
18 -no $param_no
605370bc1def Uploaded
luis
parents:
diff changeset
19 #end if
605370bc1def Uploaded
luis
parents:
diff changeset
20 #if $param_mpf:
605370bc1def Uploaded
luis
parents:
diff changeset
21 -mpf $param_mpf
605370bc1def Uploaded
luis
parents:
diff changeset
22 #end if
605370bc1def Uploaded
luis
parents:
diff changeset
23 #if $param_outname_pattern:
605370bc1def Uploaded
luis
parents:
diff changeset
24 -outname_pattern "$param_outname_pattern"
605370bc1def Uploaded
luis
parents:
diff changeset
25 #end if
605370bc1def Uploaded
luis
parents:
diff changeset
26
605370bc1def Uploaded
luis
parents:
diff changeset
27 #if $rep_param_o:
605370bc1def Uploaded
luis
parents:
diff changeset
28 -o
605370bc1def Uploaded
luis
parents:
diff changeset
29 #for token in $rep_param_o:
605370bc1def Uploaded
luis
parents:
diff changeset
30 #if " " in str(token):
605370bc1def Uploaded
luis
parents:
diff changeset
31 "$token.param_o"
605370bc1def Uploaded
luis
parents:
diff changeset
32 #else
605370bc1def Uploaded
luis
parents:
diff changeset
33 $token.param_o
605370bc1def Uploaded
luis
parents:
diff changeset
34 #end if
605370bc1def Uploaded
luis
parents:
diff changeset
35 #end for
605370bc1def Uploaded
luis
parents:
diff changeset
36 #end if
605370bc1def Uploaded
luis
parents:
diff changeset
37 </command>
605370bc1def Uploaded
luis
parents:
diff changeset
38 <inputs>
605370bc1def Uploaded
luis
parents:
diff changeset
39 <param name="param_i" type="data" format="mol2,sdf,drf" optional="False" value="&lt;class 'CTDopts.CTDopts._Null'&gt;" label="input molecule file" help="(-i) "/>
605370bc1def Uploaded
luis
parents:
diff changeset
40 <param name="param_no" type="integer" value="0" label="Number of output files to be created" help="(-no) "/>
605370bc1def Uploaded
luis
parents:
diff changeset
41 <param name="param_mpf" type="integer" value="0" label="Number of molecules per output file" help="(-mpf) "/>
605370bc1def Uploaded
luis
parents:
diff changeset
42 <param name="param_outname_pattern" type="text" size="30" value="&lt;class 'CTDopts.CTDopts._Null'&gt;" label="Pattern that will be used to generate the names of the output files, see notes and examples below" help="(-outname_pattern) ">
605370bc1def Uploaded
luis
parents:
diff changeset
43 <sanitizer>
605370bc1def Uploaded
luis
parents:
diff changeset
44 <valid initial="string.printable">
605370bc1def Uploaded
luis
parents:
diff changeset
45 <remove value="'"/>
605370bc1def Uploaded
luis
parents:
diff changeset
46 <remove value="&quot;"/>
605370bc1def Uploaded
luis
parents:
diff changeset
47 </valid>
605370bc1def Uploaded
luis
parents:
diff changeset
48 </sanitizer>
605370bc1def Uploaded
luis
parents:
diff changeset
49 </param>
605370bc1def Uploaded
luis
parents:
diff changeset
50 </inputs>
605370bc1def Uploaded
luis
parents:
diff changeset
51 <expand macro="advanced_options"/>
605370bc1def Uploaded
luis
parents:
diff changeset
52 <outputs>
605370bc1def Uploaded
luis
parents:
diff changeset
53 <data name="param_o" metadata_source="param_i" format="input"/>
605370bc1def Uploaded
luis
parents:
diff changeset
54 </outputs>
605370bc1def Uploaded
luis
parents:
diff changeset
55 <help>LigandFileSplitter splits a molecule file into a given number of subsets.
605370bc1def Uploaded
luis
parents:
diff changeset
56
605370bc1def Uploaded
luis
parents:
diff changeset
57 Examples:
605370bc1def Uploaded
luis
parents:
diff changeset
58
605370bc1def Uploaded
luis
parents:
diff changeset
59 $ LigandFileSplitter -i Trypsin_actives.sdf -o batch_1 batch_2
605370bc1def Uploaded
luis
parents:
diff changeset
60 will split the input file Trypsin_actives.sdf in the two output files batch_1.sdf and batch_2.sdf.
605370bc1def Uploaded
luis
parents:
diff changeset
61
605370bc1def Uploaded
luis
parents:
diff changeset
62 $ LigandFileSplitter -i Trypsin_actives.sdf -no 3
605370bc1def Uploaded
luis
parents:
diff changeset
63 will split the input file Trypsin_actives.sdf in three files named Trypsin_actives_0.sdf, Trypsin_actives_1.sdf and Trypsin_actives_2.sdf
605370bc1def Uploaded
luis
parents:
diff changeset
64
605370bc1def Uploaded
luis
parents:
diff changeset
65 $ LigandFileSplitter -i ligands.sdf -ligands_per_file 4
605370bc1def Uploaded
luis
parents:
diff changeset
66 will split the input file ligands.sdf in as many files needed to fit at most 4 ligands per file.
605370bc1def Uploaded
luis
parents:
diff changeset
67 The files will be named ligands_0.sdf, ligands_1.sdf ... ligands_N.sdf
605370bc1def Uploaded
luis
parents:
diff changeset
68
605370bc1def Uploaded
luis
parents:
diff changeset
69 $ LigandFileSplitter -i ligands.sdf -ligands_per_file 5 -outname_pattern split_ligands-%d.sdf
605370bc1def Uploaded
luis
parents:
diff changeset
70 will split the input file ligands.sdf in as many files needed to fit at most 5 ligands per file.
605370bc1def Uploaded
luis
parents:
diff changeset
71 The files will be named split_ligands-0.sdf, split_ligands-1.sdf, ... , split_ligands-N.sdf.
605370bc1def Uploaded
luis
parents:
diff changeset
72
605370bc1def Uploaded
luis
parents:
diff changeset
73 $ LigandFileSplitter -i ligands.sdf -outname_pattern split_ligands_%d.sdf -no 100
605370bc1def Uploaded
luis
parents:
diff changeset
74 will split the input file ligands.sdf in 100 files using the following names:
605370bc1def Uploaded
luis
parents:
diff changeset
75 split_ligands_0.sdf, split_ligands_1.sdf, ... , split_ligands_99.sdf.
605370bc1def Uploaded
luis
parents:
diff changeset
76
605370bc1def Uploaded
luis
parents:
diff changeset
77 NOTES:
605370bc1def Uploaded
luis
parents:
diff changeset
78 - Molecules are not sorted in any way.
605370bc1def Uploaded
luis
parents:
diff changeset
79 - The tool is no format converter and the format of the output files will be the same as of the input file.
605370bc1def Uploaded
luis
parents:
diff changeset
80 - Output_name_pattern accepts a printf-like pattern, expecting exactly one decimal integer placeholder, %d.
605370bc1def Uploaded
luis
parents:
diff changeset
81 - The following are valid patterns: output_ligand.sdf_%d, split_%d.mol, %d_lig.drf
605370bc1def Uploaded
luis
parents:
diff changeset
82 - The following are invalid patterns: output_%f.sdf, ligands.drf_%u, %d_lig_%d.mol, molecules.sdf
605370bc1def Uploaded
luis
parents:
diff changeset
83
605370bc1def Uploaded
luis
parents:
diff changeset
84 WARNING:
605370bc1def Uploaded
luis
parents:
diff changeset
85 - If the parameter outname_pattern is specified, the user is responsible for the occurrence of a valid file extension
605370bc1def Uploaded
luis
parents:
diff changeset
86 in the outname_pattern, which has to be of the same file format as the input file.
605370bc1def Uploaded
luis
parents:
diff changeset
87
605370bc1def Uploaded
luis
parents:
diff changeset
88
605370bc1def Uploaded
luis
parents:
diff changeset
89
605370bc1def Uploaded
luis
parents:
diff changeset
90 </help>
605370bc1def Uploaded
luis
parents:
diff changeset
91 </tool>