Datasets:
sample_idx stringlengths 9 11 | cell_sentence_1 stringlengths 9 11 | cell_sentence_2 stringlengths 26.2k 27.8k | adata_link stringclasses 1
value |
|---|---|---|---|
SRX085322 | SRX085322 | PIGR IGKC JCHAIN IGHA2 IGHA1 FCGBP RN7SL1 CEACAM5 CD24 IGHM IGLC2 TSPAN1 IGKV1-5 UGT2B17 CA2 CEACAM1 SLC26A2 MUC2 IGKV4-1 IGLV2-14 COL3A1 IGKV3-20 TSPAN8 OLFM4 IGLC3 CEACAM6 EPCAM CA1 IGLV1-40 IGKV1-16 SLC44A4 PLAC8 TFF3 HMGCS2 AGR2 DSG2 CLCA4 IGLV2-8 REG1A IGLV2-11 PLS1 KRT19 IGLV1-44 ADH1C LYZ DMBT1 SELENBP1 GCNT3 ST... | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX081993 | SRX081993 | GPX3 LRP2 SPP1 SLC4A4 SLC5A12 GATM SLC13A3 CUBN CA12 PCK1 ANPEP CGNL1 CRYAB ENPEP BHMT2 MME AQP1 WDR72 SLC12A1 CLU IGFBP5 ALDH1A1 KL UGT2B7 MAOA AIF1L C3 OGDHL KCNJ15 PDZK1IP1 AOX1 PAH CALB1 APOE SULT1C2 TFCP2L1 PTH1R ANK2 BBOX1 DSP TSPAN1 XPNPEP2 PIGR SMIM24 SLC7A7 RBP5 SERPINA1 KCNJ16 C7 SLC16A9 CA2 DPP4 CXCL14 CMBL ... | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX099130 | SRX099130 | FN1 KRT5 GPNMB COL1A1 COL3A1 DSP TNC COL1A2 MMP1 GJA1 DSG3 KRT15 VCAN COL6A3 DSC2 POSTN KRT6A LAMC2 PHLDB2 KRT19 KRT13 COL12A1 CD109 KRT16 SPP1 TP63 PTHLH CLCA2 SLC7A8 SLC2A1 TGFBI SFN COL17A1 DCN THBS1 LUM TMEM45A IGFBP2 AHNAK2 S100A9 PTK7 HSPG2 COL6A2 TM4SF1 NOTCH3 FAT2 ITGA2 DSC3 COL4A1 STON2 FBN1 COL5A2 LTBP1 ITGB8... | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX099135 | SRX099135 | KRT4 RHCG KRT13 KRT5 DSG3 CLCA4 AQP3 KRT6A A2ML1 IL1RN SCEL PKP1 SPINK5 DSP DUSP1 ECM1 TACSTD2 EMP1 EHF PITX1 CEACAM6 SFN DSC2 MAL S100A9 NCCRP1 S100A14 GBP6 CLCA2 KRT15 KLF5 FOS KRT16 PPL HOPX KRT19 CEACAM5 S100A8 SCD CRISP3 TRIM29 JUNB CSTA TMPRSS4 PI3 GPX3 KRT6B MPZL2 FGFBP1 PTK6 TM4SF1 TRNP1 IKZF2 TTC22 PSCA C6orf1... | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX081987 | SRX081987 | KIF1A MAP1A NPTXR CPLX2 CAMK2A SLC1A2 DNM1 ATP1A2 KIF5A GRIN1 BSN FAIM2 KCNQ2 MAP1B FBXL16 TPPP NDRG4 CELSR2 ENC1 MEG3 CLU NCS1 OLFM1 MAPT NAT8L APLP1 PLP1 GAS7 ENO2 PACSIN1 PHYHIP ATP2B2 RAB6B TUBB4A SYNGR1 SPOCK2 SYP NRXN2 CKB NCAM1 B3GAT1 AGAP2 SCD GNAO1 CAMK2B ADGRB2 NTRK2 SPTBN2 NPTX1 MAP2 ANK2 UNC13A SLC22A17 PDZ... | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX099132 | SRX099132 | FN1 TNC DSG3 COL3A1 PKP1 KRT4 COL1A1 TP63 KRT5 DSP GPNMB COL6A3 DSC3 COL12A1 ZBTB7C LAMC2 COL1A2 POSTN NTRK2 KLF5 THBS1 DSG2 FBN2 VCAN KRT13 ABCA13 HAS3 DSC2 CLCA2 KRT6A COL17A1 ITGB8 GREM1 EMP1 LUM PHLDB2 KRT19 GJA1 MMP1 TOP2A AKR1C2 SCD SULF1 SLC7A11 DPYSL3 IGFBP3 SGK1 TGFBI COL5A2 DCN COL4A1 SOSTDC1 LAMA3 CAV1 KRT17... | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX099128 | SRX099128 | TP63 NTRK2 KRT5 IGFBP3 PKP1 FN1 CLCA2 DSG3 LAMC2 SPP1 ITGA2 KRT6A PHLDB2 GPNMB COL12A1 KRT15 KLF5 DSP GJA1 ABCA13 DPYSL3 ITGB8 HAS3 COL3A1 SFN WNT5A DSC3 CYP4F11 KRT16 ARNTL2 SAMD9 TNC TM4SF1 NQO1 TOP2A SERPINE1 CDH3 NOTCH3 SLC7A11 COL1A1 TGFBI SCD CD109 DSG2 CES1 UPK1B IL1RAP AKR1B10 SERPINB5 COL1A2 LUM ALDH3A1 SGK1 I... | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX114762 | SRX114762 | "COL3A1 COL1A2 COL1A1 RN7SL1 FN1 COL6A3 COL12A1 LUM DCN C3 VCAN GREM1 THBS1 FBN1 POSTN COL5A2 TAGLN (...TRUNCATED) | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX099129 | SRX099129 | "FN1 COL12A1 COL1A1 COL3A1 COL1A2 COL6A3 KRT5 VCAN DSG3 DSC2 TNC THBS1 PKP1 TP63 DSP SCD LAMC2 POSTN(...TRUNCATED) | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
SRX081991 | SRX081991 | "TTN OBSCN RYR2 FLNC MYH7 HSPG2 CMYA5 MYOM2 NRAP VWF LDB3 ACTN2 PLIN4 XIRP1 MYOM1 SORBS1 NEBL DSP LT(...TRUNCATED) | https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content |
Description
This dataset contains a representation of RNA sequencing data and text descriptions. Dataset type: single (suitable for relevant contrastive-learning or inference tasks).
Cell Sentence Length: The cell sentences in this dataset have a length of $cs_length genes.
The RNA sequencing data used for training was originally gathered and annotated in the CellWhisperer project. It is derived from CellxGene and GEO. Detailed information on the gathering and annotation of the data can be read in the CellWhisperer Manuscript.
Example Data Row
The dataset contains the following column structure (example from the first row):
sample_idx: SRX085322
cell_sentence_1: SRX085322
cell_sentence_2: PIGR IGKC JCHAIN IGHA2 IGHA1 FCGBP RN7SL1 CEACAM5 CD24 IGHM IGLC2 TSPAN1 IGKV1-5 UGT2B17 CA2 CEACAM1 SLC26A2 MUC2 IGKV4-1 IGLV2-14 COL3A1 IGKV3-20 TSP...
adata_link: https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content
The processed .h5ad files used to create this dataset are stored remotely. An example file can be accessed here: https://zenodo.org/api/records/17715905/draft/files/all_chunk_0.zarr.zip/content
The AnnData Objects were processed and converted into a Hugging Face dataset using the adata_hf_datasets Python package. The dataset can be used to train a multimodal model, aligning transcriptome and text modalities with the sentence-transformers framework. See mmcontext for examples on how to train such a model.
The anndata objects are stored on nextcloud and a sharelink is provided as part of the dataset to download them. These anndata objects contain intial embeddings generated like this: Each AnnData contained the following embedding keys: ['X_pca', 'X_scvi_fm', 'X_geneformer', 'X_gs10k', 'X_geneformer-v1', 'X_cw-geneformer']. These initial embeddings are used as inputs for downstream model training / inference.
Source
Original Data: CZ CELLxGENE Discover: A single-cell data platform for scalable exploration, analysis and modeling of aggregated data CZI Single-Cell Biology, et al. bioRxiv 2023.10.30 Publication
GEO Database: Edgar R, Domrachev M, Lash AE. Gene Expression Omnibus: NCBI gene expression and hybridization array data repository Nucleic Acids Res. 2002 Jan 1;30(1):207-10
Annotated Data: Cell Whisperer: Multimodal learning of transcriptomes and text enables interactive single-cell RNA-seq data exploration with natural-language chats Moritz Schaefer, Peter Peneder, Daniel Malzl, Mihaela Peycheva, Jake Burton, Anna Hakobyan, Varun Sharma, Thomas Krausgruber, Jörg Menche, Eleni M. Tomazou, Christoph Bock Publication Annotated Data: CellWhisperer website
Embedding Methods: scVI: Lopez, R., Regier, J., Cole, M.B. et al. Deep generative modeling for single-cell transcriptomics. Nat Methods 15, 1053–1058 (2018). https://doi.org/10.1038/s41592-018-0229-2 geneformer: Theodoris, C.V., Xiao, L., Chopra, A. et al. Transfer learning enables predictions in network biology. Nature 618, 616–624 (2023). Publication
Further important packages anndata: Isaac Virshup, Sergei Rybakov, Fabian J. Theis, Philipp Angerer, F. Alexander Wolf. anndata: Annotated data. bioRxiv 2021.12.16.473007 Publication scnapy: Wolf, F., Angerer, P. & Theis, F. SCANPY: large-scale single-cell gene expression data analysis. Genome Biol 19, 15 (2018). Publication
Usage
To use this dataset in Python:
from datasets import load_dataset
# Load the dataset
dataset = load_dataset("jo-mengr/human_disease_schaefer_single_no_caption_v3")
Understanding the Data Structure
- sample_idx: This column maps to the
adata.obs.indexof the original AnnData objects - Chunking: Larger datasets were chunked, so each AnnData object contains only a subset of the indices from the complete dataset
- Share Links: Each row contains a
share_linkthat can be used with requests to download the corresponding AnnData object
Loading AnnData Objects
The share links in the dataset can be used to download the corresponding AnnData objects:
import requests
import anndata as ad
# Get the share link from a dataset row
row = dataset["train"][0] # First row as example
share_link = row["share_link"]
sample_idx = row["sample_idx"]
# Download and load the AnnData object
response = requests.get(share_link)
if response.status_code == 200:
with open("adata.h5ad", "wb") as f:
f.write(response.content)
adata = ad.read_h5ad("adata.h5ad")
# The sample_idx corresponds to adata.obs.index
sample_data = adata[adata.obs.index == sample_idx]
print(f"Found sample: {sample_data.shape}")
else:
print("Failed to download AnnData object")
- Downloads last month
- 27