This is very rough code for identifying keywords in PubMed abstracts. Collaborations to improve the generaility of the code are welcomed.
- Open https://pubmed.ncbi.nlm.nih.gov/
- Type in search terms
- Set filters, e.g. publication date
- Save citations to file - be sure to choose Abstract (text) as the format
- Create file to be used in dashboard
- Launch cmd prompt
- Change directory
- Type streamlit run TextDashboard.py
- Enter the path to your folder containing text files in the box
- Change any defined keywords and/or custom stopwords
- To obtain the keyword frequency, keywords have been pre-defined as set1 = "muscle contraction, excitation-contraction coupling, neuromuscular junction, energy metabolism, extracellular matrix, cytoskeleton, inflammation, hypertrophy, atrophy, fibre type" and set2 = "model, code, human, male, female, species, in-vitro, in-vivo, ex-vivo, parameter". These can be modified in the script and/or changed on the dashboard. Additional keywords can be entered.
- To prevent searching for commonly used words, custom stopwords have been pre-defined as "study, using, based, doi, university, results, used, activity, test, science, method, analysis, institute, institution, department, conclusion, a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0".
- DataFrame features include: Title, Authors, Author Information, Abstract, DOI, PMID.
- Duplicates are identified and removed based on DOI.

