{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# Tutorial of pymmdb" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [], "source": [ "from pymmdb import MMDB" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "##### 1. Create a MMDB object that provides access to the datasets in scMMDB database." ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "MMDB(storage_path=./, server_address=https://mmdb.piaqia.com/)\n" ] } ], "source": [ "mmdb = MMDB('./') # creates a new MMDB object with the current directory as the root\n", "print(mmdb) # prints the configuration of the MMDB object" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "##### 2. Check the scMMDB's details." ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "MMDB Information: \n", "Species: Homo sapiens, Mus musculus, Macaca mulatta, Sus scrofa\n", "Tissue: human cell line , human cell line, human blood, human bone marrow, human kidney, human primary motor cortex, human intra-abdominal lymph node tumor, human brain, human achilles tendon, mouse retina, mouse colon, mouse brain cortex, mouse cell line, mouse forebrain, mouse kidney, mouse primary motor cortex, mouse brain, human brain cortex, human jejunum, mouse thymic epithelium, human lung, bone marrow, human liver, human glioblastoma, human blood/skin, human tumor, macaca vaginal, mouse submandibular gland, mouse aorta, mouse tumor, mouse bone marrow, mouse mesenteric lymph nodes, mouse glioblastoma, mouse spleen/lymph nodes, mouse spleen, mouse epididymal adipose, mouse liver, pig liver\n", "Disease: none, cancer, diffuse small lymphocytic lymphoma of the lymph node, tendinopathy, pearson syndrome, alzheimer's disease, non-small-cell lung cancer, acute myeloid leukemia, atherosclerosis, acute lymphoblastic leukemia, glioblastoma, COVID-19, B cell acute lymphoblastic leukemia, HIV, obese, epilepsy, multisystem inflammatory syndrome; COVID-19, multiple sclerosis, peruvian tuberculosis disease, cutaneous T cell lymphoma, melanoma, SHIV infection, salivary gland squamous cell carcinoma, aortic aneurysm, breast cancer, nonalcoholic fatty liver disease\n", "Technology: SNARE-seq, Paired-seq, Novaseq, DOGMA-seq, SHARE-seq, NEAT-seq, sci-CAR-seq, HiSeq, ASAP-seq, CITE-seq, ECCITE-seq, Perturb-CITE-seq, REAP-seq, TEA-seq\n", "Technology Type: ATAC_RNA, ATAC_PROTEIN, RNA_PROTEIN, ATAC_RNA_PROTEIN\n" ] } ], "source": [ "mmdb.list_mmdb_info()" ] }, { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Species: Homo sapiens, Mus musculus, Macaca mulatta, Sus scrofa\n" ] } ], "source": [ "mmdb.list_species() # list all species in the database" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Disease: none, cancer, diffuse small lymphocytic lymphoma of the lymph node, tendinopathy, pearson syndrome, alzheimer's disease, non-small-cell lung cancer, acute myeloid leukemia, atherosclerosis, acute lymphoblastic leukemia, glioblastoma, COVID-19, B cell acute lymphoblastic leukemia, HIV, obese, epilepsy, multisystem inflammatory syndrome; COVID-19, multiple sclerosis, peruvian tuberculosis disease, cutaneous T cell lymphoma, melanoma, SHIV infection, salivary gland squamous cell carcinoma, aortic aneurysm, breast cancer, nonalcoholic fatty liver disease\n" ] } ], "source": [ "mmdb.list_disease() # list all diseases in the database" ] }, { "cell_type": "code", "execution_count": 6, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Tissue: human cell line , human cell line, human blood, human bone marrow, human kidney, human primary motor cortex, human intra-abdominal lymph node tumor, human brain, human achilles tendon, mouse retina, mouse colon, mouse brain cortex, mouse cell line, mouse forebrain, mouse kidney, mouse primary motor cortex, mouse brain, human brain cortex, human jejunum, mouse thymic epithelium, human lung, bone marrow, human liver, human glioblastoma, human blood/skin, human tumor, macaca vaginal, mouse submandibular gland, mouse aorta, mouse tumor, mouse bone marrow, mouse mesenteric lymph nodes, mouse glioblastoma, mouse spleen/lymph nodes, mouse spleen, mouse epididymal adipose, mouse liver, pig liver\n" ] } ], "source": [ "mmdb.list_tissue() # list all tissues in the database" ] }, { "cell_type": "code", "execution_count": 7, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Technology: SNARE-seq, Paired-seq, Novaseq, DOGMA-seq, SHARE-seq, NEAT-seq, sci-CAR-seq, HiSeq, ASAP-seq, CITE-seq, ECCITE-seq, Perturb-CITE-seq, REAP-seq, TEA-seq\n" ] } ], "source": [ "mmdb.list_technology() # list all technologies in the database" ] }, { "cell_type": "code", "execution_count": 8, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Technology Type: ATAC_RNA, ATAC_PROTEIN, RNA_PROTEIN, ATAC_RNA_PROTEIN\n" ] } ], "source": [ "mmdb.list_technology_type() # list all technology types in the database" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "##### 3. Load the dataset in the scMMDB" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/html": [ "
| \n", " | ID | \n", "Species | \n", "Tissue | \n", "Disease | \n", "Technology_type | \n", "Technology | \n", "Cell_num | \n", "Title | \n", "
|---|---|---|---|---|---|---|---|---|
| 82 | \n", "Dataset_C_004 | \n", "Homo sapiens | \n", "human blood | \n", "atherosclerosis | \n", "RNA_PROTEIN | \n", "CITE-seq | \n", "5232 | \n", "Single-cell immune landscape of human atherosc... | \n", "
| 83 | \n", "Dataset_C_005 | \n", "Homo sapiens | \n", "human blood | \n", "acute lymphoblastic leukemia | \n", "RNA_PROTEIN | \n", "CITE-seq | \n", "16450 | \n", "Single-cell antigen-specific landscape of CAR ... | \n", "
| 84 | \n", "Dataset_C_006 | \n", "Homo sapiens | \n", "human blood | \n", "acute lymphoblastic leukemia | \n", "RNA_PROTEIN | \n", "CITE-seq | \n", "23287 | \n", "Single-cell antigen-specific landscape of CAR ... | \n", "
| 87 | \n", "Dataset_C_009 | \n", "Homo sapiens | \n", "human blood | \n", "acute lymphoblastic leukemia | \n", "RNA_PROTEIN | \n", "CITE-seq | \n", "30484 | \n", "Single-cell antigen-specific landscape of CAR ... | \n", "
| 88 | \n", "Dataset_C_010 | \n", "Homo sapiens | \n", "human blood | \n", "acute lymphoblastic leukemia | \n", "RNA_PROTEIN | \n", "CITE-seq | \n", "31105 | \n", "Single-cell antigen-specific landscape of CAR ... | \n", "