danieltslz commited on
Commit
7365537
·
verified ·
1 Parent(s): 6b7791b

Update curated README documentation: data/embeddings/cmap_gse106127_cgs_mean_landmark978_zscore/README.md

Browse files
data/embeddings/cmap_gse106127_cgs_mean_landmark978_zscore/README.md CHANGED
@@ -1,40 +1,22 @@
1
- # CMap-GSE106127-CGS-mean-landmark978-zscore-v1.1
2
 
3
- Embedding ID: `cmap_gse106127_cgs_mean_landmark978_zscore`
4
-
5
- Former processing ID: `cmap_gse106127_cgs_mean_landmark978_zscore_v1_1`
 
6
 
7
  ## Public files
8
 
9
  - `embeddings.npz`: compressed NumPy archive containing the embedding matrix under key `embeddings`.
10
  - `genes.tsv`: row metadata table. Row order matches the embedding matrix.
11
  - `metadata.json`: machine-readable provenance and processing metadata.
12
- - `README.md`: this per-embedding documentation file.
13
 
14
  ## Matrix
15
 
16
  - Shape: `4070 genes × 978 dimensions`
17
  - Dtype: `float32`
18
- - NPZ array key: `embeddings`
19
-
20
- The row order is authoritative:
21
-
22
- ```text
23
- embeddings.npz['embeddings'][i, :] corresponds to genes.tsv row i
24
- ```
25
 
26
- ## Loading example
27
 
28
- ```python
29
- import numpy as np
30
- import pandas as pd
31
-
32
- with np.load('embeddings.npz') as z:
33
- X = z['embeddings']
34
-
35
- genes = pd.read_csv('genes.tsv', sep='\t')
36
- assert X.shape[0] == len(genes)
37
- ```
38
 
39
  ## genes.tsv columns
40
 
@@ -46,28 +28,89 @@ assert X.shape[0] == len(genes)
46
  | `gene_type` | 4070 | 1 | protein_coding | Gene biotype, usually protein_coding. |
47
  | `entrez_id` | 4070 | 4063 | 7105<br>57147<br>2268<br>2729 | NCBI Entrez Gene identifier, when available. |
48
  | `uniprot_id` | 4070 | 4060 | O43657<br>Q8IZE3<br>P09769<br>P48506 | UniProt accession or identifier, when available. |
49
- | `source_gene_symbol` | 4070 | 4063 | TSPAN6<br>SCYL3<br>FGR<br>GCLC | Original gene symbol from the source before final mapping. |
50
- | `n_cgs_signatures` | 4070 | 6 | 9<br>1<br>8<br>7 | TODO: define this source-specific column during manual curation. |
51
- | `n_cell_lines` | 4070 | 6 | 9<br>1<br>8<br>7 | TODO: define this source-specific column during manual curation. |
52
 
53
- ## Basic metadata
54
 
55
- | Field | Value |
56
- |---|---|
57
- | `status` | processed_qc_passed |
58
- | `modality` | perturbational transcriptomics / L1000 consensus genetic perturbation signatures |
59
- | `embedding_name` | CMap-GSE106127-CGS-mean-landmark978-zscore-v1.1 |
60
 
61
  ## Detailed processing notes
62
 
63
- TODO: manually paste and curate the processing explanation for this embedding from the central project README.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
 
65
- Please include, when relevant:
66
 
67
- - original source/model/checkpoint;
68
- - whether the embedding was downloaded or generated locally;
69
- - input data used;
70
- - identifier mapping and filtering decisions;
71
- - pooling, aggregation, PCA, or normalization method;
72
- - coverage and important caveats;
73
- - license or redistribution notes.
 
 
 
 
 
 
 
 
1
+ # Embedding name: CMap-GSE106127-CGS-mean-landmark978-zscore
2
 
3
+ - Modality: Perturbational transcriptomics / shRNA consensus gene-signature response
4
+ - Algorithm: Mean L1000 landmark response profile per perturbed gene
5
+ - Embedding source URL: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE106127
6
+ - Original model/code URL: Not applicable; source is a CMap/LINCS perturbational expression data release, not a model/code release
7
 
8
  ## Public files
9
 
10
  - `embeddings.npz`: compressed NumPy archive containing the embedding matrix under key `embeddings`.
11
  - `genes.tsv`: row metadata table. Row order matches the embedding matrix.
12
  - `metadata.json`: machine-readable provenance and processing metadata.
 
13
 
14
  ## Matrix
15
 
16
  - Shape: `4070 genes × 978 dimensions`
17
  - Dtype: `float32`
 
 
 
 
 
 
 
18
 
 
19
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  ## genes.tsv columns
22
 
 
28
  | `gene_type` | 4070 | 1 | protein_coding | Gene biotype, usually protein_coding. |
29
  | `entrez_id` | 4070 | 4063 | 7105<br>57147<br>2268<br>2729 | NCBI Entrez Gene identifier, when available. |
30
  | `uniprot_id` | 4070 | 4060 | O43657<br>Q8IZE3<br>P09769<br>P48506 | UniProt accession or identifier, when available. |
31
+ | `source_gene_symbol` | 4070 | 4063 | TSPAN6<br>SCYL3<br>FGR<br>GCLC | Original CMap perturbed target gene symbol from the source `pert_iname` field before final mapping. |
32
+ | `n_cgs_signatures` | 4070 | 6 | 9<br>1<br>8<br>7 | Number of retained CMap CGS signatures for this perturbed target gene before averaging. |
33
+ | `n_cell_lines` | 4070 | 6 | 9<br>1<br>8<br>7 | Number of CMap cell lines represented among the retained CGS signatures for this perturbed target gene. |
34
 
 
35
 
 
 
 
 
 
36
 
37
  ## Detailed processing notes
38
 
39
+ ### Source and interpretation
40
+
41
+ This embedding is a gene-level perturbational transcriptomics representation derived from CMap/LINCS GSE106127 consensus gene signatures. It was generated locally from the CMap CGS GCTX matrix and associated metadata files.
42
+
43
+ The source matrix contains consensus gene-signature rows and 978 L1000 landmark response-gene columns. The retained rows were filtered to `pert_type == trt_sh.cgs`, representing consensus gene signatures for shRNA target perturbations. For each perturbed target gene, all retained CGS response vectors across signatures and cell lines were averaged into one 978-dimensional vector. The 978 dimensions are response genes, not the target genes being embedded.
44
+
45
+ This embedding should therefore be interpreted as a perturbation-response prior: genes with similar vectors produce similar L1000 transcriptional responses when knocked down in the CMap CGS data. It is intentionally low coverage because only genes targeted in this CMap CGS resource can receive vectors.
46
+
47
+ ### Provenance fields
48
+
49
+ source_name: CMap GSE106127 CGS mean landmark response
50
+ original_model_or_method: CMap/LINCS L1000 consensus gene signatures
51
+ input_data_type: perturbational transcriptomics response matrix
52
+ input_source_files: GSE106127_CGS_n33839x978.gctx.gz, GSE106127_CGS_meta.txt.gz, GSE106127_gene_info.txt.gz
53
+ source_download_page: https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE106127
54
+ source_guide: https://clue.io/geo-guide
55
+ source_matrix_shape: 33,839 signatures x 978 landmark response genes
56
+ metadata_rows: 33,839
57
+ gene_info_rows: 978
58
+ retained_filter: pert_type == trt_sh.cgs
59
+ cgs_signatures_retained: 33,503
60
+ unique_perturbed_gene_symbols_after_aggregation: 4,312
61
+ cell_lines: 9
62
+ source_identifier_type: CMap pert_iname target gene symbol
63
+ mapping_identifier_type: case-insensitive match to master gene_symbol
64
+ aggregation_strategy: mean 978-dimensional L1000 response vector across signatures and cell lines per perturbed gene
65
+ transformation: landmark response-gene column z-score across mapped perturbed genes
66
+ final_embedding_dtype: float32
67
+
68
+ ### Mapping and perturbation-processing decisions
69
+
70
+ The source identifier was the CMap perturbed target gene symbol from `pert_iname`. Target symbols were mapped case-insensitively to `gene_symbol` in master_gene_table.csv.
71
+
72
+ The source expression dimensions are the 978 L1000 landmark response genes. These are response features, while the rows of the final embedding are the perturbed target genes. This distinction is important: the embedding vector for a gene describes the downstream transcriptional response to perturbing that gene.
73
+
74
+ For each mapped target gene, all retained CGS signatures were averaged across signatures and cell lines. The final matrix was then z-scored column-wise across mapped target genes, one z-score transformation per landmark response gene.
75
+
76
+ ### Processing workflow
77
+
78
+ For the CMap CGS embedding:
79
+
80
+ 1. Read GSE106127_CGS_n33839x978.gctx.gz.
81
+ 2. Read GSE106127_CGS_meta.txt.gz.
82
+ 3. Read GSE106127_gene_info.txt.gz.
83
+ 4. Keep signatures where pert_type == trt_sh.cgs.
84
+ 5. Use pert_iname as the perturbed target gene symbol.
85
+ 6. Average 978-dimensional L1000 response vectors across retained signatures and cell lines for each perturbed target gene.
86
+ 7. Map target gene symbols case-insensitively to master_gene_table.csv gene_symbol.
87
+ 8. Keep mapped master-table genes.
88
+ 9. Z-score each landmark response-gene column across mapped target genes.
89
+ 10. Save the final matrix as float32.
90
+
91
+ ### Important implementation decisions
92
+
93
+ The embedding represents perturbational response, not basal gene expression and not sequence. It should be used as a targeted functional prior.
94
+
95
+ The low coverage is expected and should not be imputed. CMap only contains vectors for genes that were targeted in this CGS perturbation resource.
96
+
97
+ The final output keeps the native 978 landmark response-gene dimensions instead of applying PCA. This preserves the interpretation of each dimension as a L1000 landmark response feature.
98
+
99
+ Pairwise comparisons involving this embedding should report that CMap is a low-coverage targeted perturbation resource and should use intersected gene sets.
100
 
101
+ ### Summary of final mapping:
102
 
103
+ Source identifiers / raw CMap signatures: 33,839
104
+ Metadata rows: 33,839
105
+ Gene-info rows: 978
106
+ CGS signatures retained: 33,503
107
+ Unique perturbed gene symbols after aggregation: 4,312
108
+ Cell lines: 9
109
+ Dimensions: 978
110
+ Rows generated before duplicate collapse: 4,070
111
+ Unmapped source perturbed symbols: 249
112
+ Ambiguous source rows: 0
113
+ Final mapped genes: 4,070
114
+ Master table rows: 20,097
115
+ Master coverage: 20.251%
116
+ Duplicate final mappings averaged: 0