From 0e401af076046656c88fe238049e927d8e974f93 Mon Sep 17 00:00:00 2001 From: Florian Jochens <fj@andaco.de> Date: Sun, 16 Jan 2022 15:12:32 +0100 Subject: [PATCH] removed junk --- .DS_Store | Bin 6148 -> 0 bytes count_journal.py | 40 ---------------------------------------- example_input.py | 13 ------------- start_script.py | 19 ------------------- test.json | 1 - 5 files changed, 73 deletions(-) delete mode 100644 .DS_Store delete mode 100755 count_journal.py delete mode 100755 example_input.py delete mode 100644 start_script.py delete mode 100644 test.json diff --git a/.DS_Store b/.DS_Store deleted file mode 100644 index 5008ddfcf53c02e82d7eee2e57c38e5672ef89f6..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 6148 zcmZQzU|@7AO)+F(5MW?n;9!8z45|!R0Z1N%F(jFgL>QrFAPJ2!M?+vV1V%$(Gz3ON zU^D~<VF)ln+{D2Rp-0Kl5Eu=C(GY-#0H}OW0QD6Z7#JL&bOVG2Nii@oFo3%Nj0_Ac zFio(203!nfNGnJUNGpg2X=PvpvA|}4wK6b5wK9UcAq)(R;4TS>25V<v1ltVagS9g- zf^BACV1#IAV1(Mt2<@RTf_gL{^C8+97{Ru~TsKOOhQMeDz(Rl-!Vmz}|E>%SxcdJP zRior+2#kinunYl47MEZbCs3t{!+W4QHvuXKVuPw;Mo^s$(F3lEVT}ML$bg~*R5_@+ b2Uo?6kTwK}57Iu`5P${HC_Nei0}uiLNUI8I diff --git a/count_journal.py b/count_journal.py deleted file mode 100755 index 13886a2..0000000 --- a/count_journal.py +++ /dev/null @@ -1,40 +0,0 @@ -#!/usr/bin/env python3 - -from input.interface import InputInterface as Input - -def count_journals(url: str): - inter = Input() - pub = inter.get_publication(url) - - if pub.citations: - for citation in pub.citations: - journal = citation.journal - if journal in cit: - cit[journal] += 1 - else: - cit[journal] = 1 - - if pub.references: - for reference in pub.references: - journal = reference.journal - if journal in cit: - cit[journal] += 1 - else: - cit[journal] = 1 - -if __name__ == "__main__": - cit = {} - - count_journals("https://doi.org/10.1021/acs.jcim.1c00203") - count_journals("https://doi.org/10.1021/acs.jcim.6b00561") - count_journals("https://doi.org/10.1021/acs.jcim.6b00613") - count_journals("https://doi.org/10.1021/acs.jcim.1c00917") - count_journals("https://doi.org/10.1021/acs.jmedchem.0c01332") - #count_journals("https://pubs.acs.org/doi/10.1021/acs.biochem.1c00290") - #count_journals("https://pubs.acs.org/doi/10.1021/acsenvironau.1c00007") - #count_journals("https://pubs.acs.org/doi/10.1021/acs.biochem.7b01162") - - cit = dict(sorted(cit.items(), key=lambda item: item[1])) - for journal in cit: - if journal != "": - print(f'{journal}: {cit[journal]}') diff --git a/example_input.py b/example_input.py deleted file mode 100755 index c9bca41..0000000 --- a/example_input.py +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env python3 - -from input.interface import InputInterface as Input - -def main(url: str): - i = Input() - #print(i.get_publication(url)) - print(i.get_pub_light(url)) - # print(i.get_supported_fetchers()) Useless because all classes are called the same - -if __name__ == "__main__": - #main("https://doi.org/10.1021/acs.jcim.1c0023") - main("https://doi.org/10.1021/acs.jcim.5b00332") diff --git a/start_script.py b/start_script.py deleted file mode 100644 index 9e674cf..0000000 --- a/start_script.py +++ /dev/null @@ -1,19 +0,0 @@ -import sys -import gc -from pathlib import Path -from verarbeitung.process_main import Processing -#from verarbeitung.dev_files.print_graph_test import try_known_publications, try_delete_nodes - - -doi_list = [] -#doi_list.append('https://pubs.acs.org/doi/10.1021/acs.jcim.9b00249') -#doi_list.append('https://doi.org/10.1021/acs.jcim.9b00249') -#doi_list.append('https://pubs.acs.org/doi/10.1021/acs.jcim.1c00203') -doi_list.append('https://doi.org/10.1021/acs.jmedchem.0c01332') -doi_list.append('https://pubs.acs.org/doi/10.1021/acs.jcim.6b00709') -error_list = Processing(doi_list, 2, 2, 'test.json') -print(error_list) - -del doi_list -del error_list -gc.collect() diff --git a/test.json b/test.json deleted file mode 100644 index 4ae068d..0000000 --- a/test.json +++ /dev/null @@ -1 +0,0 @@ -{"nodes": [{"doi": "https://doi.org/10.1021/acs.jmedchem.0c01332", "name": "Evolution of Novartis\u2019 Small Molecule Screening Deck Design", "author": ["Ansgar Schuffenhauer", "Nadine Schneider", "Samuel Hintermann", "Douglas Auld", "Jutta Blank", "Simona Cotesta", "Caroline Engeloch", "Nikolas Fechner", "Christoph Gaul", "Jerome Giovannoni", "Johanna Jansen", "John Joslin", "Philipp Krastel", "Eugen Lounkine", "John Manchester", "Lauren G. Monovich", "Anna Paola Pelliccioli", "Manuel Schwarze", "Michael D. Shultz", "Nikolaus Stiefl", "Daniel K. Baeschlin"], "year": "November 3, 2020", "journal": "Journal of Medicinal Chemistry", "group": "Input", "depth": 0, "citations": 8}, {"doi": "https://doi.org/10.1021/acsmedchemlett.1c00251", "name": "The Growing Importance of Chirality in 3D Chemical Space Exploration and Modern Drug Discovery Approaches for Hit-ID", "author": ["Ilaria Proietti Silvestri", "Paul J. J. Colbon"], "year": "July 16, 2021", "journal": "ACS Med. Chem. Lett.", "group": "Citedby", "depth": 1, "citations": 0}, {"doi": "https://doi.org/10.1021/acs.jmedchem.1c00416", "name": "Target-Based Evaluation of \u201cDrug-Like\u201d Properties and Ligand Efficiencies", "author": ["Paul D. Leeson", "A. Patricia Bento", "Anna Gaulton", "Anne Hersey", "Emma J. Manners", "Chris J. Radoux", "Andrew R. Leach"], "year": "May 13, 2021", "journal": "Journal of Medicinal Chemistry", "group": "Citedby", "depth": 1, "citations": 0}, {"doi": "https://doi.org/10.1021/acs.jcim.6b00709", "name": "Matched Molecular Series: Measuring SAR Similarity", "author": ["Emanuel S. R. Ehmki", "Christian Kramer"], "year": "May 1, 2017", "journal": "Journal of Chemical Information and Modeling", "group": "Input", "depth": 0, "citations": 5}, {"doi": "https://doi.org/10.1021/acs.jcim.0c00269", "name": "Matched Molecular Series Analysis for ADME Property Prediction", "author": ["Mahendra Awale", "Sereina Riniker", "Christian Kramer"], "year": "May 5, 2020", "journal": "Journal of Chemical Information and Modeling", "group": "Citedby", "depth": 1, "citations": 6}, {"doi": "https://doi.org/10.1021/acs.jcim.0c00290", "name": "Identification of Bioisosteric Substituents by a Deep Neural Network", "author": ["Peter Ertl"], "year": "June 15, 2020", "journal": "Journal of Chemical Information and Modeling", "group": "Citedby", "depth": 2, "citations": 2}], "links": [{"source": "https://doi.org/10.1021/acsmedchemlett.1c00251", "target": "https://doi.org/10.1021/acs.jmedchem.0c01332"}, {"source": "https://doi.org/10.1021/acs.jmedchem.1c00416", "target": "https://doi.org/10.1021/acs.jmedchem.0c01332"}, {"source": "https://doi.org/10.1021/acs.jcim.0c00269", "target": "https://doi.org/10.1021/acs.jcim.6b00709"}, {"source": "https://doi.org/10.1021/acs.jcim.0c00290", "target": "https://doi.org/10.1021/acs.jcim.0c00269"}]} \ No newline at end of file -- GitLab