genes - creating customized lists of genes#

Utilities to generate customized lists of genes.

bulkdgd.genes.util.get_genes_attributes(attributes: list[str], filters: dict[str, list[str]] | None = None, dataset: str = 'hsapiens_gene_ensembl') DataFrame#

Get genes’ attributes from the Ensembl database.

Parameters:
attributeslist

The attributes to retrieve for the genes.

filtersdict, optional

The filters and corresponding values to filter the genes.

datasetstr, "hsapiens_gene_ensembl"

The dataset the genes belong to.

Returns:
df_annotpandas.DataFrame

A data frame containing the attributes fetched from the Ensembl database for the genes of interest.