-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathclmclose.azm
176 lines (143 loc) · 5.98 KB
/
clmclose.azm
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
\import{mcx.zmm}
\begin{pud::man}{
{name}{clm close}
{html_title}{The clm close manual}
{author}{Stijn van Dongen}
{section}{1}
{synstyle}{long}
{defstyle}{long}
\man_share
}
\${html}{\"pud::man::maketoc"}
\sec{name}{NAME}
\NAME{clm close}{Fetch connected components from graphs or subgraphs}
\disclaim_clm{close}
\sec{synopsis}{SYNOPSIS}
\par{
\clm{close} -imx <fname> [options]
}
\par{
\clm{close}
\synreqopt{-imx}{fname}{specify matrix input}
\synreqopt{-abc}{fname}{specify label input}
\synreqopt{-dom}{fname}{input domain/cluster file}
\synoptopt{-o}{fname}{output file}
\synoptopt{--is-undirected}{trust input graph to be undirected}
\synoptopt{-levels}{LO/STEP/HI[/prefix]}{write cluster size distribution for each cutoff}
\synoptopt{-levels-norm}{num}{divide each level by num to define cutoff}
\synoptopt{--write-count}{output component count}
\synoptopt{--write-sizes}{output component sizes (default)}
\synoptopt{--write-size-counts}{output compressed list of component sizes}
\synoptopt{--write-cc}{output components as clustering}
\synoptopt{--write-block}{output graph restricted to -dom argument}
\synoptopt{--write-blockc}{output graph complement of -dom argument}
\synoptopt{-cc-bound}{num}{select components with size at least num}
\synoptopt{--sl}{output single linkage tree as list of joins (for -imx input)}
\synoptopt{-write-sl-list}{fname}{write list of join order with weights}
\shared_synoptopt{-tf}
\stdsynopt
}
\sec{description}{DESCRIPTION}
\par{
Use \clm{close} to fetch the connected components from a graph. Different
output modes are supported (see below). In matrix mode (i.e. using
the \genopt{-imx} option) the output returned with
\genopt{--write-cc} can be used in conjunction with \mcxsubs
to retrieve individual subgraphs corresponding to connected components.
}
\sec{options}{OPTIONS}
\begin{itemize}{\mcx_itemopts}
\item{\defopt{-abc}{<fname>}{label input}}
\car{
The file name for input that is in label format.}
\item{\defopt{-imx}{<fname>}{input matrix}}
\car{
The file name for input that is in mcl native matrix format.}
\item{\defopt{-o}{fname}{output file}}
\car{
Specify the file where output is sent to. The default is STDOUT.
}
\item{\defopt{-dom}{fname}{input domain/cluster file}}
\car{
If this option is used, clm close will, as a first step,
for each of the domains in file\~\genarg{fname} retrieve the associated
subgraph from the input graph. These are then further decomposed into
connected components, and the program will process these in the normal
manner.
}
\items{
{\defopt{--write-count}{output component count}}
{\defopt{--write-sizes}{output component sizes (default)}}
{\defopt{--write-size-counts}{output compressed list of component sizes}}
{\defopt{--write-cc}{output components as clustering}}
{\defopt{--write-block}{output graph restricted to -dom argument}}
{\defopt{--write-blockc}{output graph complement of -dom argument}}
}
\car{
The default behaviour is currently to output the sizes of the
connected components. It is also possible to simply output
the number of components with \genopt{--write-count}, to write
a counted list of sizes with \genopt{--write-size-counts}, or to
write the components as a clustering in mcl format with
\genopt{-write-cc}. Even more options exist: it is possible
to output the restriction of the input graph to a domain, or
to output the complement of this restriction.
}
\items{
{\defopt{-levels}{LO/STEP/HI[/prefix]}{write cluster size distribution for each cutoff}}
{\defopt{-levels-norm}{num}{divide each level by num to define cutoff}}
}
\car{
Use \genopt{-levels} to inspect the cluster size distribution at various cut-offs by
specifying a triplet of numbers (separated by forward slashes), the first of which
is the starting point, the second is the step size, and the third is the end point.
If a fourth argument (preceded by another slash) is given, all clusterings are
written to a file based on the supplied argument as file name prefix.
The cut-off can be further varied by the argument to \genopt{-levels-norm}.
}
\items{
{\defopt{--sl}{output single linkage tree as list of joins (for -imx input)}}
{\defopt{-write-sl-list}{fname}{write list of join order with weights}}
}
\car{
A primary use case for this is to apply single link clustering to the rcl
(restricted contingency linkage) graph that is output by \clm{vol} with its
\genopt{write-rcl} option. This rcl graph encodes a consensus clustering
derived from the multiple clusterings that are given to \clm{vol}.
}
\par{
The output (save with \genopt{-o} or UNIX redirection) can be supplied to
\script{rcl-res.pl} with a list of varying resolution parameters to produce a small
number of nested clusterings. The resolution
parameters (second and subsequent arguments) to \script{rcl-res.pl} are set sizes;
For each of the supplied resolutions \genarg{res} the script will descend
the tree as long as the current node has some split below it where both
clusters are of size at least \genarg{res}. Note that the resulting
clustering may still have smaller clusters and singletons (resulting from
other splits).
}
\par{
The mcl distribution has an example script \script{graphs/rcl-example.sh}
that illustrates the different steps.
}
\item{\defopt{--is-undirected}{omit graph undirected check}}
\car{
With this option the transformation to make sure
that the input is undirected is omitted. This will
be slightly faster. Using this option while the
input is directed may lead to erronenous results.
}
\item{\defopt{-cc-bound}{num}{select components with size at least num}}
\shared_defopt{-tf}
\stddefopt
\end{itemize}
\sec{author}{AUTHOR}
\par{
Stijn van Dongen.
}
\sec{seealso}{SEE ALSO}
\par{
\mysib{mclfamily} for an overview of all the documentation
and the utilities in the mcl family.
}
\end{pud::man}