mix cram.info (cram v0.1.0)

Copy Markdown View Source

Print CRAM metadata without decoding alignment records.

mix cram.info path.cram

The task reports the version, file id, reference sequences named in the SAM header, container count, and block compression methods. It does not print sequence bases.

Summary

Functions

Print metadata for one path.

Functions

run(arg1)

Print metadata for one path.

args is ["path.cram"]. Returns :ok after printing the version, file id, reference names, container count, and block methods. No arguments, or a path that cannot be opened, prints a message and exits {:shutdown, 1}. Sequence bases are not printed.

iex> Mix.Tasks.Cram.Info.run(["test/fixtures/tiny.cram"])
:ok