Debian Codegraph @

easel/miniapps/esl-selectn.man.in

raw
1 .TH "esl\-selectn" 1 "@EASEL_DATE@" "Easel @EASEL_VERSION@" "Easel Manual"
2
3 .SH NAME
4 esl\-selectn \- select random subset of lines from file
5
6 .SH SYNOPSIS
7 .B esl\-selectn
8 [\fIoptions\fR]
9 .I nlines
10 .I filename
11
12
13 .SH DESCRIPTION
14
15 .PP
16 .B esl\-selectn
17 selects
18 .I nlines
19 lines at random from file
20 .I filename
21 and outputs them on
22 .I stdout.
23
24 .PP
25 If
26 .I filename
27 is \- (a single dash),
28 input is read from stdin.
29
30
31 .PP
32 Uses an efficient reservoir sampling algorithm that only requires only a single pass through
33 .I filename,
34 and memory storage proportional to
35 .I nlines
36 (and importantly, not to the size of the file
37 .I filename
38 itself).
39 .B esl\-selectn
40 can therefore be used to create large scale statistical sampling
41 experiments, especially in combination with other Easel
42 miniapplications.
43
44
45 .SH OPTIONS
46
47 .TP
48 .B \-h
49 Print brief help; includes version number and summary of
50 all options, including expert options.
51
52
53 .TP
54 .BI \-\-seed " <d>"
55 Set the random number seed to
56 .I <d>,
57 an integer >= 0.
58 The default is 0, which means to use a randomly selected seed.
59 A seed > 0 results
60 in reproducible identical samples from different runs of the same
61 command.
62
63
64 .SH SEE ALSO
65
66 .nf
67 @EASEL_URL@
68 .fi
69
70 .SH COPYRIGHT
71
72 .nf
73 @EASEL_COPYRIGHT@
74 @EASEL_LICENSE@
75 .fi
76
77 .SH AUTHOR
78
79 .nf
80 http://eddylab.org
81 .fi