Genomic Alignments

Genomic Reads Modules

These modules contain functions and classes for working with genomic reads (alignments). It provides utilities for handling and analyzing genomic alignments, such as calculating coverage, extracting reads by regions, and performing various operations.

  • GReads is a collection of many reads (alignments).

  • GReadsSet is a set of many GReads which represent different genomic elements.

class genomkit.alignments.galignments.GAlignments(file_path, file_format)

GAlignments module

This module contains functions and classes for working with a collection of genomic alignments. It provides utilities for handling and analyzing the interactions of many genomic alignments.

calculate_coverage()

Calculate coverage from loaded reads.

Returns:

Coverage information.

Return type:

dict

load_reads()

Load reads from BAM/SAM file.

Returns:

List of reads.

Return type:

list