danieltslz commited on
Commit
36cda83
·
verified ·
1 Parent(s): 0384d17

Update curated PROBE README documentation: data/embeddings/probe_protvec/README.md

Browse files
data/embeddings/probe_protvec/README.md CHANGED
@@ -1,40 +1,22 @@
1
- # probe_protvec_v1_1
2
 
3
- Embedding ID: `probe_protvec`
4
-
5
- Former processing ID: `probe_protvec_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: `18873 genes × 100 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
 
@@ -44,36 +26,80 @@ assert X.shape[0] == len(genes)
44
  | `gene_symbol` | 18873 | 18873 | TSPAN6<br>TNMD<br>DPM1<br>SCYL3 | Gene symbol associated with the Ensembl gene ID. |
45
  | `gene_type` | 18873 | 1 | protein_coding | Gene biotype, usually protein_coding. |
46
  | `entrez_id` | 18870 | 18871 | 7105<br>64102<br>8813<br>57147 | NCBI Entrez Gene identifier, when available. |
47
- | `uniprot_id` | 18873 | 18873 | O43657<br>Q9H2S6<br>O60762<br>Q8IZE3 | UniProt accession or identifier, when available. |
48
  | `canonical_transcript_id` | 18873 | 18873 | ENST00000373020<br>ENST00000373031<br>ENST00000371588<br>ENST00000367771 | Canonical transcript identifier recorded or used for this gene. |
49
  | `canonical_protein_id` | 18873 | 18873 | ENSP00000362111<br>ENSP00000362122<br>ENSP00000360644<br>ENSP00000356745 | Canonical protein identifier recorded or used for this gene. |
50
- | `source_embedding` | 18873 | 1 | PROBE_PROTVEC | Name of the original source embedding. |
51
- | `source_identifier_type` | 18873 | 1 | UniProt accession from PROBE Entry column | Type of source identifier used by the original embedding. |
52
- | `source_key_count` | 18873 | 3 | 1<br>2<br>4 | Number of source keys mapped or collapsed to this final gene. |
53
- | `source_keys_examples` | 18873 | 18873 | O43657<br>Q9H2S6<br>O60762<br>Q8IZE3 | Example source keys mapped to this final gene. |
54
- | `source_row_indices_examples` | 18873 | 18873 | 18377<br>17975<br>4793<br>12441 | Example source row indices mapped to this final gene. |
55
- | `mapping_methods` | 18873 | 1 | uniprot_accession_exact_unique | Mapping methods used to connect source records to the master gene table. |
56
-
57
- ## Basic metadata
58
-
59
- | Field | Value |
60
- |---|---|
61
- | `modality` | protein sequence / protein representation from PROBE human UniProt archive |
62
- | `embedding_name` | probe_protvec_v1_1 |
63
- | `download_source` | Official PROBE human_representation_vectors.tar.gz archive from Zenodo record 5795850 plus official HUBioDataLab/PROBE repository |
64
- | `original_model_or_method` | PROTVEC |
65
- | `embedding_generated_by` | PROBE authors / original PROBE human representation archive |
66
 
67
  ## Detailed processing notes
68
 
69
- TODO: manually paste and curate the processing explanation for this embedding from the central project README.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
- Please include, when relevant:
72
 
73
- - original source/model/checkpoint;
74
- - whether the embedding was downloaded or generated locally;
75
- - input data used;
76
- - identifier mapping and filtering decisions;
77
- - pooling, aggregation, PCA, or normalization method;
78
- - coverage and important caveats;
79
- - license or redistribution notes.
 
 
1
+ # Embedding name: PROBE-PROTVec
2
 
3
+ - Modality: Protein representation
4
+ - Algorithm: Official PROBE human UniProt representation table, standardized by UniProt-to-master mapping
5
+ - Embedding source URL: https://huggingface.co/spaces/HUBioDataLab/PROBE
6
+ - Original model/code URL: https://github.com/HUBioDataLab/PROBE
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: `18,873 genes × 100 dimensions`
17
  - Dtype: `float32`
 
 
 
 
 
 
 
18
 
 
19
 
 
 
 
 
 
 
 
 
 
 
20
 
21
  ## genes.tsv columns
22
 
 
26
  | `gene_symbol` | 18873 | 18873 | TSPAN6<br>TNMD<br>DPM1<br>SCYL3 | Gene symbol associated with the Ensembl gene ID. |
27
  | `gene_type` | 18873 | 1 | protein_coding | Gene biotype, usually protein_coding. |
28
  | `entrez_id` | 18870 | 18871 | 7105<br>64102<br>8813<br>57147 | NCBI Entrez Gene identifier, when available. |
29
+ | `uniprot_id` | 18873 | 18873 | O43657<br>Q9H2S6<br>O60762<br>Q8IZE3 | UniProt accession or identifier matched from the PROBE source Entry accession. |
30
  | `canonical_transcript_id` | 18873 | 18873 | ENST00000373020<br>ENST00000373031<br>ENST00000371588<br>ENST00000367771 | Canonical transcript identifier recorded or used for this gene. |
31
  | `canonical_protein_id` | 18873 | 18873 | ENSP00000362111<br>ENSP00000362122<br>ENSP00000360644<br>ENSP00000356745 | Canonical protein identifier recorded or used for this gene. |
32
+ | `source_embedding` | 18873 | 1 | PROBE_PROTVEC | Name of the original PROBE source embedding. |
33
+ | `source_identifier_type` | 18873 | 1 | UniProt accession from PROBE Entry column | Type of source identifier used by the original PROBE CSV file. |
34
+ | `source_key_count` | 18873 | 3 | 1<br>2<br>4 | Number of PROBE UniProt source rows mapped or collapsed to this final master-table gene. |
35
+ | `source_keys_examples` | 18873 | 18873 | O43657<br>Q9H2S6<br>O60762<br>Q8IZE3 | Example PROBE UniProt Entry accessions mapped to this final master-table gene. |
36
+ | `source_row_indices_examples` | 18873 | 18873 | 18377<br>17975<br>4793<br>12441 | Example PROBE source row indices mapped to this final gene. |
37
+ | `mapping_methods` | 18873 | 1 | uniprot_accession_exact_unique | Mapping methods used to connect PROBE UniProt Entry accessions to the master gene table. |
38
+
39
+
 
 
 
 
 
 
 
 
40
 
41
  ## Detailed processing notes
42
 
43
+ ### Source and interpretation
44
+
45
+ This embedding is one PROBE human UniProt representation table standardized into the shared gene-embedding resource.
46
+
47
+ This is a ProtVec protein representation from the PROBE archive.
48
+
49
+ The source file used for this component was `PROTVEC_UNIPROT_HUMAN.csv` from the official PROBE human UniProt representation archive. The raw vectors were not regenerated locally. The local work here was identifier cleaning, UniProt-to-gene mapping, duplicate handling, QC, and conversion into the shared public resource format.
50
+
51
+ ### Provenance fields
52
+
53
+ source_name: PROBE-PROTVec
54
+ original_model_or_method: PROBE human UniProt representation archive
55
+ input_data_type: official PROBE human UniProt CSV representation table
56
+ input_source_file: PROTVEC_UNIPROT_HUMAN.csv
57
+ source_download_or_app_page: https://huggingface.co/spaces/HUBioDataLab/PROBE
58
+ source_code_page: https://github.com/HUBioDataLab/PROBE
59
+ raw_source_folder: ~/data/raw_embeddings/probe_official/human_representation_vectors/revision-1/
60
+ processing_script: ~/scripts/process_embeddings/process_probe_all_v1_1.py
61
+ preferred_batch_summary_report: ~/reports/mapping_reports/probe_all_v1_1_summary.tsv
62
+ source_identifier_type: UniProt Entry accession
63
+ mapping_identifier_type: UniProt accession matched to enriched master_gene_table.csv UniProt fields
64
+ source_rows_or_entries: 18,873 mapped source genes
65
+ final_mapped_genes: 18,873
66
+ model_or_feature_dimension: 100
67
+ training_or_finetuning: none
68
+ final_embedding_dtype: float32
69
+
70
+ ### Mapping and processing decisions
71
+
72
+ Each PROBE CSV uses a UniProt accession in the `Entry` column. Source entries were cleaned to their canonical accession base by removing isoform suffixes when present.
73
+
74
+ Cleaned UniProt accessions were mapped to master_gene_table.csv using `uniprot_id`, `hgnc_uniprot_ids`, and `map_uniprot_ids_all`. Only unique UniProt-to-master mappings were accepted. Ambiguous UniProt accessions were excluded. Duplicate source proteins mapping to the same final master-table gene were averaged within that gene.
75
+
76
+ The exact underlying UniProt/protein sequence database snapshot is inherited from the PROBE archive and should be checked against the official PROBE release documentation if a strict sequence-database timestamp is required.
77
+
78
+ ### Processing workflow
79
+
80
+ For this PROBE embedding:
81
+
82
+ 1. Read `PROTVEC_UNIPROT_HUMAN.csv` from the PROBE human representation archive.
83
+ 2. Use the `Entry` column as the source UniProt accession.
84
+ 3. Remove isoform suffixes where present to obtain the canonical UniProt accession base.
85
+ 4. Map source UniProt accessions to master_gene_table.csv through enriched UniProt fields.
86
+ 5. Exclude unmapped and ambiguous UniProt accessions.
87
+ 6. Average duplicate source rows only when they map to the same final master-table gene.
88
+ 7. Save the final matrix as float32.
89
+
90
+ ### Important implementation decisions
91
+
92
+ The PROBE vectors were taken directly from the official archive rather than recomputed. This keeps the PROBE batch aligned with the released human UniProt representation files.
93
+
94
+ All PROBE embeddings use the same mapping logic, so differences between PROBE outputs reflect the source representation type rather than different gene-mapping rules.
95
 
96
+ ### Summary of final mapping:
97
 
98
+ Source identifiers / source rows or entries: 18,873 mapped source genes
99
+ Dimensions: 100
100
+ Final mapped genes: 18,873
101
+ Master table rows: 20,097
102
+ Master coverage: 93.91%
103
+ Mapping strategy: UniProt Entry accession mapping through enriched master table
104
+ Ambiguous UniProt accessions: excluded
105
+ Duplicate final mappings averaged: yes