modos.genomics.formats#
Attributes#
Classes#
Enumeration of all supported genomic file suffixes. |
Functions#
|
Automatically instantiate a pysam file object from input path and passes any additional kwarg to it. |
|
|
|
|
|
Return the file path with specific suffix. |
|
Return the file path without specific suffix. |
Module Contents#
- class modos.genomics.formats.GenomicFileSuffix[source]#
-
Enumeration of all supported genomic file suffixes.
- classmethod from_path(path)[source]#
- Parameters:
path (pathlib.Path)
- Return type:
- modos.genomics.formats.read_pysam(path, region=None, **kwargs)[source]#
Automatically instantiate a pysam file object from input path and passes any additional kwarg to it.
- Parameters:
path (pathlib.Path)
region (Optional[modos.genomics.region.Region])
- Return type:
Iterator[pysam.AlignedSegment | pysam.VariantRecord]
- modos.genomics.formats.get_index(file_path)[source]#
- Parameters:
file_path (pathlib.Path)
- Return type:
Optional[pathlib.Path]
- modos.genomics.formats.add_suffix(file_path, suffix)[source]#
Return the file path with specific suffix.
- Parameters:
file_path (pathlib.Path)
suffix (str)
- Return type:
- modos.genomics.formats.remove_suffix(file_path, suffix)[source]#
Return the file path without specific suffix.
- Parameters:
file_path (pathlib.Path)
suffix (str)
- Return type: