Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify container header fields. Resolves #396 #398

Merged
merged 4 commits into from
Apr 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions CRAMv3.tex
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,8 @@ \section{\textbf{Container structure}}
\textbf{Data type} & \textbf{Name} & \textbf{Value}
\tabularnewline
\hline
int32 & length & byte size of the container data (blocks)\tabularnewline
int32 & length & the sum of the lengths of all blocks in this container (headers and data);
equal to the total byte length of the container minus the byte length of this header structure\tabularnewline
\hline
itf8 & reference sequence id & reference sequence identifier or\linebreak{}
-1 for unmapped reads\linebreak{}
Expand All @@ -458,10 +459,13 @@ \section{\textbf{Container structure}}
\hline
ltf8 & bases & number of read bases\tabularnewline
\hline
itf8 & number of blocks & the number of blocks\tabularnewline
itf8 & number of blocks & the total number of blocks in this container\tabularnewline
\hline
itf8[ ] & landmarks & Each integer value of this array is a byte offset into the
blocks byte array. Landmarks are used for random access indexing.\tabularnewline
itf8[ ] & landmarks & the locations of slices in this container as byte offsets from the end of
this container header, used for random access indexing.
The landmark count must equal the slice count.\linebreak{}
Since the block before the first slice is the compression header,
landmarks[0] is equal to the byte length of the compression header.\tabularnewline
\hline
int & crc32 & CRC32 hash of the all the preceding bytes in the container.\tabularnewline
\hline
Expand Down