Skip to content

Commit 26819d4

Browse files
committed
Fix import errors for docs
1 parent c14c120 commit 26819d4

File tree

5 files changed

+12
-117
lines changed

5 files changed

+12
-117
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,9 @@ test:
2929
nosetests
3030

3131
docs:
32-
python doc/add_cli_arguments_to_docs.py
3332
$(MAKE) -C doc clean
3433
$(MAKE) -C doc html
35-
open doc/build/html/index.html
34+
open doc/build/html/index.html || see doc/build/html/index.html
3635

3736
release: clean
3837
python setup.py sdist upload

doc/add_cli_arguments_to_docs.py

-43
This file was deleted.

doc/source/conf.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
# If true, do not generate a @detailmenu in the "Top" node's menu.
273273
#texinfo_no_detailmenu = False
274274

275-
# -- Read the Docs C compilation issues -------------------------------------
275+
# -- Read the Docs C module import issues -------------------------------------
276276

277277
# See:
278278
# http://read-the-docs.readthedocs.org/en/latest/faq.html#i-get-import-errors-on-libraries-that-depend-on-c-modules
@@ -283,6 +283,7 @@ class Mock(MagicMock):
283283
def __getattr__(cls, name):
284284
return Mock()
285285

286-
MOCK_MODULES = ['pygtk', 'gtk', 'gobject', 'argparse', 'numpy', 'pandas',
287-
'Bio', 'concoct', 'vbgmm', 'concoct.utils']
286+
MOCK_MODULES = ['pygtk', 'gtk', 'gobject', 'numpy', 'pandas', 'Bio', 'concoct',
287+
'concoct.utils', 'concoct.output', 'concoct.parser', 'concoct.cluster',
288+
'concoct.input', 'concoct.transform', 'vbgmm']
288289
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)

doc/source/scripts/dnadiff_dist_matrix.rst

+2-5
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,13 @@
22
dnadiff_dist_matrix.py
33
======================
44

5-
.. command-output:: pwd
6-
7-
Try again
8-
95
Usage
106
=====
117
The usage and help documentation of ``dnadiff_dist_matrix.py`` can be seen by
128
running ``pyhton dnadiff_dist_matrix -h``:
139

14-
.. program-output:: python ../../scripts/dnadiff_dist_matrix.py --help
10+
.. program-output:: (echo 'import conf'; cat ../../scripts/dnadiff_dist_matrix.py) | python - --help
11+
:shell:
1512

1613
Example
1714
=======

doc/source/usage.rst

+5-64
Original file line numberDiff line numberDiff line change
@@ -2,68 +2,9 @@
22
Usage
33
=====
44

5-
CONCOCT uses several command line options to control the clustering, here is a complete documentation of these. These can also be viewed by typing ``concoct -h`` on the command line.::
6-
7-
usage: concoct [-h] [--coverage_file COVERAGE_FILE]
8-
[--composition_file COMPOSITION_FILE] [-c CLUSTERS]
9-
[-k KMER_LENGTH] [-l LENGTH_THRESHOLD] [-r READ_LENGTH]
10-
[--total_percentage_pca TOTAL_PERCENTAGE_PCA] [-b BASENAME]
11-
[-s SEED] [-i ITERATIONS] [-e EPSILON] [--no_cov_normalization]
12-
[--no_total_coverage] [-o] [-d] [-v]
13-
14-
optional arguments:
15-
-h, --help show this help message and exit
16-
--coverage_file COVERAGE_FILE
17-
specify the coverage file, containing a table where
18-
each row correspond to a contig, and each column
19-
correspond to a sample. The values are the average
20-
coverage for this contig in that sample. All values
21-
are separated with tabs.
22-
--composition_file COMPOSITION_FILE
23-
specify the composition file, containing sequences in
24-
fasta format. It is named the composition file since
25-
it is used to calculate the kmer composition (the
26-
genomic signature) of each contig.
27-
-c CLUSTERS, --clusters CLUSTERS
28-
specify maximal number of clusters for VGMM, default
29-
400.
30-
-k KMER_LENGTH, --kmer_length KMER_LENGTH
31-
specify kmer length, default 4.
32-
-l LENGTH_THRESHOLD, --length_threshold LENGTH_THRESHOLD
33-
specify the sequence length threshold, contigs shorter
34-
than this value will not be included. Defaults to
35-
1000.
36-
-r READ_LENGTH, --read_length READ_LENGTH
37-
specify read length for coverage, default 100
38-
--total_percentage_pca TOTAL_PERCENTAGE_PCA
39-
The percentage of variance explained by the principal
40-
components for the combined data.
41-
-b BASENAME, --basename BASENAME
42-
Specify the basename for files or directory where
43-
outputwill be placed. Path to existing directory or
44-
basenamewith a trailing '/' will be interpreted as a
45-
directory.If not provided, current directory will be
46-
used.
47-
-s SEED, --seed SEED Specify an integer to use as seed for clustering. 0
48-
gives a random seed, 1 is the default seed and any
49-
other positive integer can be used. Other values give
50-
ArgumentTypeError.
51-
-i ITERATIONS, --iterations ITERATIONS
52-
Specify maximum number of iterations for the VBGMM.
53-
Default value is 500
54-
-e EPSILON, --epsilon EPSILON
55-
Specify the epsilon for VBGMM. Default value is 1.0e-6
56-
--no_cov_normalization
57-
By default the coverage is normalized with regards to
58-
samples, then normalized with regards of contigs and
59-
finally log transformed. By setting this flag you skip
60-
the normalization and only do log transorm of the
61-
coverage.
62-
--no_total_coverage By default, the total coverage is added as a new
63-
column in the coverage data matrix, independently of
64-
coverage normalization but previous to log
65-
transformation. Use this tag to escape this behaviour.
66-
-o, --converge_out Write convergence info to files.
67-
-d, --debug Debug parameters.
68-
-v, --version show program's version number and exit
5+
CONCOCT uses several command line options to control the clustering, here is a
6+
complete documentation of these. These can also be viewed by typing ``concoct
7+
-h`` on the command line:
698

9+
.. program-output:: (echo 'import conf'; cat ../../concoct/parser.py; echo 'args=arguments()') | python - --help
10+
:shell:

0 commit comments

Comments
 (0)