Update curated PPI/network README documentation: data/embeddings/deepnf_string_v12_ppmi_svd_fusion/README.md
Browse files
data/embeddings/deepnf_string_v12_ppmi_svd_fusion/README.md
CHANGED
|
@@ -1,40 +1,22 @@
|
|
| 1 |
-
# deepNF-STRING-v12-PPMI-SVD-fusion
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
|
|
|
| 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: `19071 genes × 256 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 |
|
|
@@ -49,31 +31,80 @@ assert X.shape[0] == len(genes)
|
|
| 49 |
| `canonical_protein_id` | 19071 | 19071 | ENSP00000362111<br>ENSP00000362122<br>ENSP00000360644<br>ENSP00000356745 | Canonical protein identifier recorded or used for this gene. |
|
| 50 |
| `source_embedding` | 19071 | 1 | deepNF-STRING-v12-PPMI-SVD-fusion-v1.1 | Name of the original source embedding. |
|
| 51 |
| `source_identifier_type` | 19071 | 1 | STRING protein ID / Ensembl protein ID | Type of source identifier used by the original embedding. |
|
| 52 |
-
| `source_key_count` | 19071 | 3 | 1<br>2<br>3 | Number of source
|
| 53 |
-
| `source_keys_examples` | 19071 | 19071 | 9606.ENSP00000362111<br>9606.ENSP00000362122<br>9606.ENSP00000360638<br>9606.ENSP00000356746 | Example source
|
| 54 |
| `source_row_indices_examples` | 19071 | 19071 | 10924<br>10928<br>10628<br>9850 | Example source row indices mapped to this final gene. |
|
| 55 |
| `mapping_methods` | 19071 | 12 | ensembl_protein_id_exact;string_alias_entrez;string_id_exact;string_preferred_symbol<br>ensembl_protein_id_exact;string_alias_entrez;string_id_exact<br>ensembl_protein_id_exact;string_alias_entrez;string_id_exact;ensembl_protein_id_exact;string_alias_entrez;string_id_exact;string_preferred_symbol<br>string_alias_entrez;string_preferred_symbol | Mapping methods used to connect source records to the master gene table. |
|
| 56 |
|
| 57 |
-
## Basic metadata
|
| 58 |
|
| 59 |
-
| Field | Value |
|
| 60 |
-
|---|---|
|
| 61 |
-
| `modality` | STRING network multimodal sparse PPMI/SVD fusion |
|
| 62 |
-
| `embedding_name` | deepNF-STRING-v12-PPMI-SVD-fusion-v1.1 |
|
| 63 |
-
| `download_source` | STRING v12 human protein.links.detailed, protein.info, and protein.aliases files |
|
| 64 |
-
| `original_model_or_method` | deepNF: deep network fusion for protein function prediction |
|
| 65 |
-
| `embedding_generated_by` | Daniel locally from STRING v12 channel networks |
|
| 66 |
|
| 67 |
## Detailed processing notes
|
| 68 |
|
| 69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
|
| 71 |
-
|
| 72 |
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Embedding name: deepNF-STRING-v12-PPMI-SVD-fusion
|
| 2 |
|
| 3 |
+
- Modality: STRING multimodal protein network / evidence-channel fusion
|
| 4 |
+
- Algorithm: deepNF-derived sparse PPMI and SVD network-fusion embedding
|
| 5 |
+
- Embedding source URL: https://string-db.org/cgi/download?species_text=Homo+sapiens
|
| 6 |
+
- Original model/code URL: https://github.com/VGligorijevic/deepNF
|
| 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: `19071 genes × 256 dimensions`
|
| 17 |
- Dtype: `float32`
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
|
|
|
|
| 19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
## genes.tsv columns
|
| 22 |
|
|
|
|
| 31 |
| `canonical_protein_id` | 19071 | 19071 | ENSP00000362111<br>ENSP00000362122<br>ENSP00000360644<br>ENSP00000356745 | Canonical protein identifier recorded or used for this gene. |
|
| 32 |
| `source_embedding` | 19071 | 1 | deepNF-STRING-v12-PPMI-SVD-fusion-v1.1 | Name of the original source embedding. |
|
| 33 |
| `source_identifier_type` | 19071 | 1 | STRING protein ID / Ensembl protein ID | Type of source identifier used by the original embedding. |
|
| 34 |
+
| `source_key_count` | 19071 | 3 | 1<br>2<br>3 | Number of STRING source nodes mapped or collapsed to this final master-table gene. |
|
| 35 |
+
| `source_keys_examples` | 19071 | 19071 | 9606.ENSP00000362111<br>9606.ENSP00000362122<br>9606.ENSP00000360638<br>9606.ENSP00000356746 | Example STRING source node identifiers mapped to this final master-table gene. |
|
| 36 |
| `source_row_indices_examples` | 19071 | 19071 | 10924<br>10928<br>10628<br>9850 | Example source row indices mapped to this final gene. |
|
| 37 |
| `mapping_methods` | 19071 | 12 | ensembl_protein_id_exact;string_alias_entrez;string_id_exact;string_preferred_symbol<br>ensembl_protein_id_exact;string_alias_entrez;string_id_exact<br>ensembl_protein_id_exact;string_alias_entrez;string_id_exact;ensembl_protein_id_exact;string_alias_entrez;string_id_exact;string_preferred_symbol<br>string_alias_entrez;string_preferred_symbol | Mapping methods used to connect source records to the master gene table. |
|
| 38 |
|
|
|
|
| 39 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
## Detailed processing notes
|
| 42 |
|
| 43 |
+
### Source and interpretation
|
| 44 |
+
|
| 45 |
+
This embedding is a locally regenerated deepNF-derived STRING network representation. It was generated from STRING v12 human evidence-channel network files because the original deepNF human matrices/features were not recoverable from the official data link, archived links, GitHub issues/forks, or inspected repository contents.
|
| 46 |
+
|
| 47 |
+
The retained final version uses STRING v12 evidence channels to build sparse channel-specific network matrices. Each channel matrix was converted into a sparse PPMI representation, reduced with TruncatedSVD, concatenated across channels, and reduced again to a final 256-dimensional fused representation.
|
| 48 |
+
|
| 49 |
+
This embedding should therefore be interpreted as a clean, documented deepNF-inspired STRING multimodal network embedding, not as the exact original released deepNF human embedding.
|
| 50 |
+
|
| 51 |
+
### Provenance fields
|
| 52 |
+
|
| 53 |
+
source_name: deepNF-derived STRING v12 PPMI-SVD fusion
|
| 54 |
+
original_model_or_method: deepNF-inspired multimodal network fusion
|
| 55 |
+
input_data_type: STRING v12 human evidence-channel protein network
|
| 56 |
+
input_source_files: STRING v12 human detailed links / channel-specific edge files
|
| 57 |
+
source_download_page: https://string-db.org/cgi/download?species_text=Homo+sapiens
|
| 58 |
+
original_deepnf_code_page: https://github.com/VGligorijevic/deepNF
|
| 59 |
+
source_identifier_type: STRING protein ID / aliases / Entrez / gene symbols
|
| 60 |
+
mapping_identifier_type: enriched master-table mapping through STRING protein identifiers, aliases, Entrez IDs, and gene symbols
|
| 61 |
+
source_nodes: 19,619 STRING source nodes
|
| 62 |
+
evidence_channels: 7
|
| 63 |
+
channel_processing: sparse adjacency -> sparse PPMI -> per-channel TruncatedSVD128
|
| 64 |
+
fused_intermediate_dimension: 896
|
| 65 |
+
final_dimensionality_reduction: TruncatedSVD to 256 dimensions
|
| 66 |
+
final_embedding_dtype: float32
|
| 67 |
+
|
| 68 |
+
### Mapping and network-processing decisions
|
| 69 |
+
|
| 70 |
+
STRING source proteins were mapped to master_gene_table.csv using the enriched mapping strategy available in the project: STRING protein IDs, aliases, Entrez IDs, and gene symbols were used when they mapped uniquely to a master-table gene.
|
| 71 |
+
|
| 72 |
+
Ambiguous source identifiers were excluded. Duplicate STRING proteins mapping to the same final master gene were averaged after producing the final fused representation.
|
| 73 |
+
|
| 74 |
+
The output is indexed by master-table Ensembl gene rows. This keeps the embedding compatible with the rest of the resource even though the source network is protein/STRING-node based.
|
| 75 |
+
|
| 76 |
+
### Processing workflow
|
| 77 |
+
|
| 78 |
+
For the deepNF-derived STRING embedding:
|
| 79 |
+
|
| 80 |
+
1. Read STRING v12 human evidence-channel network files.
|
| 81 |
+
2. Split or use the seven STRING evidence channels as separate network views.
|
| 82 |
+
3. Build sparse adjacency matrices for each channel.
|
| 83 |
+
4. Convert each channel adjacency matrix into a sparse PPMI matrix.
|
| 84 |
+
5. Apply TruncatedSVD with 128 components per channel.
|
| 85 |
+
6. Concatenate the seven channel-specific SVD representations into an 896-dimensional intermediate representation.
|
| 86 |
+
7. Apply final TruncatedSVD to obtain a 256-dimensional fused representation.
|
| 87 |
+
8. Map STRING source nodes to master_gene_table.csv.
|
| 88 |
+
9. Exclude ambiguous mappings and average duplicate mappings within the same final gene.
|
| 89 |
+
10. Save the final matrix as float32.
|
| 90 |
+
|
| 91 |
+
### Important implementation decisions
|
| 92 |
+
|
| 93 |
+
This output should not be described as the exact original deepNF release. The original human deepNF matrices could not be recovered reliably, so the final retained version is a reproducible local regeneration from public STRING v12 evidence channels.
|
| 94 |
+
|
| 95 |
+
The failed autoencoder/recovery attempts were not kept as the final output. The retained version is the stable sparse PPMI/SVD fusion that passed QC.
|
| 96 |
+
|
| 97 |
+
Using seven separate STRING evidence channels preserves the multimodal-network idea behind deepNF while keeping the pipeline reproducible and feasible on the available workstation.
|
| 98 |
|
| 99 |
+
### Summary of final mapping:
|
| 100 |
|
| 101 |
+
Source identifiers / STRING source nodes: 19,619
|
| 102 |
+
Evidence channels: 7
|
| 103 |
+
Per-channel dimensions after SVD: 128
|
| 104 |
+
Concatenated intermediate dimensions: 896
|
| 105 |
+
Final dimensions: 256
|
| 106 |
+
Final mapped genes: 19,071
|
| 107 |
+
Master table rows: 20,097
|
| 108 |
+
Master coverage: 94.89%
|
| 109 |
+
Duplicate STRING proteins mapping to same final gene: averaged
|
| 110 |
+
Duplicate final mappings averaged: yes
|