77 [--no-ORCID --no_ORCID]
88 [--no-Crossref --no_Crossref]
99 [--no-PubMed --no_PubMed]
10- [--citation-match-ratio=<0-100>]
1110 [--verbose --silent]
1211 academic_tracker reference_search <config_json_file> <references_file_or_URL> [--test]
1312 [--prev-pub=<file-path> --prev_pub=<file-path>]
1615 [--MEDLINE-reference --MEDLINE_reference]
1716 [--no-Crossref --no_Crossref]
1817 [--no-PubMed --no_PubMed]
19- [--citation-match-ratio=<0-100>]
2018 [--verbose --silent]
2119 academic_tracker find_ORCID <config_json_file> [--verbose --silent]
2220 academic_tracker find_Google_Scholar <config_json_file> [--verbose --silent]
3937 Enter "ignore" for the <file_path> to not look for previous publications.json files in tracker directories.
4038 --prev_pub=<file-path> Deprecated. Use --prev-pub instead.
4139 --save-all-queries Save all queried results from each source in "all_results.json".
42- --citation-match-ratio=<num> An integer from 0-100. The threshold to consider 2 citations the same using fuzzy matching. Lower is more forgiving. [default: 65]
4340
4441Reference Type Options:
4542 --PMID-reference Indicates that the reference_file is a PMID file and only PubMed info will be returned.
@@ -112,8 +109,7 @@ def main():
112109 args ["--no_PubMed" ] or args ["--no-PubMed" ],
113110 args ["--test" ],
114111 args ["--prev-pub" ] if args ["--prev-pub" ] else args ["--prev_pub" ],
115- args ["--save-all-queries" ],
116- args ["--citation-match-ratio" ])
112+ args ["--save-all-queries" ])
117113 elif len (sys .argv ) > 1 and sys .argv [1 ] == "reference_search" :
118114 if args ["--PMID_reference" ] or args ["--PMID-reference" ]:
119115 PMID_reference (args ["<config_json_file>" ], args ["<references_file_or_URL>" ], args ["--test" ])
@@ -125,8 +121,7 @@ def main():
125121 args ["--no_PubMed" ] or args ["--no-PubMed" ],
126122 args ["--test" ],
127123 args ["--prev-pub" ] if args ["--prev-pub" ] else args ["--prev_pub" ],
128- args ["--save-all-queries" ],
129- args ["--citation-match-ratio" ])
124+ args ["--save-all-queries" ])
130125 elif len (sys .argv ) > 1 and sys .argv [1 ] == "find_ORCID" :
131126 find_ORCID (args ["<config_json_file>" ])
132127 elif len (sys .argv ) > 1 and sys .argv [1 ] == "find_Google_Scholar" :
@@ -151,7 +146,7 @@ def main():
151146
152147
153148def author_search (config_json_filepath , no_ORCID , no_GoogleScholar , no_Crossref , no_PubMed ,
154- test , prev_pub_filepath , save_all_results , citation_match_ratio ):
149+ test , prev_pub_filepath , save_all_results ):
155150 """Query sources for publications by author.
156151
157152 Reads in the JSON config file, previous publications JSON file, and checks for errors.
@@ -169,11 +164,10 @@ def author_search(config_json_filepath, no_ORCID, no_GoogleScholar, no_Crossref,
169164 test (bool): If True save_dir_name is tracker-test instead of tracker- and emails are not sent.
170165 prev_pub_filepath (str or None): filepath to the publication JSON to read in.
171166 save_all_results (bool): if True, save all of the queried publications from each source as "all_results.json"
172- citation_match_ratio (int): if the fuzzy ratio between 2 citations is greater than or equal to this, then consider them to match.
173167 """
174168
175169 config_dict = athr_srch_modularized .input_reading_and_checking (config_json_filepath , no_ORCID , no_GoogleScholar ,
176- no_Crossref , no_PubMed , citation_match_ratio )
170+ no_Crossref , no_PubMed )
177171
178172 ## Create an authors_json for each project in the config_dict and update those authors attributes with the project attributes.
179173 authors_by_project_dict , config_dict = athr_srch_modularized .generate_internal_data_and_check_authors (config_dict )
@@ -184,7 +178,7 @@ def author_search(config_json_filepath, no_ORCID, no_GoogleScholar, no_Crossref,
184178 user_input_checking .prev_pubs_file_check (prev_pubs )
185179
186180 ## Query sources and build publication_dict.
187- publication_dict , all_queries = athr_srch_modularized .build_publication_dict (config_dict , prev_pubs , no_ORCID , no_GoogleScholar , no_Crossref , no_PubMed , citation_match_ratio )
181+ publication_dict , all_queries = athr_srch_modularized .build_publication_dict (config_dict , prev_pubs , no_ORCID , no_GoogleScholar , no_Crossref , no_PubMed )
188182
189183 save_dir_name = athr_srch_modularized .save_and_send_reports_and_emails (authors_by_project_dict , publication_dict , config_dict , test )
190184
@@ -199,7 +193,7 @@ def author_search(config_json_filepath, no_ORCID, no_GoogleScholar, no_Crossref,
199193
200194
201195def reference_search (config_json_filepath , ref_path_or_URL , MEDLINE_reference , no_Crossref , no_PubMed ,
202- test , prev_pub_filepath , save_all_results , citation_match_ratio ):
196+ test , prev_pub_filepath , save_all_results ):
203197 """Query PubMed and Crossref for publications matching a reference.
204198
205199 Read in user inputs and check for error, query sources based on inputs, build
@@ -214,12 +208,14 @@ def reference_search(config_json_filepath, ref_path_or_URL, MEDLINE_reference, n
214208 test (bool): If True save_dir_name is tracker-test instead of tracker- and emails are not sent.
215209 prev_pub_filepath (str or None): filepath to the publication JSON to read in.
216210 save_all_results (bool): if True, save all of the queried publications from each source as "all_results.json"
217- citation_match_ratio (int): if the fuzzy ratio between 2 citations is greater than or equal to this, then consider them to match.
218211 """
219212
220- config_dict , tokenized_citations , has_previous_pubs , prev_pubs = ref_srch_modularized .input_reading_and_checking (config_json_filepath , ref_path_or_URL , MEDLINE_reference , no_Crossref , no_PubMed , prev_pub_filepath , citation_match_ratio )
213+ config_dict , tokenized_citations , has_previous_pubs , prev_pubs = \
214+ ref_srch_modularized .input_reading_and_checking (config_json_filepath , ref_path_or_URL ,
215+ MEDLINE_reference , no_Crossref , no_PubMed ,
216+ prev_pub_filepath )
221217
222- publication_dict , tokenized_citations , all_queries = ref_srch_modularized .build_publication_dict (config_dict , tokenized_citations , no_Crossref , no_PubMed , citation_match_ratio )
218+ publication_dict , tokenized_citations , all_queries = ref_srch_modularized .build_publication_dict (config_dict , tokenized_citations , no_Crossref , no_PubMed )
223219
224220 save_dir_name = ref_srch_modularized .save_and_send_reports_and_emails (config_dict , tokenized_citations , publication_dict , prev_pubs , has_previous_pubs , test )
225221
0 commit comments