-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cljam.cigar, cljam.common, cljam.dict, cljam.fasta, cljam.fasta-indexer, cljam.io, cljam.lsb, cljam.sequence, and cljam.sorter
- Loading branch information
Showing
9 changed files
with
49 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
(ns cljam.common) | ||
(ns cljam.common | ||
"Common vars.") | ||
|
||
(def version "SAM format version" "1.4") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
(ns cljam.io) | ||
|
||
;;; Protocol | ||
(ns cljam.io | ||
"Protocols of SAM/BAM reader.") | ||
|
||
(defprotocol ISAMReader | ||
(reader-path [this]) | ||
(read-header [this]) | ||
(read-refs [this]) | ||
(read-alignments [this option]) | ||
(reader-path [this] "Returns the file's absolute path.") | ||
(read-header [this] "Returns header of the SAM/BAM file.") | ||
(read-refs [this] "Returns references of the SAM/BAM file.") | ||
(read-alignments [this option] | ||
"Reads alignments of the SAM/BAM file, returning the alignments as a lazy | ||
sequence.") | ||
(read-blocks [this]) | ||
(read-coordinate-blocks [this])) | ||
|
||
(defprotocol ISAMWriter | ||
(writer-path [this]) | ||
(write-header [this header]) | ||
(write-refs [this header]) | ||
(write-alignments [this alignments header]) | ||
(writer-path [this] "Returns the file's absolute path.") | ||
(write-header [this header] "Writes header to the SAM/BAM file.") | ||
(write-refs [this header] "Writes references to the SAM/BAM file.") | ||
(write-alignments [this alignments header] | ||
"Writes alignments to the SAM/BAM file.") | ||
(write-blocks [this blocks]) | ||
(write-coordinate-blocks [this blocks])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters