Skip to content

Commit 8ba03d3

Browse files
committed
Added --no_PubMed option, tested, documentation updated.
1 parent 7d05406 commit 8ba03d3

13 files changed

+1137
-330
lines changed

README.rst

Lines changed: 70 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
11
Academic Tracker
22
================
3-
4-
.. image:: https://img.shields.io/pypi/v/academic_tracker.svg
5-
:target: https://pypi.org/project/academic_tracker
6-
:alt: Current library version
7-
8-
.. image:: https://img.shields.io/pypi/pyversions/academic_tracker.svg
9-
:target: https://pypi.org/project/academic_tracker
10-
:alt: Supported Python versions
11-
12-
.. image:: https://github.com/MoseleyBioinformaticsLab/academic_tracker/actions/workflows/build.yml/badge.svg
13-
:target: https://github.com/MoseleyBioinformaticsLab/academic_tracker/actions/workflows/build.yml
14-
:alt: Build status
15-
16-
.. image:: https://codecov.io/gh/MoseleyBioinformaticsLab/academic_tracker/branch/main/graphs/badge.svg?branch=main
17-
:target: https://codecov.io/gh/MoseleyBioinformaticsLab/academic_tracker
18-
:alt: Code coverage information
19-
20-
.. image:: https://img.shields.io/badge/DOI-10.1371%2Fjournal.pone.0277834-blue.svg
21-
:target: https://doi.org/10.1371/journal.pone.0277834
22-
:alt: Citation link
23-
24-
.. image:: https://img.shields.io/github/stars/MoseleyBioinformaticsLab/academic_tracker.svg?style=social&label=Star
25-
:target: https://github.com/MoseleyBioinformaticsLab/academic_tracker
26-
:alt: GitHub project
3+
..
4+
.. image:: https://img.shields.io/pypi/l/academic_tracker.svg
5+
:target: https://choosealicense.com/licenses/bsd-3-clause-clear/
6+
:alt: License information
7+
8+
.. image:: https://img.shields.io/pypi/v/academic_tracker.svg
9+
:target: https://pypi.org/project/academic_tracker
10+
:alt: Current library version
11+
12+
.. image:: https://img.shields.io/pypi/pyversions/academic_tracker.svg
13+
:target: https://pypi.org/project/academic_tracker
14+
:alt: Supported Python versions
15+
16+
.. image:: https://readthedocs.org/projects/nmrstarlib/badge/?version=latest
17+
:target: http://mwtab.readthedocs.io/en/latest/?badge=latest
18+
:alt: Documentation status
19+
20+
.. image:: https://github.com/MoseleyBioinformaticsLab/academic_tracker/actions/workflows/build.yml/badge.svg
21+
:target: https://github.com/MoseleyBioinformaticsLab/academic_tracker/actions/workflows/build.yml
22+
:alt: Build status
23+
24+
.. image:: https://codecov.io/gh/MoseleyBioinformaticsLab/academic_tracker/branch/master/graphs/badge.svg?branch=master
25+
:target: https://codecov.io/gh/MoseleyBioinformaticsLab/academic_tracker
26+
:alt: Code coverage information
27+
28+
.. image:: https://img.shields.io/badge/DOI-10.3390%2Fmetabo11030163-blue.svg
29+
:target: https://doi.org/10.3390/metabo11030163
30+
:alt: Citation link
31+
32+
.. image:: https://img.shields.io/github/stars/MoseleyBioinformaticsLab/academic_tracker.svg?style=social&label=Star
33+
:target: https://github.com/MoseleyBioinformaticsLab/academic_tracker
34+
:alt: GitHub project
2735
2836
|
2937
30-
Academic Tracker was created to automate the process of making sure that federally
38+
Academic Tracker was created to automate the process of making sure that NIH
3139
funded publications get listed on PubMed and that the grant funding source for
3240
them is cited.
3341

@@ -39,30 +47,24 @@ and return what relevant information is available from those sources.
3947

4048
The primary use case is to give the program a list of authors to find publications
4149
for. From this list of publications it can then be determined which ones need
42-
further action to be in compliance.
50+
further action to be in compliance with NIH.
4351

44-
A secondary use case for finding author's publications is to create a report of
45-
the collaborators they have worked with, and can be done by specifying the creation
46-
of that report in the configuration file. Details on reports are in the `documentation <https://moseleybioinformaticslab.github.io/academic_tracker/reporting.html>`__.
4752

48-
The other primary use case is to give the program a list of publication references
49-
to find information for.
5053

5154
Links
5255
~~~~~
5356

5457
* Academic Tracker @ GitHub_
5558
* Academic Tracker @ PyPI_
56-
* Documentation @ Pages_
59+
* Documentation @ ReadTheDocs_
5760

5861

5962
Installation
6063
~~~~~~~~~~~~
61-
The Academic Tracker package runs under Python 3.8+. Use pip_ to install.
62-
Starting with Python 3.4, pip_ is included by default. Be sure to use the latest
63-
version of pip as older versions are known to have issues grabbing all dependencies.
64-
Academic Tracker relies on sendmail to send emails, so if you need to use that
65-
feature be sure sendmail is installed and in PATH.
64+
The Academic Tracker package runs under Python 3.7+. Use pip_ to install.
65+
Starting with Python 3.4, pip_ is included by default. Academic Tracker relies
66+
on sendmail which is built into Linux to send emails, so it is only available for
67+
use there.
6668

6769

6870
Install on Linux, Mac OS X
@@ -73,28 +75,14 @@ Install on Linux, Mac OS X
7375
python3 -m pip install academic_tracker
7476
7577
76-
Install on Windows
77-
------------------
78-
79-
.. code:: bash
8078
81-
py -3 -m pip install academic_tracker
82-
8379
8480
Upgrade on Linux, Mac OS X
8581
--------------------------
8682

8783
.. code:: bash
8884
8985
python3 -m pip install academic_tracker --upgrade
90-
91-
92-
Upgrade on Windows
93-
------------------
94-
95-
.. code:: bash
96-
97-
py -3 -m pip install academic_tracker --upgrade
9886
9987
10088
@@ -107,30 +95,29 @@ case is simply:
10795
10896
academic_tracker author_search config_file.json
10997
98+
Example config files can be downloaded from the `example_configs <https://github.com/MoseleyBioinformaticsLab/academic_tracker>`_
99+
directory of the GitHub_.
100+
110101
Academic Tracker's behavior can be quite complex though, so it is highly encouraged
111-
to read the `guide <https://moseleybioinformaticslab.github.io/academic_tracker/guide.html>`_
112-
and `tutorial <https://moseleybioinformaticslab.github.io/academic_tracker/tutorial.html>`_.
102+
to read the :doc:`guide` and :doc:`tutorial`.
113103

114104

115105
Creating The Configuration JSON
116106
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
117107
A configuration JSON file is required to run Academic Tracker, but initially creating
118108
it the first time can be burdensome. Unfortunately, there is no easy solution for
119-
this. It is encouraged to read the configuration JSON section in `jsonschema <https://moseleybioinformaticslab.github.io/academic_tracker/jsonschema.html>`_
109+
this. It is encouraged to read the configuration JSON section in :doc:`jsonschema`
120110
and use the example there to create it initially. The add_authors command can help
121111
with building the Authors section if you already have a csv file with author
122-
information. A good tool to help track down pesky JSON syntax errors is `here <https://csvjson.com/json_validator>`__.
123-
There are also examples in the `example_configs <https://github.com/MoseleyBioinformaticsLab/academic_tracker/tree/main/example_configs>`__
124-
directory of the GitHub repo. There are also more example in the supplemental
125-
material of the paper https://doi.org/10.6084/m9.figshare.19412165.
112+
information. A good tool to help track down pesky JSON syntax errors is `here <https://csvjson.com/json_validator>`_.
126113

127114

128115
Registering With ORCID
129116
~~~~~~~~~~~~~~~~~~~~~~
130117
In order to have this program search ORCID you must register with ORCID and obtain
131-
a key and secret. Details on how to do that are `here <https://info.orcid.org/documentation/integration-guide/registering-a-public-api-client/>`__.
118+
a key and secret. Details on how to do that are `here <https://info.orcid.org/documentation/integration-guide/registering-a-public-api-client/>`_.
132119
If you do not want to do that then the --no_ORCID option can be used to skip searching
133-
ORCID, or don't include the ORCID_search section in the config file.
120+
ORCID.
134121

135122

136123
Mac OS Note
@@ -140,16 +127,17 @@ When you try to run the program on Mac OS you may get an SSL error.
140127
certificate verify failed: unable to get local issuer certificate
141128

142129
This is due to a change in Mac OS and Python. To fix it go to to your Python
143-
folder in Applications and run the Install Certificates.command shell command
144-
in the /Applications/Python 3.x folder. This should fix the issue.
130+
folder in Applications and run the Install Certificates.command shell command.
131+
This should fix the issue.
145132

146133

147134
Email Sending Note
148135
~~~~~~~~~~~~~~~~~~
149136
Academic Tracker uses sendmail to send emails, so any system it is going to be
150-
used on needs to have sendmail installed and the path in PATH. If you try to
151-
send emails without this the program will display a warning. This can be avoided
152-
by using the --test option though. The --test option blocks email sending. Email
137+
used on needs to have sendmail installed in /usr/sbin/sendmail. If you try to
138+
send emails without this the program will error. This can be avoided by using
139+
the --test option though. The --test option blocks email sending so the program
140+
can be ran just fine on systems without sendmail if that option is used. Email
153141
sending can also be avoided by leaving the from_email attribute out of the report
154142
sections of the configuration JSON file.
155143

@@ -173,12 +161,26 @@ are fuzzy matched using fuzzywuzzy which is why at least one author must also be
173161
matched. Author's are matched using last name and at least one affiliation.
174162

175163

164+
Troubleshooting Errors
165+
~~~~~~~~~~~~~~~~~~~~~~
166+
If you experience errors when running Academic Tracker the first thing to do is
167+
simply try again. Since Academic Tracker is communicating with multiple web sources
168+
it is not uncommon for a problem to occur with one of these sources. It might also
169+
be a good idea to wait several hours or the next day to try again if there is a communication
170+
issue with a particular source. You can also use the various "--no_Source" options
171+
for whatever source is causing an error. For example, if Crossref keeps having 504
172+
HTTP errors you can run with the --no_Crossref option. If the issue persists across
173+
multiple runs then try upgrading Academic Tracker's dependencies with
174+
"pip install --upgrade dependency_name". The list of dependencies is in the `guide <https://moseleybioinformaticslab.github.io/academic_tracker/guide.html>`_.
175+
176+
176177
License
177178
~~~~~~~
178-
This package is distributed under the BSD `license <https://moseleybioinformaticslab.github.io/academic_tracker/license.html>`__.
179+
This package is distributed under the BSD_ `license`.
179180

180181

181182
.. _GitHub: https://github.com/MoseleyBioinformaticsLab/academic_tracker
182-
.. _Pages: https://moseleybioinformaticslab.github.io/academic_tracker/
183+
.. _ReadTheDocs: http://academic_tracker.readthedocs.io
183184
.. _PyPI: https://pypi.org/project/academic_tracker
184-
.. _pip: https://pip.pypa.io
185+
.. _pip: https://pip.pypa.io
186+
.. _BSD: https://choosealicense.com/licenses/bsd-3-clause-clear/

docs/todo.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ Add PMCID and grants to pymed package.
1616

1717
Add expanded search to orcid package or look for more up to date package to use. Expanded search was added to ORCID's API with 3.0 release. orcid package appears to be 2.0 only.
1818

19+
Add capability to get the citations each paper cites.

docs/tutorial.rst

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Command Line Signature
2727
----------------------
2828
.. code-block:: console
2929
30-
academic_tracker author_search <config_json_file> [--test --prev_pub=<file-path> --no_GoogleScholar --no_ORCID --no_Crossref --verbose --silent]
30+
academic_tracker author_search <config_json_file> [--test --prev_pub=<file-path> --no_GoogleScholar --no_ORCID --no_Crossref --no_PubMed --verbose --silent]
3131
3232
3333
Description
@@ -76,23 +76,24 @@ to tracker-test-YYMMDDHHMM and prevents any emails from being sent.
7676

7777
Specifies a publications.json file to use as a list of publications to ignore
7878
when searching for new publications. Set to "ignore" to prevent author_search
79-
from automatically looking for a publications.json file in tracker directories.
80-
If a publication is in prev_pub but the information has updated then it will not
81-
be ignored.
79+
from automatically looking for a publications.json file in tracker directories.
8280

8381
--no_GoogleScholar:
8482

8583
If used author_search will not search Google Scholar for publications.
8684

8785
--no_ORCID:
8886

89-
If used author_search will not search ORCID for publications. This option is assumed
90-
if the ORCID_search section of the configuration JSON file is missing.
87+
If used author_search will not search ORCID for publications.
9188

9289
--no_Crossref:
9390

94-
If used author_search will not search Crossref for publications. This option is
95-
assumed if the Crossref_search section of the configuration JSON file is missing.
91+
If used author_search will not search Crossref for publications.
92+
93+
--no_PubMed:
94+
95+
If used author_search will not search PubMed for publications. This option is
96+
assumed if the PubMed_search section of the configuration JSON file is missing.
9697

9798
--verbose:
9899

@@ -360,7 +361,7 @@ Command Line Signature
360361
----------------------
361362
.. code-block:: console
362363
363-
academic_tracker reference_search <config_json_file> <references_file_or_URL> [--test --prev_pub=<file-path> --PMID_reference --MEDLINE_reference --no_Crossref --verbose --silent]
364+
academic_tracker reference_search <config_json_file> <references_file_or_URL> [--test --prev_pub=<file-path> --PMID_reference --MEDLINE_reference --no_Crossref --no_PubMed --verbose --silent]
364365
365366
366367
Description
@@ -425,8 +426,12 @@ Specifies that the reference file is a MEDLINE_ formatted file.
425426

426427
--no_Crossref:
427428

429+
If used reference_search will not search Crossref for publications.
430+
431+
--no_PubMed:
432+
428433
If used reference_search will not search Crossref for publications. This option
429-
is assumed if the Crossref_search section of the configuration JSON file is missing.
434+
is assumed if the PubMed_search section of the configuration JSON file is missing.
430435

431436
--verbose:
432437

src/academic_tracker/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,8 @@
3939
This module contains general functions for interfacing with the internet.
4040
4141
"""
42-
__version__ = "1.0.3"
42+
<<<<<<< Updated upstream:academic_tracker/__init__.py
43+
__version__ = "1.0.0"
44+
=======
45+
__version__ = "1.0.4"
46+
>>>>>>> Stashed changes:src/academic_tracker/__init__.py

0 commit comments

Comments
 (0)