Skip to content

Commit 19abe1e

Browse files
Merge branch 'master' of github.com:smithlabcode/dnmtools into selectsites-input-file-type
2 parents 631dafc + 00821e0 commit 19abe1e

27 files changed

+1240
-716
lines changed

Makefile.am

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ EXTRA_DIST = \
6666
data/radmeth_test_design.txt \
6767
data/two_epialleles.states \
6868
data/araTha1_simulated.counts.gz \
69+
data/mlml_test_data.tgz \
6970
test_scripts/test_abismalidx.test \
70-
test_scripts/test_simreads.test \
7171
test_scripts/test_abismal.test \
7272
test_scripts/test_format.test \
7373
test_scripts/test_uniq.test \
@@ -82,7 +82,8 @@ EXTRA_DIST = \
8282
test_scripts/test_states.test \
8383
test_scripts/test_amrfinder.test \
8484
test_scripts/test_hypermr.test \
85-
test_scripts/test_diff.test
85+
test_scripts/test_diff.test \
86+
test_scripts/test_mlml.test
8687

8788
### ADS: the file md5sum.txt can be regenerated by running the tests
8889
### with "make check" and then doing `md5sum tests/* > md5sum.txt`
@@ -96,8 +97,15 @@ AM_CPPFLAGS = -I $(top_srcdir)/src/common -I $(top_srcdir)/src/smithlab_cpp -I $
9697

9798
CXXFLAGS = -Wall -O3 $(OPENMP_CXXFLAGS) # default has optimization on
9899

99-
TESTS = test_scripts/test_simreads.test \
100-
test_scripts/test_abismalidx.test \
100+
### ADS: Testing with `make check` can be a long process. Testing with
101+
### `make check` is designed to work recursively. Modifying this
102+
### behavior requires overriding build-in rules which generates
103+
### warnings, probably for good reason. Defining a check-local only
104+
### adds to functionality and does not remove the dependency that
105+
### causes the recursion. The preferred alternative is to do `make`
106+
### first and then `make check-TESTS` after. This will not do tests
107+
### recursively.
108+
TESTS = test_scripts/test_abismalidx.test \
101109
test_scripts/test_abismal.test \
102110
test_scripts/test_format.test \
103111
test_scripts/test_uniq.test \
@@ -112,7 +120,8 @@ TESTS = test_scripts/test_simreads.test \
112120
test_scripts/test_states.test \
113121
test_scripts/test_amrfinder.test \
114122
test_scripts/test_hypermr.test \
115-
test_scripts/test_diff.test
123+
test_scripts/test_diff.test \
124+
test_scripts/test_mlml.test
116125

117126
TEST_EXTENSIONS = .test
118127

@@ -230,13 +239,12 @@ CLEANFILES = \
230239
tests/reads.mstats \
231240
tests/reads.sam \
232241
tests/reads.ustats \
233-
tests/simreads_1.fq \
234-
tests/simreads_2.fq \
235242
tests/tRex1.idx \
236243
tests/tRex1_promoters.roi.bed \
237244
tests/reads.counts.select \
238245
tests/radmeth_test_output.txt \
239246
tests/reads.epiread \
240247
tests/two_epialleles.amr \
241248
tests/araTha1_simulated.hypermr \
242-
tests/methylome_ab.diff
249+
tests/methylome_ab.diff \
250+
tests/mlml.out

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ tests/two_epialleles.states:data/two_epialleles.states
7575
tests/araTha1_simulated.counts.gz:data/araTha1_simulated.counts.gz
7676
tests/methylome_a.counts.sym:data/methylome_a.counts.sym
7777
tests/methylome_b.counts.sym:data/methylome_b.counts.sym
78+
tests/mlml_test_data.tgz:data/mlml_test_data.tgz
7879
])
7980

8081
AC_OUTPUT

data/md5sum.txt

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
ae05a28de5643a512386e767b3aa963a tests/araTha1_simulated.hypermr
22
0048de3fc412cb12ec2e070c8151f86f tests/methylome_ab.diff
33
86ca23015535cf3295c0da3587a95f22 tests/radmeth_test_output.txt
4-
575f7daf8062c4aa3194370488794be8 tests/reads.bsrate
5-
68cc65a337d5529295c813f282665dfe tests/reads.counts
6-
1f29966bbbc11985f724c8e0c0f1db2b tests/reads.counts.select
7-
34f5eddd80d5d35131f92697d4cca896 tests/reads.counts.sym
8-
5f6bd7100470c5306b41b6a56fe6690e tests/reads.epiread
9-
97508d22db32305d4688db8374d1a04a tests/reads.fmt.sam
10-
6de21c61705040072be76cddae481cfa tests/reads.fmt.srt.sam
11-
1cf51932cef739544b91a41bdfdb8841 tests/reads.fmt.srt.uniq.sam
12-
103225f9a3adc45836e366551989909b tests/reads.hmr
13-
3cbec246887d1837f004e4643148f7e6 tests/reads.levels
14-
3bf209c27c99134386ea63756ff9fe2c tests/reads.mstats
15-
7a02c7d93111403a4619ccc74aa3c78e tests/reads.sam
16-
b067a733102e611ca614ae22fc944471 tests/reads.ustats
17-
8e5ad0faefe241de9c2c5748e005e2e8 tests/simreads_1.fq
18-
4ebacfec717182fafce46b037591b228 tests/simreads_2.fq
19-
3ba5a1c4c420ca7a2dbd88290033c3bc tests/tRex1.idx
20-
b5270bb38d798741cfa74f411a0d49bf tests/tRex1_promoters.roi.bed
4+
6d513eed25f5c3da87252d8f6f816246 tests/reads.bsrate
5+
8dfe79399d873da3d1749eaabf7581e2 tests/reads.counts
6+
961b0671a349e2ad8041e0807393bf78 tests/reads.counts.select
7+
af22e5468fd6614c611646cbc675542f tests/reads.counts.sym
8+
b38d571baaf2bc16646dbd14a7edb770 tests/reads.epiread
9+
6abb0e3e6571e221ec6f91ba52a358ea tests/reads.fmt.sam
10+
8edab98b1be4411820e2f130aa6ba6b9 tests/reads.fmt.srt.sam
11+
3e57d7bde5f7be88b56cd92bbfc935ce tests/reads.fmt.srt.uniq.sam
12+
af8b97ef25af8a16ced1537ca4a74d07 tests/reads.hmr
13+
52d44c4c1d6891b45741f573f51e67cd tests/reads.levels
14+
916fe07a1d03449b65dfc1458d7c1c40 tests/reads.mstats
15+
65816bee34b977adf1dd798fbf85d758 tests/reads.sam
16+
1aecbb2b12bd867405118eae42de6743 tests/reads.ustats
17+
bcbf01be810cbf4051292813eb6b9225 tests/tRex1.idx
18+
7c84dafb85252a04a45704da71eba7c4 tests/tRex1_promoters.roi.bed
2119
e7e9590475a7f9b1ae41701d81892e57 tests/two_epialleles.amr
2220
ec6a686617cad31e9f7a37a3d378e6ed tests/two_epialleles.states
21+
93e38b20d162062a5d147c4290095a13 tests/mlml.out

data/mlml_test_data.tgz

10 KB
Binary file not shown.

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ pip install -U mkdocs
1919

2020
Build the HTML documentation by running
2121
```
22-
mkdocs build
22+
mkdocs build -f docs/mkdocs.yml
2323
```
2424
which will create a `site` directory where markdown files are
2525
converted to HTML
2626

2727
Create a local host for the HTML documentation by running
2828

2929
```
30-
mkdocs serve
30+
mkdocs serve -f docs/mkdocs.yml
3131
```
3232

3333
This will create the documentation, usually at http://localhost:8000 .

docs/content/bsrate.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,42 @@ Use only reads that map to this chromosome (e.g. chrM). This simply
136136
avoids having to extract reads separately from the mapped reads file
137137
before using bsrate.
138138

139+
```txt
140+
-A, -a-rich
141+
```
142+
The reads are A-rich. This may be relevant if a BPAT protocol is used.
143+
139144
```txt
140145
-v, -verbose
141146
```
142147
Print more information while the program is running.
148+
149+
```txt
150+
-S, -summary
151+
```
152+
Write the analysis summary to this file. The summary is not reported
153+
unless a file is specified here. This information includes nothing
154+
beyond what is currently generated for the output file. This option is
155+
correct as of v1.4.0.
156+
157+
```txt
158+
-t, -threads
159+
```
160+
Use this many threads. This only has an effect if set to a value
161+
greater than 1. The additional threads are only used for decompressing
162+
BAM format input. It is not recommended to use many threads due to
163+
diminishing returns, and performance will degrade if more threads are
164+
specified than physical cores available. This option is correct as of
165+
v1.4.0.
166+
167+
```txt
168+
-p, -per-read
169+
```
170+
This option will generate a histogram of conversion rate per read,
171+
printed to the terminal. This option is correct as of v1.4.0.
172+
173+
```txt
174+
-p, -per-read
175+
```
176+
Assming the `-p` option is used, this option determines the number of
177+
bins in the histogram. This option is correct as of v1.4.0.

docs/content/diff.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ in `input-a.meth`, number of unmethylated reads in `input-a.meth`,
3838
number of methylated reads in `input-b.meth`, and number of
3939
unmethylated reads in `input-b.meth`, respectively.
4040

41+
The two input files must be have all sites within a chromosomes
42+
consecutive, have the same chromosome order, and have sites sorted in
43+
increasing order within each chromosome. The order of chromosomes does
44+
not matter (e.g., chr10 may precede chr2, or chr2 may precede chr10).
45+
4146
**Warning** the order of the samples/methylomes given as input, the
4247
"a" and "b", matters. It is probably a good idea to include this order
4348
in the output file name, for example as `output_a_lt_b.diff`.

docs/content/hmr.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,3 +170,9 @@ File in which to write parameters learned during the current run.
170170
A random number seed. Randomization is used in a shuffling step prior
171171
to filering candidate HMRs. This parameter is typically only used for
172172
testing (default: 408).
173+
174+
```txt
175+
-S, -summary
176+
```
177+
Write the analysis summary to this file. The summary is not
178+
reported unless a file is specified here. This option is correct as of v1.4.0.

docs/content/pmd.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,3 +186,10 @@ Write the trained parameters to this file.
186186
-s, -seed
187187
```
188188
Specify a random seed value.
189+
190+
```txt
191+
-S, -summary
192+
```
193+
Write the analysis summary to this file. The summary is not
194+
reported unless a file is specified here. This option is correct as of v1.4.0.
195+

docs/content/uniq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ most helpful when the input and output are both BAM, where the threads
4949
can really speed things up.
5050

5151
```txt
52-
-S, -stats
52+
-S, -summary
5353
```
5454
Save statistics on duplication rates to this file. The statistics are not
55-
reported unless a file is specified here.
55+
reported unless a file is specified here. This option is correct as of v1.4.0.
5656

5757
```txt
5858
-hist

0 commit comments

Comments
 (0)