abagen.io.read_genes

abagen.io.read_genes(fname, copy=False)[source]

Loads Genes.csv file found at fname

Genes files contain metadata on all genes used in the RNAseq AHBA data. These files should be the same for every donor.

Parameters:
  • fname (str) – Path to Genes.csv file

  • copy (bool, optional) – Whether to return a copy if fname is a pre-loaded pandas.Dataframe. Default: False

Returns:

genes – Dataframe containing information for G unique genes. The row index is the unique gene symbol which can be used to match metadata to information obtained with read_tpm() and read_counts(). Columns include ‘gene_id’, ‘entrez_id’, ‘chromosome’, ‘strand’, ‘number_of_transcripts’, ‘median_transcriptome_length’, ‘median_genome_length’, ‘median_number_of_exons’, ‘median_gene_start’, and ‘median_gene_end’

Return type:

(G, 11) pandas.DataFrame