|
Download data/embeddings/bioconceptvec_fasttext/README.md from BoevaLab/Gene-Embedding-Hub-dataset: direct link, hf CLI and curl.
- Browser
- Download file 4.92 kB
-
https://huggingface.co/datasets/BoevaLab/Gene-Embedding-Hub-dataset/resolve/main/data/embeddings/bioconceptvec_fasttext/README.md
- Command line
-
hf download hf://datasets/BoevaLab/Gene-Embedding-Hub-dataset/data/embeddings/bioconceptvec_fasttext/README.md
-
curl -L -o README.md https://huggingface.co/datasets/BoevaLab/Gene-Embedding-Hub-dataset/resolve/main/data/embeddings/bioconceptvec_fasttext/README.md
4.92 kB
| # Embedding name: BioConceptVec-fastText | |
| - Modality: Biomedical literature / text | |
| - Embedding source 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` | |
| ## Detailed processing notes | |
| ### Source and interpretation | |
| This embedding represents BioConceptVec gene concepts using the fastText training variant. | |
| ### Provenance fields | |
| source_name: BioConceptVec-fastText | |
| original_model_or_method: BioConceptVec-fastText | |
| input_data_type: BioConceptVec concept JSON | |
| raw_source: ~/data/raw_embeddings/bioconceptvec/concept_fast.json | |
| processing_script: ~/scripts/process_embeddings/process_bioconceptvec_fasttext_v1_1.py | |
| source_download_page: https://github.com/ncbi/BioConceptVec | |
| source_code_page: https://github.com/ncbi/BioConceptVec | |
| source_identifier_type: Gene_<Entrez> concept key | |
| mapping_identifier_type: strict single-Entrez mapping to master_gene_table.csv | |
| source_rows_or_entries: 402,712 total concepts; 126,751 single-Entrez gene concepts | |
| final_mapped_genes: 17,040 | |
| model_or_feature_dimension: 100 | |
| training_or_finetuning: none | |
| final_embedding_dtype: float32 | |
| ### Mapping and processing decisions | |
| Only BioConceptVec gene concepts with a single Entrez identifier were used. Non-gene concepts, multi-Entrez concepts, and ambiguous Entrez IDs were excluded. Accepted Entrez IDs were mapped through map_entrez_ids_all in the enriched master table. Duplicate source rows mapping to the same final gene were averaged. | |
| ### Processing workflow | |
| For 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. | |
| ### Summary of final mapping: | |
| Source identifiers / source rows or entries: 402,712 total concepts; 126,751 single-Entrez gene concepts | |
| Dimensions: 100 | |
| Final mapped genes: 17,040 | |
| Master table rows: 20,097 | |
| Master coverage: 84.79% | |
| Mapping strategy: strict single-Entrez mapping to master_gene_table.csv | |
| Ambiguous identifiers: excluded | |
| Duplicate final mappings averaged: yes | |
| <!-- BEGIN CATALOG NORMALIZATION: LEGACY METADATA --> | |
| ## Processing and provenance metadata | |
| This section preserves information moved out of `metadata.json` during catalog normalization. The loading-facing metadata is intentionally compact; detailed source, mapping, processing, quality-control, and reproducibility records remain here. | |
| Source catalog commit: `ab37742040d20b523aebd188d3079871a0c2b534`. | |
| ### Canonicalized field names | |
| | Previous field | Compact metadata field | | |
| | --- | --- | | |
| | `embedding_name` | `display_name` | | |
| | `mapping_strategy` | `mapping_method` | | |
| | `num_genes` | `n_genes` | | |
| | `embedding_dimension` | `n_dimensions` | | |
| | `matrix_shape[0]` | `n_genes` | | |
| | `matrix_shape[1]` | `n_dimensions` | | |
| | `dtype_saved` | `dtype` | | |
| ### Derived standardized fields | |
| - `species` was set to `Homo sapiens` from the validated human Ensembl `ENSG` identifier namespace. | |
| - `master_coverage_fraction` was computed as `n_genes / 20097`. | |
| ### Legacy processing and provenance record | |
| ```json | |
| { | |
| "all_zero_rows": { | |
| "count": 0, | |
| "documented": true, | |
| "expected": false, | |
| "reason": "No exact all-zero rows were detected in embeddings.npz.", | |
| "report_file": null | |
| }, | |
| "ambiguous_source_rows": "excluded and reported", | |
| "coverage_of_master_rows": 0.8478877444394686, | |
| "duplicate_source_rows": "averaged when multiple source rows mapped to the same master gene", | |
| "embedding_dim": 100, | |
| "former_processing_embedding_id": "bioconceptvec_fasttext_v1_1", | |
| "multi_entrez_gene_concepts": "excluded and reported", | |
| "n_ambiguous_source_rows_excluded": 32, | |
| "n_bad_gene_concepts_excluded": 1, | |
| "n_genes_added_vs_strict_v1": 1, | |
| "n_genes_lost_vs_strict_v1": 1, | |
| "n_invalid_dim_source_rows_skipped": 0, | |
| "n_mapped_genes": 17040, | |
| "n_mapped_source_rows": 17042, | |
| "n_master_rows": 20097, | |
| "n_multi_entrez_gene_concepts_excluded": 17832, | |
| "n_non_gene_concepts_skipped": 258128, | |
| "n_nonfinite_source_rows_skipped": 0, | |
| "n_single_entrez_gene_concepts": 126751, | |
| "n_total_concepts_raw": 402712, | |
| "n_unmapped_source_rows": 109677, | |
| "n_zero_vectors": 0, | |
| "public_file_structure": { | |
| "embeddings": "embeddings.npz", | |
| "genes": "genes.tsv", | |
| "metadata": "metadata.json", | |
| "readme": "README.md" | |
| } | |
| } | |
| ``` | |
| <!-- END CATALOG NORMALIZATION: LEGACY METADATA --> | |