MeSH-ID auf MeSH-Term mit Python mappen
English
Deutsch
Unser MeSH-JSON Projekt bietet eine vorkompilierte MeSH-ID-zu-Term-Map als JSON:
Hier herunterladen oder diesen Befehl zum Herunterladen verwenden:
download_mesh_json.sh
wget "https://techoverflow.net/downloads/mesh.json.gz"Verwendung in Python:
mesh_load_example.py
#!/usr/bin/env python3
import json
import gzip
# Wie man lädt
with gzip.open("mesh.json.gz", "rb") as infile:
mesh_id_to_term = json.load(infile)
# Verwendungsbeispiel
print(mesh_id_to_term["D059630"]) # Prints 'Mesenchymal Stem Cells'Check out similar posts by category:
Bioinformatics, Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow