Skip to content

Commit 5191f4b

Browse files
committed
update fragmentation wrappers to the 0.2 version
1 parent 7414f00 commit 5191f4b

25 files changed

+29
-32
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

chemicaltoolbox/fragmenter/fragmenter.xml

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
--output-format $oformat
99
-r $rules
1010
$mark
11-
1211
2>&1
1312
</command>
1413
<inputs>

chemicaltoolbox/fragmenter/merger.xml

+29-31
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,34 @@
11
<tool id="bgchem_fragment_merger" name="Merging" >
22
<description>fragmented molecules</description>
33
<command interpreter='python' >
4-
merger.py -i $infile --input-format ${infile.ext} -o $outfile --output-format $oformat 2>&#38;1
4+
merger.py
5+
-i $infile
6+
-o $outfile
7+
--molwt-cutoff $molwt_cutoff
8+
#if $iter_opts.iter_opts_selector=="user":
9+
--mdid-off # if set, its deactivated
10+
--max-iteration-depth $iter_opts.max_depth
11+
#else:
12+
## Set defaults
13+
## End of molecule dependent iteration depth options:
14+
#end if
15+
2>&#38;1
516
</command>
617
<inputs>
718
<param name="infile" type="data" format="sdf,smi,mol,inchi,cml" label="Input file" help="Dataset missing? See TIP below"/>
8-
<param name='oformat' type='select' format='text' label="Output format.">
9-
<option value='smi'>SMILES</option>
10-
<option value='inchi'>InChI</option>
11-
<option value='sdf'>SD-Files</option>
12-
<option value='mol2'>mol2</option>
13-
</param>
19+
<param name="molwt_cutoff" type="integer" value="500" label="The number of positions between windows to report."/>
20+
<conditional name="iter_opts">
21+
<param name="iter_opts_selector" type="select" label="Iteration depth">
22+
<option value="mdid" selected="True">Molecule dependent iteration depth</option>
23+
<option value="user">User dependent iteration depth</option>
24+
</param>
25+
<when value="mdid" />
26+
<when value="user">
27+
<param name="max_depth" type="integer" value="2" label="Max iteration depth." help="">
28+
<validator type="in_range" min="0" />
29+
</param>
30+
</when>
31+
</conditional>
1432
</inputs>
1533
<outputs>
1634
<data format="smi" name="outfile">
@@ -25,7 +43,6 @@
2543
<test>
2644
</test>
2745
</tests>
28-
2946
<help>
3047

3148

@@ -34,32 +51,13 @@ Merging small molecules together to larger compounds using some predifined react
3451

3552
-----
3653

37-
**Example**
54+
**Input**
3855

39-
* input:: Fragments
56+
A molecule file with marked molecules. You can create such a file with the Fragmenter tool and the option 'mark atoms'.
4057

58+
**Output**
4159

42-
** Reaction Matrix **
43-
0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0
44-
1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0
45-
0,1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0
46-
1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
47-
0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0
48-
0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
49-
0,1,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0
50-
1,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0
51-
0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0
52-
0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0
53-
0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0
54-
0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0
55-
0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0
56-
0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0
57-
0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0
58-
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0
59-
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0
60-
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0
61-
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1
62-
0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0
60+
A molecule file with new created/merged molecules.
6361

6462

6563
</help>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)