Skip to content

Commit

Permalink
Rename protocol IRandomReader to IRegionReader.
Browse files Browse the repository at this point in the history
  • Loading branch information
alumi committed May 29, 2017
1 parent d526ac6 commit b708d1d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/cljam/bam/reader.clj
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
(if (nil? chr)
(read-blocks-sequentially* this mode)
(read-blocks* this chr start end)))
io/IRandomReader
io/IRegionReader
(read-in-region [this region]
(io/read-in-region this region {}))
(read-in-region [this region option]
Expand Down
2 changes: 1 addition & 1 deletion src/cljam/bcf/reader.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(reader-path [this] (.f this))
(read [this] (io/read this {}))
(read [this option] (read-variants this option))
io/IRandomReader
io/IRegionReader
(read-in-region [this region]
(io/read-in-region this region {}))
(read-in-region [this {:keys [chr start end]} option]
Expand Down
2 changes: 1 addition & 1 deletion src/cljam/bed.clj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
(reader-path [this] (.f this))
(read [this] (io/read this {}))
(read [this option] (read-fields this))
io/IRandomReader
io/IRegionReader
(read-in-region [this region]
(io/read-in-region this region {}))
(read-in-region [this {:keys [chr start end]} option]
Expand Down
2 changes: 1 addition & 1 deletion src/cljam/fasta/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
(read
([this] (sequential-read (.f this)))
([this option] (sequential-read (.f this))))
io/IRandomReader
io/IRegionReader
(read-in-region
([this region]
(io/read-in-region this region {}))
Expand Down
2 changes: 1 addition & 1 deletion src/cljam/io.clj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
(writer-path [this]
"Returns the file's absolute path."))

(defprotocol IRandomReader
(defprotocol IRegionReader
(read-in-region [this region] [this region option]
"Reads contents of the file in given region."))

Expand Down
2 changes: 1 addition & 1 deletion src/cljam/sam/reader.clj
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(io/read this {}))
(read [this option]
(read-alignments* this))
io/IRandomReader
io/IRegionReader
(read-in-region [this region]
(io/read-in-region this region {}))
(read-in-region [this region option]
Expand Down
2 changes: 1 addition & 1 deletion src/cljam/twobit.clj
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
(io/read-sequence this region {}))
(^String [this region option]
(read-sequence this region option)))
io/IRandomReader
io/IRegionReader
(read-in-region
(^String [this region]
(io/read-in-region this region {}))
Expand Down
2 changes: 1 addition & 1 deletion src/cljam/vcf/reader.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(reader-path [this] (.f this))
(read [this] (read-variants this))
(read [this option] (read-variants this option))
io/IRandomReader
io/IRegionReader
(read-in-region [this region]
(io/read-in-region this region {}))
(read-in-region [this {:keys [chr start end]} {:keys [depth] :as option}]
Expand Down

0 comments on commit b708d1d

Please sign in to comment.