This script run a PubMed-Comorbidities pipeline using the following characteristics:
In [10]:
#Settings
const mh = "Anemia"
const concepts = ("Disease or Syndrome", "Mental or Behavioral Dysfunction", "Neoplastic Process");
In [11]:
using Revise #used during development to detect changes in module
using PubMedMiner
@time occurrence_df = get_semantic_occurrences_df(mh, concepts...);
In [12]:
@time stats = mesh_stats(occurrence_df, 20);
In [13]:
PubMedMiner.plot_bar_topn(stats.topn_mesh_labels, stats.topn_mesh_counts)
Out[13]:
In [14]:
PubMedMiner.plot_stat_mat(stats.corrcoef, stats.topn_mesh_labels)
Out[14]:
In [15]:
PubMedMiner.plot_stat_mat(stats.pmi_sp, stats.topn_mesh_labels)
Out[15]:
In [16]:
PubMedMiner.plot_chord_coo(stats.top_coo_sp, stats.topn_mesh_labels)
Out[16]:
In [17]:
PubMedMiner.plot_sankey_arules(stats.sankey_sources, stats.sankey_targets, stats.sankey_vals, stats.mesh_names)
Out[17]: