RNAmediator.Tweaks.RNAmediator.get_gene_coords

RNAmediator.Tweaks.RNAmediator.get_gene_coords(genecoords: None | Dict, goi: str, strand: str) Tuple[int, int, str, str]

Get genomic coordinates for a gene (goi) from the genecoords dict or returns default values

Parameters:
  • genecoords (Union[None, Dict]) – gene coords dictionary, storing start, end and strand of a gene (key) as values

  • goi (str) – gene of interest, for which coordinates should be retrieved

  • strand – strand of the gene to compare whether strand matches the strand in the gencoords dict

Returns:

genomic start, end, strand retrieved from genecoords dict or a default value (0, 0, ‘.’)

Return type:

Tuple[int, int, str, str]