modos.genomics.cram#
Utilities to interact with genomic intervals in CRAM files.
Functions#
|
Extract metadata from the CRAM file header and |
|
Validate CRAM files using pysam. |
|
Helper function to create a unique id from a sequence name and md5 hash |
Module Contents#
- modos.genomics.cram.extract_metadata(instance, base_path)[source]#
Extract metadata from the CRAM file header and convert specific attributes according to the modo schema.
- Parameters:
instance (modos_schema.datamodel.AlignmentSet)
base_path (pathlib.Path)
- Return type:
list[modos_schema.datamodel.ReferenceSequence]