ctheodoris
commited on
Commit
•
7e5e0a1
1
Parent(s):
d1a6d2a
Updated model card
Browse files
README.md
CHANGED
@@ -24,9 +24,9 @@ license: apache-2.0
|
|
24 |
- [Other Known Limitations](#other-known-limitations)
|
25 |
- [Additional Information](#additional-information)
|
26 |
- [Dataset Curators](#dataset-curators)
|
|
|
27 |
<!---
|
28 |
- [Licensing Information](#licensing-information)
|
29 |
-
- [Citation Information](#citation-information)
|
30 |
- [Contributions](#contributions)
|
31 |
--->
|
32 |
|
@@ -40,6 +40,8 @@ license: apache-2.0
|
|
40 |
|
41 |
We assembled a large-scale pretraining corpus, Genecorpus-30M, comprised of ~30 million human single cell transcriptomes from a broad range of tissues from publicly available data. This corpus was used for pretraining [Geneformer](https://huggingface.co/ctheodoris/Geneformer), a pretrained transformer model that enables context-aware predictions in settings with limited data in network biology.
|
42 |
|
|
|
|
|
43 |
### Supported Tasks
|
44 |
|
45 |
This corpus was used for pretraining [Geneformer](https://huggingface.co/ctheodoris/Geneformer) and is compatible with pretraining or fine-tuning Geneformer or similar models.
|
@@ -54,9 +56,9 @@ Homo sapiens
|
|
54 |
|
55 |
Genecorpus-30M is provided as tokenized data in the Huggingface Datasets structure, which is based on the Apache Arrow format. Each example within the dataset is composed of the rank value encoding for a single cell within the corpus. Rank value encodings provide a nonparametric representation of each single cell’s transcriptome, ranking genes by their expression within that cell normalized by their expression across the entire Genecorpus-30M. This method takes advantage of the many observations of each gene’s expression across Genecorpus-30M to prioritize genes that distinguish cell state. Specifically, this method will deprioritize ubiquitously highly-expressed housekeeping genes by normalizing them to a lower rank. Conversely, genes such as transcription factors that may be lowly expressed when they are expressed but highly distinguish cell state will move to a higher rank within the encoding. Furthermore, this rank-based approach may be more robust against technical artifacts that may systematically bias the absolute transcript counts value while the overall relative ranking of genes within each cell remains more stable.
|
56 |
|
57 |
-
To accomplish this, we first calculated the nonzero median value of expression of each detected gene across all cells from the entire Genecorpus-30M. We aggregated the transcript count distribution for each gene, normalizing the gene transcript counts in each cell by the total transcript count of that cell to account for varying sequencing depth. We then normalized the genes in each single cell transcriptome by that gene’s
|
58 |
|
59 |
-
The rank value encodings for each single cell transcriptome were then tokenized based on a total vocabulary of 25,424 protein-coding or miRNA genes detected within Geneformer-30M. The token dictionary mapping each token ID to special tokens (
|
60 |
|
61 |
### Data Fields
|
62 |
|
@@ -77,11 +79,11 @@ Mapping the gene regulatory networks that drive disease progression enables scre
|
|
77 |
|
78 |
#### Initial Data Collection and Normalization
|
79 |
|
80 |
-
Source data included 29.9 million (29,900,531) human single cell transcriptomes from a broad range of tissues from 561 publicly available datasets from original studies cited in the
|
81 |
|
82 |
#### Who are the source data producers?
|
83 |
|
84 |
-
Publicly available datasets containing raw counts were collected from National Center for Biotechnology Information (NCBI) Gene Expression Omnibus (GEO), NCBI Sequence Read Archive (SRA), Human Cell Atlas, European Molecular Biology Laboratory-European Bioinformatics Institute (EMBL-EBI) Single Cell Expression Atlas, Broad Institute Single Cell Portal, Brotman Baty Institute (BBI)-Allen Single Cell Atlases, Tumor Immune Single-cell Hub (TISCH) (excluding malignant cells), Panglao Database, 10x Genomics, University of California, Santa Cruz Cell Browser, European Genome-phenome Archive, Synapse, Riken, Zenodo, National Institutes of Health (NIH) Figshare Archive, NCBI dbGap, Refine.bio, China National GeneBank Sequence Archive, Mendeley Data, and individual communication with authors of the original studies as cited in the
|
85 |
|
86 |
### Annotations
|
87 |
|
@@ -101,7 +103,7 @@ There is no personal or sensitive information included in the dataset. The datas
|
|
101 |
|
102 |
### Social Impact of Dataset
|
103 |
|
104 |
-
Genecorpus-30M enabled the large-scale pretraining of [Geneformer](https://huggingface.co/ctheodoris/Geneformer), a
|
105 |
|
106 |
### Discussion of Biases
|
107 |
|
@@ -117,11 +119,12 @@ Genecorpus-30M was intended to be used for self-supervised pretraining. To achie
|
|
117 |
|
118 |
Christina Theodoris, MD, PhD
|
119 |
|
120 |
-
|
121 |
|
122 |
-
|
|
|
123 |
|
124 |
-
###
|
125 |
|
126 |
[More Information Needed]
|
127 |
|
|
|
24 |
- [Other Known Limitations](#other-known-limitations)
|
25 |
- [Additional Information](#additional-information)
|
26 |
- [Dataset Curators](#dataset-curators)
|
27 |
+
- [Citation Information](#citation-information)
|
28 |
<!---
|
29 |
- [Licensing Information](#licensing-information)
|
|
|
30 |
- [Contributions](#contributions)
|
31 |
--->
|
32 |
|
|
|
40 |
|
41 |
We assembled a large-scale pretraining corpus, Genecorpus-30M, comprised of ~30 million human single cell transcriptomes from a broad range of tissues from publicly available data. This corpus was used for pretraining [Geneformer](https://huggingface.co/ctheodoris/Geneformer), a pretrained transformer model that enables context-aware predictions in settings with limited data in network biology.
|
42 |
|
43 |
+
See [our manuscript](https://www.nature.com/articles/s41586-023-06139-9) for details.
|
44 |
+
|
45 |
### Supported Tasks
|
46 |
|
47 |
This corpus was used for pretraining [Geneformer](https://huggingface.co/ctheodoris/Geneformer) and is compatible with pretraining or fine-tuning Geneformer or similar models.
|
|
|
56 |
|
57 |
Genecorpus-30M is provided as tokenized data in the Huggingface Datasets structure, which is based on the Apache Arrow format. Each example within the dataset is composed of the rank value encoding for a single cell within the corpus. Rank value encodings provide a nonparametric representation of each single cell’s transcriptome, ranking genes by their expression within that cell normalized by their expression across the entire Genecorpus-30M. This method takes advantage of the many observations of each gene’s expression across Genecorpus-30M to prioritize genes that distinguish cell state. Specifically, this method will deprioritize ubiquitously highly-expressed housekeeping genes by normalizing them to a lower rank. Conversely, genes such as transcription factors that may be lowly expressed when they are expressed but highly distinguish cell state will move to a higher rank within the encoding. Furthermore, this rank-based approach may be more robust against technical artifacts that may systematically bias the absolute transcript counts value while the overall relative ranking of genes within each cell remains more stable.
|
58 |
|
59 |
+
To accomplish this, we first calculated the nonzero median value of expression of each detected gene across all cells from the entire Genecorpus-30M. We aggregated the transcript count distribution for each gene, normalizing the gene transcript counts in each cell by the total transcript count of that cell to account for varying sequencing depth. We then normalized the genes in each single cell transcriptome by that gene’s nonzero median value of expression across Genecorpus-30M and ordered the genes by the rank of their normalized expression in that specific cell. Of note, we opted to use the nonzero median value of expression rather than include zeros in the distribution so as not to weight the value by tissue representation within Genecorpus-30M, assuming that a representative range of transcript values would be observed within the cells in which each gene was detected.
|
60 |
|
61 |
+
The rank value encodings for each single cell transcriptome were then tokenized based on a total vocabulary of 25,424 protein-coding or miRNA genes detected within Geneformer-30M. The token dictionary mapping each token ID to special tokens (pad and mask) or Ensembl IDs for each gene is included within the repository as a pickle file (token_dictionary.pkl).
|
62 |
|
63 |
### Data Fields
|
64 |
|
|
|
79 |
|
80 |
#### Initial Data Collection and Normalization
|
81 |
|
82 |
+
Source data included 29.9 million (29,900,531) human single cell transcriptomes from a broad range of tissues from 561 publicly available datasets from original studies cited in the Methods of Theodoris et al, Nature 2023. Datasets were filtered to retain cells with total read counts within three standard deviations of the mean within that dataset and mitochondrial reads within three standard deviations of the mean within that dataset. Ensembl-annotated protein-coding and miRNA genes were used for downstream analysis. Cells with less than seven detected Ensembl-annotated protein-coding or miRNA genes were excluded as the 15% masking used for the pretraining learning objective would not reliably mask a gene in cells with fewer detected genes. Ultimately, 27.4 million (27,406,217) cells passed the defined quality filters. Cells were then represented as rank value encodings as discussed above in [Data Instances](#data-instances).
|
83 |
|
84 |
#### Who are the source data producers?
|
85 |
|
86 |
+
Publicly available datasets containing raw counts were collected from National Center for Biotechnology Information (NCBI) Gene Expression Omnibus (GEO), NCBI Sequence Read Archive (SRA), Human Cell Atlas, European Molecular Biology Laboratory-European Bioinformatics Institute (EMBL-EBI) Single Cell Expression Atlas, Broad Institute Single Cell Portal, Brotman Baty Institute (BBI)-Allen Single Cell Atlases, Tumor Immune Single-cell Hub (TISCH) (excluding malignant cells), Panglao Database, 10x Genomics, University of California, Santa Cruz Cell Browser, European Genome-phenome Archive, Synapse, Riken, Zenodo, National Institutes of Health (NIH) Figshare Archive, NCBI dbGap, Refine.bio, China National GeneBank Sequence Archive, Mendeley Data, and individual communication with authors of the original studies as cited in the Methods of Theodoris et al, Nature 2023.
|
87 |
|
88 |
### Annotations
|
89 |
|
|
|
103 |
|
104 |
### Social Impact of Dataset
|
105 |
|
106 |
+
Genecorpus-30M enabled the large-scale pretraining of [Geneformer](https://huggingface.co/ctheodoris/Geneformer), a foundation model that enables context-aware predictions in settings with limited data in network biology. Within our publication, we demonstrated that during pretraining, Geneformer gained a fundamental understanding of network dynamics, encoding network hierarchy in the model’s attention weights in a completely self-supervised manner. Fine-tuning Geneformer towards a diverse panel of downstream tasks relevant to chromatin and network dynamics using limited task-specific data demonstrated that Geneformer consistently boosted predictive accuracy. Applied to disease modeling with limited patient data, Geneformer identified candidate therapeutic targets for cardiomyopathy. Overall, Geneformer represents a pretrained foundation model from which fine-tuning towards a broad range of downstream applications can be pursued to accelerate discovery of key network regulators and candidate therapeutic targets.
|
107 |
|
108 |
### Discussion of Biases
|
109 |
|
|
|
119 |
|
120 |
Christina Theodoris, MD, PhD
|
121 |
|
122 |
+
### Citation Information
|
123 |
|
124 |
+
Theodoris CV*, Xiao L, Chopra A, Chaffin MD, Al Sayed ZR, Hill MC, Mantineo H, Brydon EM, Zeng Z, Liu XS, Ellinor PT*. Transfer learning enables predictions in network biology. Nature. 2023 May 31; Epub ahead of print.
|
125 |
+
(*co-corresponding authors)
|
126 |
|
127 |
+
<!--- ### Licensing Information
|
128 |
|
129 |
[More Information Needed]
|
130 |
|