Update curated literature and coexpression README documentation: data/embeddings/bioconceptvec_fasttext/README.md
Browse files123456789101112131415161718192021222324252627282930313233343536373839408 unmodified lines495051525354555657585960616263646566676869707172737475# BioConceptVec-fastText-v1.1Embedding ID: `bioconceptvec_fasttext`Former processing ID: `bioconceptvec_fasttext_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: `17040 genes × 100 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 columns8 unmodified lines| `canonical_protein_id` | 17040 | 17040 | ENSP00000362111<br>ENSP00000362122<br>ENSP00000360644<br>ENSP00000356745 | Canonical protein identifier recorded or used for this gene. || `source_embedding` | 17040 | 1 | BioConceptVec-fastText-v1.1 | Name of the original source embedding. || `source_identifier_type` | 17040 | 1 | entrez_id | Type of source identifier used by the original embedding. || `source_key_count` | 17040 | 2 | 1<br>2 | Number of source keys mapped or collapsed to this final gene. || `source_keys_examples` | 17040 | 17040 | Gene_7105<br>Gene_64102<br>Gene_8813<br>Gene_57147 | Example source keys mapped to this final gene. || `mapping_methods` | 17040 | 1 | entrez_id_from_map_entrez_ids_all | Mapping methods used to connect source records to the master gene table. |## Basic metadata| Field | Value ||---|---|| `modality` | biomedical_literature_text || `embedding_name` | BioConceptVec-fastText-v1.1 |## 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.123456789101112131415161718192021228 unmodified lines313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293# Embedding name: BioConceptVec-fastText- Modality: Biomedical literature / text- Algorithm: BioConceptVec fastText Gene_<Entrez> concept vectors standardized by strict Entrez mapping- Embedding source URL: https://github.com/ncbi/BioConceptVec- Original model/code URL: https://github.com/ncbi/BioConceptVec## 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: `17,040 genes × 100 dimensions`- Dtype: `float32`## genes.tsv columns8 unmodified lines| `canonical_protein_id` | 17040 | 17040 | ENSP00000362111<br>ENSP00000362122<br>ENSP00000360644<br>ENSP00000356745 | Canonical protein identifier recorded or used for this gene. || `source_embedding` | 17040 | 1 | BioConceptVec-fastText-v1.1 | Name of the original source embedding. || `source_identifier_type` | 17040 | 1 | entrez_id | Type of source identifier used by the original embedding. || `source_key_count` | 17040 | 2 | 1<br>2 | Number of source identifiers mapped or collapsed to this final master-table gene. || `source_keys_examples` | 17040 | 17040 | Gene_7105<br>Gene_64102<br>Gene_8813<br>Gene_57147 | Example source identifiers mapped to this final master-table gene. || `mapping_methods` | 17040 | 1 | entrez_id_from_map_entrez_ids_all | Mapping methods used to connect source identifiers to the master gene table. |## Detailed processing notes### Source and interpretationThis embedding represents BioConceptVec gene concepts using the fastText training variant.The raw vectors were not regenerated locally for this README update. The local work here was identifier cleaning, mapping to the shared master_gene_table.csv gene universe, duplicate handling, QC, and conversion into the shared public resource format.### Provenance fieldssource_name: BioConceptVec-fastTextoriginal_model_or_method: BioConceptVec-fastTextinput_data_type: BioConceptVec concept JSONraw_source: ~/data/raw_embeddings/bioconceptvec/concept_fast.jsonprocessing_script: ~/scripts/process_embeddings/process_bioconceptvec_fasttext_v1_1.pysource_download_page: https://github.com/ncbi/BioConceptVecsource_code_page: https://github.com/ncbi/BioConceptVecsource_identifier_type: Gene_<Entrez> concept keymapping_identifier_type: strict single-Entrez mapping to master_gene_table.csvsource_rows_or_entries: 402,712 total concepts; 126,751 single-Entrez gene conceptsfinal_mapped_genes: 17,040model_or_feature_dimension: 100training_or_finetuning: nonefinal_embedding_dtype: float32### Mapping and processing decisionsThe same strict single-Entrez mapping rule as BioConceptVec-CBOW was used.### Processing workflowFor this embedding:1. Read concept_fast.json.2. Parse the source identifiers.3. Map source identifiers to master_gene_table.csv using the project mapping rule for this identifier type.4. Exclude unmapped and ambiguous source identifiers.5. Average duplicate source rows only when they map to the same final master-table gene.6. Save the final matrix as float32.### Important implementation decisionsThis README describes the standardized gene-level version included in the public resource. The source vectors were kept as released or previously generated in the project, while the mapping and QC were made consistent with the rest of the v1.1 embedding library.### Summary of final mapping:Source identifiers / source rows or entries: 402,712 total concepts; 126,751 single-Entrez gene conceptsDimensions: 100Final mapped genes: 17,040Master table rows: 20,097Master coverage: 84.79%Mapping strategy: strict single-Entrez mapping to master_gene_table.csvAmbiguous identifiers: excludedDuplicate final mappings averaged: yes
data/embeddings/bioconceptvec_fasttext/README.md+59-41