# Client for the 'UniTCM' Traditional Chinese Medicine Platform

## Documentation for package ‘unitcm’ version 0.1.2

- DESCRIPTION file.
- User guides, package vignettes and other documentation.
- Package NEWS.

## Help Pages

aggregated_target2np | Aggregated Target2NP view across data sources
as_igraph | Convert a NetVis graph response to igraph
as_tidygraph | Convert a NetVis graph response to tidygraph
autocomplete_disease | Autocomplete disease names (MIDAS)
batch_target2np | Batch query Target2NP by identifier list
build_formula_herb_network | Build a Formula-Herb network
build_hct_network | Build an Herb-Compound-Target network
clear_api_key | Clear the UniTCM API Key
clear_unitcm_token | Clear the UniTCM API token
convert_gene_ids | Convert gene identifiers (MIDAS)
detect_communities | Detect communities in a graph
export_compounds | Export compounds to CSV
export_compound_module | Export compound data by module
export_datasets | Export datasets to CSV
export_herbs | Export herbs to CSV
export_herb_compounds | Export herb compounds to CSV
export_ontology | Export the TCM ontology
fetch_compound_facets | Get compound facets and statistics
fetch_dataset_facets | Get dataset facets
fetch_dataset_stats | Get TCMomics database statistics
fetch_disease_tree | Get the ICD-11 disease classification tree
fetch_herb_facets | Get herb filter facets
fetch_home_stats | Get homepage statistics
fetch_latest_submissions | Get latest submissions
fetch_mechanism_filters | Get mechanism filter options
fetch_midas_sources | Get MIDAS data sources
fetch_midas_stats | Get MIDAS statistics
fetch_netvis_stats | Get NetVis network statistics
fetch_omics_type_stats | Get omics type statistics
fetch_ontology_stats | Fetch ontology statistics
fetch_ontology_tree | Fetch the TCM ontology tree
fetch_target2np_filters | Fetch Target2NP filter options
fetch_target2np_stats | Fetch Target2NP database statistics
fetch_tcm_classification_stats | Get TCM classification statistics
fetch_transcriptome_filters | Get transcriptome filter options
fetch_transcriptome_stats | Get Transcriptome Hub statistics
find_path | Find shortest path between two nodes
flatten_response | Flatten a nested API response to a tibble
get_analysis_data | Get analysis data for a transcriptome dataset
get_analysis_modules | List available analysis modules for a dataset
get_api_key | Get the UniTCM API Key
get_base_url | Get the UniTCM API base URL
get_compound | Get a single compound by ID
get_compound_admet | Get ADMET predictions for a compound
get_compound_herbs | Get herbs containing a compound
get_compound_targets | Get predicted targets for a compound
get_dataset | Get a single dataset by submission ID
get_formula | Get a single formula by order ID
get_formula_doses | Get herb doses for a formula
get_herb | Get a single herb by ID
get_herb_compounds | Get compounds for a herb
get_mechanism | Get a single mechanism term by ID
get_neighbors | Get neighbors of a node
get_node_detail | Get node detail
get_node_metrics | Get node metrics
get_ontology_ancestors | Get ancestors of an ontology entity
get_ontology_by_level | Get ontology entities by level
get_ontology_children | Get children of an ontology entity
get_ontology_descendants | Get all descendants of an ontology entity
get_ontology_entity | Get a TCM ontology entity
get_similar_datasets | Get similar datasets
get_subgraph | Get subgraph for a set of nodes
get_target2np | Get a single Target2NP interaction record
get_term | Get a single term by ID
get_transcriptome | Get a single transcriptome dataset
get_unitcm_token | Get the UniTCM API token
list_book_sources | List book sources
list_dosage_forms | List dosage forms
list_ontology_categories | List top-level ontology categories
list_origin_sources | List origin sources
list_term_categories | List term categories
list_term_sources | List term sources
plot_compound_radar | Plot compound physicochemical radar chart
plot_enrichment | Plot enrichment results
plot_network | Plot a network graph
query_disease_enrichment | Disease enrichment analysis (MIDAS)
query_disease_genes | Query disease-to-gene associations (MIDAS)
query_disease_intersection | Find disease intersection (MIDAS)
query_gene_diseases | Query gene-to-disease associations (MIDAS)
query_source_comparison | Compare gene-disease sources (MIDAS)
search_compounds | Search compounds in the Ingredient Explorer
search_datasets | Search TCMomics datasets
search_formulas | Search formulas in the Disease-Formula Atlas
search_herbs | Search herbs in the Herb Explorer
search_mechanisms | Search terms molecular mechanisms
search_netvis | Search NetVis nodes
search_ontology | Search the TCM Ontology
search_ontology_mapping | Search ontology external mapping
search_target2np | Search Target2NP compound-target interactions
search_target2np_drugclip | Search DrugCLIP predicted compound-target interactions
search_target2np_sea | Search SEA (ChEMBL similarity) predicted compound-target interactions
search_terms | Search TCM bilingual corpus terms
search_transcriptomes | Search transcriptome datasets
set_api_key | Set a UniTCM API Key
set_base_url | Set the UniTCM API base URL
set_unitcm_token | Set a UniTCM API token
target2np_multi_source_summary | Multi-source summary for a Target2NP query
unitcm_cache_clear | Clear unitcm cache