Skip to content

Commit

Permalink
Change files for testing dedupe
Browse files Browse the repository at this point in the history
  • Loading branch information
ayamada committed Apr 24, 2017
1 parent 2a7cebd commit d819a5e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Binary file added test-resources/dedupe_after.bam
Binary file not shown.
Binary file added test-resources/dedupe_before.bam
Binary file not shown.
Binary file added test-resources/dedupe_before.bam.bai
Binary file not shown.
Binary file removed test-resources/small.deduped.bam
Binary file not shown.
4 changes: 3 additions & 1 deletion test/cljam/t_common.clj
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,12 @@
(def test-bam-file "test-resources/test.bam")
(def test-sorted-bam-file "test-resources/test.sorted.bam")
(def small-bam-file "test-resources/small.bam")
(def small-deduped-bam-file "test-resources/small.deduped.bam")
(def medium-bam-file "test-resources/medium.bam")
(def large-bam-file (cavia/resource mycavia "large.bam"))

(def dedupe-before-bam-file "test-resources/dedupe_before.bam")
(def dedupe-after-bam-file "test-resources/dedupe_after.bam")

;; ### BAM index files

(def test-bai-file "test-resources/test.sorted.bam.bai")
Expand Down
8 changes: 3 additions & 5 deletions test/cljam/t_dedupe.clj
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,9 @@
(deftest simple-pe-dedupe
(with-before-after {:before (prepare-cache!)
:after (clean-cache!)}
(let [in-file small-bam-file
out-file (str temp-dir "/deduped.bam")
controlled-result-file small-deduped-bam-file]
(is (not-throw? (dedupe/dedupe in-file out-file)))
(is (same-bam-file? out-file controlled-result-file)))))
(let [out-file (str temp-dir "/deduped.bam")]
(is (not-throw? (dedupe/dedupe dedupe-before-bam-file out-file)))
(is (same-bam-file? out-file dedupe-after-bam-file)))))

(deftest simple-pe-dedupe-xform
(is (= (into #{}
Expand Down

0 comments on commit d819a5e

Please sign in to comment.