You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<h1align="center"style="border-bottom: none;">🚀 Literature Survey</h1>
6
+
<h1align="center"style="border-bottom: none;">🔍 An automated literature survey tool</h1>
7
7
8
-
Welcome to Team VPE's Literature Survey Template Repository! 📚✨ This repository provides you with a quick setup to create your very own automated literature survey website using Semantic Scholar's [Recommendation API](https://api.semanticscholar.org/api-docs/recommendations), and provides an option to import the recommended articles to your [Zotero](https://www.zotero.org/) account.
8
+
Welcome to [Team VPE](https://github.com/VirtualPatientEngine)'s Literature Survey Template Repository! 📚✨ This repository:
9
+
1. Describes a quick setup to create your very own automated literature survey website using Semantic Scholar's [Recommendation API](https://api.semanticscholar.org/api-docs/recommendations).
10
+
2. Offers an option to import the recommended articles to your [Zotero](https://www.zotero.org/) account.
11
+
3. Runs itself automatically every Monday morning to fetch a new list of recommended articles.
9
12
10
-
### Types of Recommendations
13
+
To know more about what Team VPE does, checkout our [GitHub page](https://github.com/VirtualPatientEngine), or even better, follow us by clicking the `Follow` button on our [GitHub page](https://github.com/VirtualPatientEngine)! 😊
14
+
15
+
If you find our literature survey tool helpful and enjoy using it, we'd really appreciate it if you could give our repository a ⭐️! Your support helps us continue to improve and grow. Thank you! 😊
16
+
17
+
### Table of Contents 📋
18
+
1.[Recommendation types](#-recommendation-types)
19
+
2.[Usage](#-usage)
20
+
3.[Getting Started for Non Developers](#-getting-started-for-non-developers)
21
+
4.[Getting Started for Developers](#-getting-started-for-developers)
22
+
5.[Bugs or Feature Requests](#-bugs-or-feature-requests)
23
+
24
+
### 💡 Recommendation types
11
25
Semantic Scholar provides 2 types of recommendations:
12
26
13
-
1.```Single-paper recommendations```: Each article you provide will be used to generate recommendations specifically for that article.
14
-
2.```List-based recommendations```: Up to 10 articles related to the topic will be selected as positive articles. Additional articles may be provided beyond this count but they shall not be considered to retrieve the recommendations. Negative articles will be selected by sampling the top N articles from other topics, ensuring that the total number of sampled articles is 10 and equal from each topic whenever possible. These positive and negative articles will be used to retrieve recommendations from Semantic Scholar.
27
+
1.```Single-paper recommendations```: Each article you provide will be used to generate AI-based recommendations specifically for that article.
28
+
2.```Category-based recommendations```: Every category of articles you provide will used to generate AI-based recommendations specifically for that list. If you choose to define more than one category, our tool will treat all articles within a specific category as positives, and all remaining articles from other categories as negatives. Our tool will next use these articles to generate recommendations for the articles within that category. This method is particularly useful if you are interested in dividing a broad topic into different categories and want our tool to fine-tune and generate recommendations for each category.
15
29
16
-
### Example Usage
17
-
For demonstration purposes, this template repository uses some of the articles related to the simulator module of Team VPE as an example. You can easily customize it to your own fields of interest by following the steps outlined below. To see how the automated literature survey repo looks like, visit this [link](https://virtualpatientengine.github.io/literatureSurvey).
30
+
### 🚀 Usage
31
+
For demonstration purposes, this template repository uses articles related to time-series simulations as an example. You can easily customize it to your own fields of interest by following the steps outlined below. To see how the automated literature survey repo looks like, visit this [link](https://virtualpatientengine.github.io/literatureSurvey).
18
32
19
33
Let's dive in and set up your own literature survey adventure!
20
34
21
-
### Getting Started
22
-
Follow these simple steps to set up your literature survey website:
35
+
### 🎨 Getting Started for Non Developers
36
+
_Jump to the next section if you are a developer_
37
+
1. Prepare a ```query.tsv``` file with 3 columns:
38
+
- Under the `Title` column, give titles to your topics. It is mandatory to define at least one topic.
39
+
- Under the `Use` column, write <kbd>1</kbd> if you want to use the article for recommendations or <kbd>0</kbd> if you just want to display the article on the website without using it to generate recommendations.
40
+
- Under the `URL` column, specify the corresponding URLs to [Semantic Scholar](https://www.semanticscholar.org/) articles. Only one line per artticle. You may assign more than articles to a topic.
41
+
42
+
2. Navigate to the data folder in the repository by clicking ```app > data``` on the GitHub page.
43
+

44
+
45
+
3. Click on the dropdown `Add file` followed by ```Upload files``` buttons.
46
+

47
+
48
+
4. Upload the ```query.tsv``` file that you have prepared. Under the header ```Commit changes```, in the first field (_Add files via upload_), type ***feat: new query.tsv***, and press the blue-colored ```Commit changes``` button at the bottom of the page.
49
+
50
+
5. This will trigger a workflow to update the literature survey, and can take a few minutes. You should be able to see a brown-colored circle on your main GitHub page. This means that the workflow is still running. Once that goes away, your website is up and running.
51
+
.
52
+
53
+
6. To view your website, click on the gear button (top-right) and a menu to edit your repository details will open up. Check the `Use your GitHub Pages website` checkbox to make your website appear in the `Website` field above. This the URL to your website. Bookmark the website or come back to your website's GitHub page in case you forget the URL.
54
+

55
+
56
+
If you find our literature survey tool helpful and enjoy using it, we'd really appreciate it if you could give our repository a ⭐️! Your support helps us continue to improve and grow. Thank you! 😊
57
+
58
+

23
59
24
-
1. Click on the ```Use this template``` button to create your own repository based on this template. If you would like to access your repository via URL, please make created repository public.
60
+
### 🧑💻 Getting Started for Developers
61
+
Follow these simple steps (_requires the knowledge of at least python_) to set up your literature survey website:
25
62
26
-
2. Open up the ```app/data/query.tsv```file in your favorite code editor or Excel.
63
+
1. Click on the ```Use this template```button to create your own repository based on this template, and clone it on your system.
27
64
28
-
3. Under the `Title` column, give titles to your topics. Under the `Use` column, write <kbd>1</kbd> if you want to use the article for recommendations or <kbd>0</kbd> if you just want to display the article. **Under the URL column, specify the corresponding URLs to [Semantic Scholar](https://www.semanticscholar.org/) article.** Submit your edited file by clicking on `Commit changes...`. In the `Commit message` add a prefix by using one of these keywords **feat:, fix: or chore:**, e.g., "feat: added one paper". After committing changes to the `main` branch directly, the workflows should start automatically.
65
+
2. Navigate and open up the ```app/data/query.tsv``` file in your favorite code editor or Excel.
29
66
30
-
4. (Optional) Create a venv:
67
+
3. Set up the file as described below:
68
+
- Under the `Title` column, give titles to your topics. It is mandatory to define at least one topic.
69
+
- Under the `Use` column, write <kbd>1</kbd> if you want to use the article for recommendations or <kbd>0</kbd> if you just want to display the article on the website without using it to generate recommendations.
70
+
- Under the `URL` column, specify the corresponding URLs to [Semantic Scholar](https://www.semanticscholar.org/) articles. Only one line per artticle. You may assign more than articles to a topic.
71
+
72
+
_❗ Please note that if you are familiar with [git](https://git-scm.com/), you may also choose to commit the query.tsv file using git commands from your local machine. Remember to prepare the commit message as described below._
73
+
74
+
4. Create a virtual environment:
31
75
```
32
76
> python -m venv env
33
77
# On Windows
@@ -37,26 +81,26 @@ Follow these simple steps to set up your literature survey website:
37
81
> source env/bin/activate
38
82
```
39
83
40
-
5.(Optional) Install all the necessary requirements:
84
+
5. Install all the necessary requirements:
41
85
```
42
86
> pip3 install -r requirements.txt
43
87
```
44
88
45
-
6.(Optional) It's time to fetch some literature! Run the ```literature_fetch_recommendation_api.py``` script to grab the recommended articles from Semantic Scholar:
89
+
6. It's time to fetch some literature! Run the ```literature_fetch_recommendation_api.py``` script to grab the recommended articles from Semantic Scholar:
46
90
```
47
91
> cd app/code
48
92
> python3 literature_fetch_recommendation_api.py
49
93
```
50
94
51
-
7.(Optional) Now, fire up MkDocs locally to view the recommended articles:
95
+
7. Now, fire up MkDocs locally to view the recommended articles:
52
96
```
53
97
> mkdocs serve
54
98
```
55
99
Head over to the localhost link that pops up in your terminal.
56
100
57
101
8. This repository includes a `mkdocs-deploy.yml`[workflow](https://github.com/VirtualPatientEngine/literatureSurvey/blob/main/.github/workflows/mkdocs-deploy.yml) that uses GitHub Actions to automatically execute the specified script **once a week** and deploy the literature survey system as a [GitHub Pages website](https://virtualpatientengine.github.io/literatureSurvey/). Feel free to edit to based on your project needs or use it as it is.
58
102
59
-
> To host your literature survey system online, you must place the YML file in the `.github/workflows/` folder. Once you have pushed you code to GitHub, under the [Actions](https://github.com/VirtualPatientEngine/literatureSurvey/actions) tab, you'll find the ongoing `mkdocs-deploy.yml` workflow (this might take even 1h or more depending on the current workload of compute servers and length of the publication list). Once this workflow finishes, head over to the [Settings/Pages](https://github.com/VirtualPatientEngine/literatureSurvey/settings/pages) tab. From there, choose `Deploy from a branch` in the Source section. Under the Branch subsection, select `gh-pages` and root from the dropdown menus, then click `Save`.
103
+
> To host your literature survey system online, you must place the YML file in the `.github/workflows/` folder. Once you have pushed you code to GitHub, under the [Actions](https://github.com/VirtualPatientEngine/literatureSurvey/actions) tab, you'll find the ongoing `mkdocs-deploy.yml` workflow (this might take up to 1h depending on the current workload of compute servers and length of the publication list). Once this workflow finishes, head over to the [Settings/Pages](https://github.com/VirtualPatientEngine/literatureSurvey/settings/pages) tab. From there, choose `Deploy from a branch` in the Source section. Under the Branch subsection, select `gh-pages` and root from the dropdown menus, then click `Save`.
60
104
61
105
9. Under `About` section of your repository, head to the gear symbol and check the box `Use your GitHub Pages website` and `Save changes`. You will see an URL to your literature survey repository under `About` section of the `Code` tab.
62
106
@@ -66,8 +110,25 @@ Head over to the localhost link that pops up in your terminal.
66
110
67
111
12. (Optional) Edit custom.css if you'd like to change the styling of web pages.
68
112
69
-
### Zotero Plugin
70
-
If you'd like to read the recommended articles in your Zotero Account:
113
+
13. Commit your code:
114
+
```
115
+
> git add .
116
+
> git commit -m 'feat: update list of articles'
117
+
> git push origin main
118
+
```
119
+
120
+
14. This will trigger a workflow to update the literature survey, and can take a few minutes. You should be able to see a brown-colored circle on your main GitHub page. This means that the workflow is still running. Once that goes away, your website is up and running.
121
+
122
+
.
123
+
124
+
15. To view your website, click on the gear button (top-right) and a menu to edit your repository details will open up. Check the `Use your GitHub Pages website` checkbox to make your website appear in the `Website` field above. This the URL to your website. Bookmark the website or come back to your website's GitHub page in case you forget the URL.
125
+

126
+
If you find our literature survey tool helpful and enjoy using it, we'd really appreciate it if you could give our repository a ⭐️! Your support helps us continue to improve and grow. Thank you! 😊
127
+
128
+

129
+
130
+
### 🔖 Zotero Plugin
131
+
If you'd like to read the recommended articles in your own [Zotero](https://www.zotero.org/) Account:
71
132
1. Create an account with Zotero
72
133
2. Under the `Settings` tab in your GitHub repo, click on `Secrets and variables`, and select `Actions`
73
134
3. Set the following `Repository secrets`:
@@ -76,7 +137,9 @@ If you'd like to read the recommended articles in your Zotero Account:
76
137
-`TEST_COLLECTION_KEY` as your collection's key (enter `https://api.zotero.org/groups/<LIBRARY_ID>/collections?key=<ZOTERO_API_KEY>` in your browser to view all the collections in your group; choose the key of the collection in which you'd like the recommended articles to be sotred)
77
138
4. The changes take effect only when the code is re-run. This can happen either the next time the code is scheduled for a run (Mondays) or under the `Actions` tab, select `mkdocs-deploy` from the left panel, and click on `Run workflow`.
78
139
79
-
### Bugs? Feature Requests?
140
+
_❗ Please note that this tool will keep pushing new recommendations on a weekly basis to your Zotero account. You may have to clear out/empty the collection every week to avoid surplus of articles._
141
+
142
+
### 🐞 Bugs or Feature Requests
80
143
If you encounter any bugs or have brilliant ideas for new features, please head over to the [Issues](https://github.com/VirtualPatientEngine/literatureSurvey/issues) and let us know.
0 commit comments