0
|
1 <tool id="chemfp_nxn_clustering" name="NxN Clustering" version="0.1">
|
6
|
2 <description>of molecular fingerprints</description>
|
0
|
3 <requirements>
|
|
4 <requirement type="package" version="1.7.0">numpy</requirement>
|
|
5 <requirement type="package" version="1.1p1">chemfp</requirement>
|
15
|
6 <requirement type="package" version="1.2.1">matplotlib</requirement>
|
|
7 <requirement type="package" version="0.12">scipy</requirement>
|
0
|
8 </requirements>
|
|
9 <command interpreter='python'>
|
6
|
10 nxn_clustering.py
|
|
11 -i $infile
|
|
12 -t $threshold
|
|
13 -o $outfile
|
|
14 --oformat $oformat
|
0
|
15 </command>
|
|
16 <inputs>
|
|
17 <param name="infile" type="data" format="fps" label="Finperprint dataset" help="Dataset missing? See TIP below"/>
|
6
|
18 <param name='threshold' type='float' value='0.0' />
|
|
19
|
|
20 <param name='oformat' type='select' format='text' label="Format of the resulting picture">
|
|
21 <option value='png'>PNG</option>
|
|
22 <option value='svg'>SVG</option>
|
|
23 </param>
|
0
|
24 </inputs>
|
|
25 <outputs>
|
|
26 <data type="data" format="svg" name="outfile" />
|
|
27 </outputs>
|
|
28 <tests>
|
|
29 <test>
|
|
30 <param name="infile" ftype="fps" value="q.fps" />
|
|
31 <param value='0.75' />
|
|
32 <output ftype="svg" name="outfile" file='NxN_Clustering_on_q.svg' />
|
|
33 </test>
|
|
34 </tests>
|
|
35 <help>
|
|
36
|
6
|
37 **Note**. You need molecular fingerprints in FPS format. Open Babel Fastsearch index is not supported.
|
|
38
|
|
39 **Note**. That tools is only useful for very small datasets.
|
|
40
|
0
|
41
|
|
42 **What it does**
|
|
43 Generating hierarchical clusters and visualizing clusters with dendrograms.
|
|
44
|
|
45 -----
|
|
46
|
|
47 **Example**
|
|
48
|
|
49 * input::
|
|
50
|
|
51 - fingerprints in FPS format
|
|
52
|
|
53 #FPS1
|
|
54 #num_bits=881
|
|
55 #type=CACTVS-E_SCREEN/1.0 extended=2
|
|
56 #software=CACTVS/unknown
|
|
57 #source=/home/mohammed/galaxy-central/database/files/000/dataset_423.dat
|
|
58 #date=2012-02-09T13:20:37
|
|
59 07ce04000000000000000000000000000080060000000c000000000000001a800f0000780008100000701487e960cc0bed3248000580644626004101b4844805901b041c2e
|
|
60 19511e45039b8b2926101609401b13e40800000000000100200000040080000010000002000000000000 55169009
|
|
61 07ce04000000000000000000000000000080060000000c000000000000001a800f0000780008100000701087e960cc0bed3248000580644626004101b4844805901b041c2e
|
|
62 19111e45039b8b2926105609401313e40800000000000100200000040080000010000002000000000000 55079807
|
|
63 ........
|
|
64
|
|
65 - Tanimoto threshold : 0.8 (between 0 and 1)
|
|
66
|
|
67 * output::
|
|
68
|
|
69 plot for the clustring
|
|
70
|
|
71 .. image:: ./static/images/chemfpclustoutput.svg
|
|
72
|
|
73
|
|
74 </help>
|
|
75
|
|
76 </tool>
|