PubTrends is an interactive scientific literature exploration tool that helps researchers analyze topics, visualize research trends, and discover related works.
With PubTrends, you can:
- Gain a concise overview of your research area.
- Explore popular trends and impactful publications.
- Discover new and promising research directions.
- Pubmed ~40 mln papers and 450 mln citations
- Semantic Scholar 170 mln papers and 600 mln citations
PubTrends is a Python / Kotlin + JavaScript web service with a PostgreSQL backend and Whoosh full-text search. It uses:
- Languages: Python + Kotlin + JavaScript
- Backend: Nginx + Flask + Gunicorn
- Task Queue: Celery + Redis
- DataBase: Postgres + Postgres pgvector + Psycopg2 + Kotlin ORM
- Text Search: Whoosh (BM25 full-text indexing for titles, abstracts, keywords, and MeSH terms)
- Semantic Search: Sentence-Transformers + Faiss
- Data Analysis: Pandas, NumPy, Scikit-learn
- NLP: NLTK, SpaCy, GenSim, Fasttext
- Visualization: Bokeh, Holoviews, Seaborn, Matplotlib
- Frontend: Bootstrap, jQuery, Cytoscape.js
- Deployment: Docker Compose
- Testing: PyTest + Testcontainers + Flake8 + JUnit + TeamCity
When the MeSH vocabulary is available, simple PubMed searches automatically expand to include synonyms and narrower terms; Semantic Scholar searches remain literal. See DATABASE.md for vocabulary updates and configuration.
See pyproject.toml for the full list of libraries used in the project.
For detailed information, see:
- DATABASE.md - Database setup, text search indexing, and data loading
- DEVELOPMENT.md - Development environment, testing, and deployment
- CHANGES.md - Version history and changelog
-
Copy and modify
config.propertiesto~/.pubtrends/config.propertieswith your database credentials and index paths (pm_lucene_index_path,ss_lucene_index_path). -
Set up the database and search indexes - see DATABASE.md for detailed instructions.
-
Build the project JAR package:
./gradlew clean shadowJar
-
Run the comprehensive update pipeline (fetches publications, syncs BM25 text search index, computes embeddings, and updates FAISS vector indexes):
./update.sh
-
Set up development or production web services - see DEVELOPMENT.md for detailed instructions.
See AUTHORS.md for a list of authors and contributors.
-
Shpynov, O. and Kapralov, N., 2021, August. PubTrends: a scientific literature explorer. In Proceedings of the 12th ACM Conference on Bioinformatics, Computational Biology, and Health Informatics (pp. 1-1). https://doi.org/10.1145/3459930.3469501
Here’s how you can help:
- ⭐ Star this repo, help others to discover it
- 🐛 Found a bug? Open an issue
- 💡 Have an idea? Feel free to submit a feature request or a PR
- 👍 Upvote issues you care about, help us prioritize
