All Projects → PLOS → allofplos

PLOS / allofplos

Licence: MIT License
Repository for the allofplos project.

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to allofplos

plostime
Publication delays at PLOS and 3,475 other journals
Stars: ✭ 19 (-57.78%)
Mutual labels:  science, publishing, plos
crossref
Client for the Crossref API
Stars: ✭ 29 (-35.56%)
Mutual labels:  science, publishing
Django Publications
A Django app for managing scientific publications.
Stars: ✭ 95 (+111.11%)
Mutual labels:  science, publishing
Pandoc Scholar
Create beautiful and semantically meaningful articles with pandoc.
Stars: ✭ 342 (+660%)
Mutual labels:  science, publishing
elife-xpub
eLife is an open-access journal and technology provider that publishes promising research in the life and biomedical sciences. This is their implementation of a submission and peer review system based on Coko PubSweet and xPub.
Stars: ✭ 29 (-35.56%)
Mutual labels:  science, publishing
aletheia-app
Alethia peer to peer publishing platform
Stars: ✭ 46 (+2.22%)
Mutual labels:  science, publishing
aletheia-admin
Project documentation including our README, contributing guidelines and more.
Stars: ✭ 32 (-28.89%)
Mutual labels:  science, publishing
web-verse
Toolbox for deep, resilient, markup-invariant linking into HTML documents without their cooperation
Stars: ✭ 25 (-44.44%)
Mutual labels:  science, publishing
open-retractions
‼️ 📄 🔍 an API and web interface to check if a paper has been retracted
Stars: ✭ 43 (-4.44%)
Mutual labels:  science, publishing
pypuf
Cryptanalysis of Physically Unclonable Functions
Stars: ✭ 39 (-13.33%)
Mutual labels:  science
Atomic-Periodic-Table.Android
Atomic - Periodic Table
Stars: ✭ 33 (-26.67%)
Mutual labels:  science
ghost-on-heroku
One-button Heroku deploy for the Ghost 3.2.0 blogging platform.
Stars: ✭ 232 (+415.56%)
Mutual labels:  publishing
Dope
A unique tag-based theme for Ghost
Stars: ✭ 44 (-2.22%)
Mutual labels:  publishing
hwrt
A toolset for handwriting recognition
Stars: ✭ 61 (+35.56%)
Mutual labels:  science
emp
🔬 Empirical CLI
Stars: ✭ 42 (-6.67%)
Mutual labels:  science
ReBench
Execute and document benchmarks reproducibly.
Stars: ✭ 48 (+6.67%)
Mutual labels:  science
HacktheDinos
The 2nd Annual American Museum of Natural History Hackathon produced by the BridgeUP: STEM program
Stars: ✭ 32 (-28.89%)
Mutual labels:  science
CanAirIO
W A R N I N G: This is a previous proof of concept of CanAirIO device firmware over a TTGO T-Display board, but now it is only a old reference. The last stable version of CanAirIO device already have support for this board and many features more. Please use the official CanAirIO Firmware instead of this firmware. https://github.com/kike-canaries…
Stars: ✭ 12 (-73.33%)
Mutual labels:  science
sbt-publish-more
📤 Publish artifacts to more than one repository
Stars: ✭ 21 (-53.33%)
Mutual labels:  publishing
biblio-glutton
A high performance bibliographic information service
Stars: ✭ 54 (+20%)
Mutual labels:  openaccess
Build Status

All of Plos (allofplos)

Copyright (c) 2017, Public Library of Science. MIT License, see LICENSE.txt for more information.

Why allofplos?

This is for downloading/updating/maintaining a repository of all PLOS XML article files. This can be used to have a copy of the PLOS text corpus for further analysis. Use this program to download all PLOS XML article files instead of doing web scraping.

NOTE: This software is not stable, we consider it beta state and will be in this stage until version 1.0. This means that programming interface may change and after a new version a full corpus download may be required.

Installation instructions

This program requires Python 3.4+.

Make a virtual environment:

$ virtualenv allofplos

Using pip:

(allofplos)$ pip install allofplos

This should install allofplos and requirements. At this stage you are ready to go.

If you want to manually install from source (for example for development purposes), first clone the project repository:

(allofplos)$ git clone [email protected]:PLOS/allofplos.git

Install Python dependencies inside the newly created virtual environment:

(allofplos)$ pip install -r requirements.txt

How to run the program

Execute the following command.

(allofplos)$ python -m allofplos.update

The first time it runs it will download a >4.4 Gb zip file (allofplos_xml.zip) with all the XML files inside. Note: Make sure that you have enough space in your device for the zip file and for its content before running this command (at least 30Gb). After this file is downloaded, it will extract its contents into the allofplos_xml directory inside your installation of allofplos.

If you want to see the directory on your file system where this is installed run

python -c "from allofplos import get_corpus_dir; print(get_corpus_dir())"

If you ever downloaded the corpus before, it will make an incremental update to the existing corpus. The script:

  • checks for and then downloads to a temporary folder individual new articles that have been published
  • of those new articles, checks whether they are corrections (and whether the linked corrected article has been updated)
  • checks whether there are VORs (Versions of Record) for uncorrected proofs in the main articles directory and downloads those
  • checks whether the newly downloaded articles are uncorrected proofs or not after all of these checks, it moves the new articles into the main articles folder.

Here’s what the print statements might look like on a typical run:

147 new articles to download.
147 new articles downloaded.
3 amended articles found.
0 amended articles downloaded with new xml.
Creating new text list of uncorrected proofs from scratch.
No new VOR articles indexed in Solr.
17 VOR articles directly downloaded.
17 uncorrected proofs updated to version of record. 44 uncorrected proofs remaining in uncorrected proof list.
9 uncorrected proofs found. 53 total in list.
Corpus started with 219792 articles.
Moving new and updated files...
164 files moved. Corpus now has 219939 articles.

How to run the tests

To run the tests, you will need to install allofplos with its testing dependencies. These testing dependencies include pytest, which we will use to run the tests.

To get all of the allofplos testing dependencies run:

(allofplos)$ pip install -U allofplos[test]

Then when you run:

(allofplos)$ pytest --pyargs allofplos

It should return something like this:

collected 20 items

allofplos/tests/test_corpus.py ............                       [ 60%]
allofplos/tests/test_unittests.py ........                        [100%]

==================== 20 passed in 0.36 seconds =========================

Community guidelines

If you wish to contribute to this project please open a ticket in the GitHub repo at https://github.com/PLOS/allofplos/issues. For support requests write to [email protected]

Citing This Library

allofplos is published in the proceedings of the SciPy 2018. DOI 10.25080/Majora-4af1f417-009 refers to all versions of allofplos.

If you want to cite allofplos using Bibtex:

@InProceedings{ elizabeth_seiver-proc-scipy-2018,
  author    = { Elizabeth Seiver and M Pacer and Sebastian Bassi },
  title     = { Text and data mining scientific articles with allofplos },
  booktitle = { Proceedings of the 17th Python in Science Conference },
  pages     = { 61 - 64 },
  year      = { 2018 },
  editor    = { Fatih Akici and David Lippa and Dillon Niederhut and M Pacer },
  doi       = { 10.25080/Majora-4af1f417-009 }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].