Update curated NEWT README documentation: data/embeddings/newt_msigdb_bundle/README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839402 unmodified lines43444546474849505152535455565758596061626364656667686970717273747576777879# NEWT-MSigDB-bundle-v1.1Embedding ID: `newt_msigdb_bundle`Former processing ID: `newt_msigdb_bundle_v1_1`## Public files- `embeddings.npz`: compressed NumPy archive containing the embedding matrix under key `embeddings`.- `genes.tsv`: row metadata table. Row order matches the embedding matrix.- `metadata.json`: machine-readable provenance and processing metadata.- `README.md`: this per-embedding documentation file.## Matrix- Shape: `15423 genes × 256 dimensions`- Dtype: `float32`- NPZ array key: `embeddings`The row order is authoritative:```textembeddings.npz['embeddings'][i, :] corresponds to genes.tsv row i```## Loading example```pythonimport numpy as npimport pandas as pdwith np.load('embeddings.npz') as z:X = z['embeddings']genes = pd.read_csv('genes.tsv', sep='\t')assert X.shape[0] == len(genes)```## genes.tsv columns2 unmodified lines| `ensembl_gene_id` | 15423 | 15423 | ENSG00000000003<br>ENSG00000000005<br>ENSG00000000419<br>ENSG00000000457 | Ensembl gene identifier; main stable identifier used to align genes across embeddings. || `gene_symbol` | 15423 | 15423 | TSPAN6<br>TNMD<br>DPM1<br>SCYL3 | Gene symbol associated with the Ensembl gene ID. || `gene_type` | 15423 | 1 | protein_coding | Gene biotype, usually protein_coding. || `entrez_id` | 15423 | 15423 | 7105<br>64102<br>8813<br>57147 | NCBI Entrez Gene identifier, when available. || `uniprot_id` | 15419 | 15388 | O43657<br>Q9H2S6<br>O60762<br>Q8IZE3 | UniProt accession or identifier, when available. || `canonical_transcript_id` | 15423 | 15423 | ENST00000373020<br>ENST00000373031<br>ENST00000371588<br>ENST00000367771 | Canonical transcript identifier recorded or used for this gene. || `canonical_protein_id` | 15423 | 15423 | ENSP00000362111<br>ENSP00000362122<br>ENSP00000360644<br>ENSP00000356745 | Canonical protein identifier recorded or used for this gene. || `source_embedding` | 15423 | 1 | NEWT-MSigDB-bundle-v1.1 | Name of the original source embedding. || `source_identifier_type` | 15423 | 1 | Entrez Gene ID from NEWT component embedding CSV | Type of source identifier used by the original embedding. || `source_key_count` | 15423 | 2 | 1<br>2 | Number of source keys mapped or collapsed to this final gene. || `source_keys_examples` | 15423 | 15423 | 7105<br>64102<br>8813<br>57147 | Example source keys mapped to this final gene. || `source_row_indices_examples` | 15423 | 15423 | 2631<br>11384<br>8925<br>16480 | Example source row indices mapped to this final gene. || `mapping_methods` | 15423 | 1 | entrez_id_exact_unique | Mapping methods used to connect source records to the master gene table. |## Basic metadata| Field | Value ||---|---|| `modality` | multimodal functional/regulatory/co-expression/pathway gene embedding component from NEWT || `embedding_name` | NEWT-MSigDB-bundle-v1.1 || `download_source` | Official NEWT Zenodo dataset release, DOI 10.5281/zenodo.19340318 || `original_model_or_method` | NEWT component embedding || `embedding_generated_by` | NEWT authors; processed locally into the project standard format |## Detailed processing notesTODO: manually paste and curate the processing explanation for this embedding from the central project README.Please include, when relevant:- original source/model/checkpoint;- whether the embedding was downloaded or generated locally;- input data used;- identifier mapping and filtering decisions;- pooling, aggregation, PCA, or normalization method;- coverage and important caveats;- license or redistribution notes.123456789101112131415161718192021222 unmodified lines252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104# Embedding name: NEWT-MSigDB-bundle- Modality: Pathway / gene-set component embedding- Algorithm: Official NEWT MSigDB bundle component embedding, standardized by strict Entrez mapping- Embedding source URL: Official NEWT Zenodo data release- Original model/code URL: Not applicable; source is an official NEWT component embedding table, not a local model checkpoint## Public files- `embeddings.npz`: compressed NumPy archive containing the embedding matrix under key `embeddings`.- `genes.tsv`: row metadata table. Row order matches the embedding matrix.- `metadata.json`: machine-readable provenance and processing metadata.## Matrix- Shape: `15423 genes × 256 dimensions`- Dtype: `float32`## genes.tsv columns2 unmodified lines| `ensembl_gene_id` | 15423 | 15423 | ENSG00000000003<br>ENSG00000000005<br>ENSG00000000419<br>ENSG00000000457 | Ensembl gene identifier; main stable identifier used to align genes across embeddings. || `gene_symbol` | 15423 | 15423 | TSPAN6<br>TNMD<br>DPM1<br>SCYL3 | Gene symbol associated with the Ensembl gene ID. || `gene_type` | 15423 | 1 | protein_coding | Gene biotype, usually protein_coding. || `entrez_id` | 15423 | 15423 | 7105<br>64102<br>8813<br>57147 | NCBI Entrez Gene identifier mapped from the NEWT source row. || `uniprot_id` | 15419 | 15388 | O43657<br>Q9H2S6<br>O60762<br>Q8IZE3 | UniProt accession or identifier, when available. || `canonical_transcript_id` | 15423 | 15423 | ENST00000373020<br>ENST00000373031<br>ENST00000371588<br>ENST00000367771 | Canonical transcript identifier recorded or used for this gene. || `canonical_protein_id` | 15423 | 15423 | ENSP00000362111<br>ENSP00000362122<br>ENSP00000360644<br>ENSP00000356745 | Canonical protein identifier recorded or used for this gene. || `source_embedding` | 15423 | 1 | NEWT-MSigDB-bundle-v1.1 | Name of the original NEWT component source embedding. || `source_identifier_type` | 15423 | 1 | Entrez Gene ID from NEWT component embedding CSV | Type of source identifier used by the original NEWT component. || `source_key_count` | 15423 | 2 | 1<br>2 | Number of NEWT source rows mapped or collapsed to this final master-table gene. || `source_keys_examples` | 15423 | 15423 | 7105<br>64102<br>8813<br>57147 | Example NEWT source identifiers mapped to this final master-table gene. || `source_row_indices_examples` | 15423 | 15423 | 2631<br>11384<br>8925<br>16480 | Example NEWT source row indices mapped to this final gene. || `mapping_methods` | 15423 | 1 | entrez_id_exact_unique | Mapping methods used to connect NEWT source rows to the master gene table. |## Detailed processing notes### Source and interpretationThis embedding is one of the five core NEWT component embeddings retained in the gene-embedding resource. It was processed from the official NEWT Zenodo data release and standardized to the shared master_gene_table.csv gene universe.This embedding represents the MSigDB pathway/gene-set component of NEWT. It should be interpreted as a pathway and gene-set-derived gene representation.The source file used for this component was `msigdb_bundle_embeddings_entrez.csv`. Source rows were identified primarily by Entrez Gene IDs. The raw NEWT component vectors were not retrained locally; the local work here was standardization, strict mapping, duplicate handling, QC, and conversion into the shared public resource format.### Provenance fieldssource_name: NEWT-MSigDB-bundleoriginal_model_or_method: NEWT component embeddinginput_data_type: official NEWT component embedding CSVinput_source_file: msigdb_bundle_embeddings_entrez.csvsource_download_page: official NEWT Zenodo data releaseraw_source_folder: ~/data/raw_embeddings/newt_official/zenodo/processing_script: ~/scripts/process_embeddings/process_newt_components_v1_1.pybatch_summary_report: ~/reports/mapping_reports/newt_components_v1_1_summary.tsvsource_identifier_type: Entrez Gene IDmapping_identifier_type: strict Entrez Gene ID mapping to master_gene_table.csvsource_rows: 19,508final_mapped_genes: 15,423model_or_component_dimension: 256training_or_finetuning: nonefinal_embedding_dtype: float32### Mapping and processing decisionsSource identifiers were mapped to master_gene_table.csv by strict Entrez Gene ID mapping through the enriched master table. Ambiguous Entrez IDs were excluded. Duplicate source rows mapping to the same final master-table gene were averaged within that final gene.The source contained Entrez IDs plus non-Entrez tokens; 541 non-Entrez tokens were excluded before strict Entrez mapping.The two additional NEWT regulon-token-derived outputs, DoRothEA and CollecTRI, were treated as auxiliary only and are not part of this core NEWT README block, because their source vocabularies include signed or augmented regulatory tokens that collapse back to genes during mapping.### Processing workflowFor this NEWT component:1. Read the official NEWT component CSV file `msigdb_bundle_embeddings_entrez.csv`.2. Parse source identifiers as Entrez Gene IDs where possible.3. Exclude non-gene or non-Entrez source tokens when present.4. Map source Entrez IDs to master_gene_table.csv using strict enriched-master Entrez mapping.5. Exclude ambiguous source identifiers.6. Average duplicate source rows only when they map to the same final master-table gene.7. Save the final matrix as float32.### Important implementation decisionsThe NEWT component vectors were not regenerated or retrained locally. The retained vectors come from the official NEWT component files, and the local processing standardizes them into the common gene-resource format.Each NEWT component should be treated as a separate biological view. They should not be assumed to be interchangeable, because GO, ARCHS4, GO graph, MSigDB, and CellNet encode different functional, co-expression, ontology-graph, pathway, and regulatory-network information.### Summary of final mapping:Source identifiers / source rows: 19,508Dimensions: 256Final mapped genes: 15,423Master table rows: 20,097Master coverage: 76.74%Mapping strategy: strict Entrez mapping through enriched master tableAmbiguous Entrez IDs: excludedDuplicate final mappings averaged: yes
data/embeddings/newt_msigdb_bundle/README.md+74-49