{ "cells": [ { "cell_type": "code", "execution_count": 2, "id": "35f75455", "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import scanpy as sc" ] }, { "cell_type": "code", "execution_count": null, "id": "9bf2a8e1", "metadata": {}, "outputs": [], "source": [] }, { "cell_type": "code", "execution_count": 5, "id": "729ff858", "metadata": { "scrolled": true }, "outputs": [], "source": [ "adata = sc.read_h5ad(\"/home/tl688/zhao_project/data/replogle_rpe1_essential/perturb_processed.h5ad\")" ] }, { "cell_type": "code", "execution_count": 6, "id": "69d90bbe", "metadata": {}, "outputs": [ { "data": { "text/plain": [ "AnnData object with n_obs × n_vars = 162733 × 5000\n", " obs: 'condition', 'cell_type', 'cov_drug_dose_name', 'dose_val', 'control', 'condition_name'\n", " var: 'gene_name', 'chr', 'start', 'end', 'class', 'strand', 'length', 'in_matrix', 'mean', 'std', 'cv', 'fano', 'highly_variable', 'means', 'dispersions', 'dispersions_norm'\n", " uns: 'hvg', 'non_dropout_gene_idx', 'non_zeros_gene_idx', 'rank_genes_groups_cov_all', 'top_non_dropout_de_20', 'top_non_zero_de_20'" ] }, "execution_count": 6, "metadata": {}, "output_type": "execute_result" } ], "source": [ "adata" ] }, { "cell_type": "code", "execution_count": 10, "id": "63d53007", "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | gene_name | \n", "
|---|---|
| ENSG00000228463 | \n", "AP006222.2 | \n", "
| ENSG00000272438 | \n", "RP11-54O7.16 | \n", "
| ENSG00000230699 | \n", "RP11-54O7.1 | \n", "
| ENSG00000223764 | \n", "RP11-54O7.3 | \n", "
| ENSG00000187634 | \n", "SAMD11 | \n", "
| ... | \n", "... | \n", "
| ENSG00000233922 | \n", "AL133493.2 | \n", "
| ENSG00000142156 | \n", "COL6A1 | \n", "
| ENSG00000228137 | \n", "AP001469.7 | \n", "
| ENSG00000160298 | \n", "C21orf58 | \n", "
| ENSG00000160299 | \n", "PCNT | \n", "
5060 rows × 1 columns
\n", "