-
Notifications
You must be signed in to change notification settings - Fork 27
Expand file tree
/
Copy pathupdate_extract_test_data.sh
More file actions
69 lines (54 loc) · 1.72 KB
/
update_extract_test_data.sh
File metadata and controls
69 lines (54 loc) · 1.72 KB
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
#!/bin/bash
abort() {
echo >&2 '
***************
*** ABORTED ***
***************
'
echo "Test failure" >&2
exit 1
}
function realpath () {
python -c "import os; print(os.path.realpath('${1}'))"
}
trap 'abort' 0
set -eu
cargo check
# test_extract_correct_output
cargo run extract \
tests/resources/bc_anchored_10_reads.sorted.bam \
tests/resources/bc_anchored_10_reads.sorted.methylprofile.tsv \
-i 25 --force
# test_extract_collapse_correct_output
cargo run extract \
tests/resources/bc_anchored_10_reads.sorted.bam \
tests/resources/bc_anchored_10_reads.sorted.methylprofile_ignoreh.tsv \
-i 25 --force --ignore h
# test_extract_calls_regression
cargo run extract tests/resources/2_reads_all_context.bam null \
--read-calls tests/resources/test_read_calls_estimate_thresh.tsv \
--ref tests/resources/CGI_ladder_3.6kb_ref.fa \
--force
# test_extract_correct_output_with_ref
cargo run extract \
tests/resources/bc_anchored_10_reads.sorted.bam \
tests/resources/bc_anchored_10_reads.sorted.methylprofile_ref.tsv \
-i 25 --force --ref tests/resources/CGI_ladder_3.6kb_ref.fa
# test_extract_duplex_correct_output
cargo run extract \
tests/resources/duplex_modbam.sorted.bam \
tests/resources/duplex_sorted.tsv \
--force --region chr17
# test_extract_implicit_mod_calls
cargo run extract \
tests/resources/implicit_mod_tags.bam \
tests/resources/extract_with_implicit.tsv \
--force
# test_extract_include_sites_duplex_regression
cargo run extract \
tests/resources/duplex_modbam.sorted.bam \
tests/resources/test_extract_include_sites_duplex_regression_expected.tsv \
--ignore-index --force \
--include-bed tests/resources/hg38_chr17_CG0_snip.bed
trap : 0
echo "> all done"