torchcell.sequence.Genome
- class Genome(data_root: str | None = None)[source]
Bases:
ABCAbstract genome providing lazy gene-set and sequence access.
- property db: FeatureDB | None
Get database connection - lazy loaded per process/thread.
Subclasses should set self._db_connection_manager to enable database access.
- abstractmethod get_seq(chr: int | str, start: int, end: int, strand: str) DnaSelectionResult[source]
Return the DNA selection for the given coordinates and strand.
- abstract property gene_attribute_table: DataFrame
Return a table of per-gene attributes.