Pubmex
(tested on macOS and Linux)
pubmex.py is a script to get a fancy paper title based on given DOI or PMID (can be also combined with macOS Finder)
Format of the title:
a first author . a last author - (title("dotted") or your customed title) . PMID . journal . year . pdf
e.g.
Kelley.Scott.The.evolution.biology.shift.towards.engineering.prediction-generating.tools.away.traditional.research.practice.EMBORep.2008.pdf
Nowadays, it’s not a big issue, with all Mendeley and other tools, however...
I don’t want to put any PDF file collected on the way into my library, because then it gets super big (and then it’s hard to sync it for example with Dropbox). So now I can keep these PDF files into pdf-icebox and re-name them niecely automatically:
$ ls
Hnisz.Sharp.Phase.Separation.Model.Transcriptional.Control.Cell.2017.pdf
Sharp.Hockfield.Convergence.The.future.health.Science.2017.pdf
Usage:
$ pubmex.py sharp2017.pdf
Sharp.Hockfield.Convergence.The.future.health.Science.2017.pdf
mv sharp2017.pdf --> ./Sharp.Hockfield.Convergence.The.future.health.Science.2017.pdf
$ pubmex.py Query.Konarska.pdf
mv Query.Konarska.pdf --> ./Smith.Konarska."Nought.may.endure.but.mutability".spliceosome.dynamics.regulation.splicing.MolCell.2008.pdf
$ pubmex.py eabc9191.full.pdf
mv eabc9191.full.pdf --> ./Balas.Johnson.Establishing.RNA-RNA.interactions.remodels.lncRNA.structure.promotes.PRC2.activity.SciAdv.2021.pdf
Tricks
Copy paste the DOI into a filename and run pubmex.py:
$ pubmex.py 10.1038:s41587-022-01432-w.pdf
filename: .......... 10.1038:s41587-022-01432-w.pdf
mv 10.1038:s41587-022-01432-w.pdf -->Chowdhury.AlQuraishi-Single-sequence.protein.structure.prediction.using.language.model.deep.learning-NatBiotechnol-2022.pdf
or PMID:
$ pubmex.py 35439059.pdf
filename: .......... 35439059.pdf
mv 35439059.pdf --> ./Vicens.Kieft-Thoughts.how.think.and.talk.about.RNA.structure-ProcNatlAcadSciUSA-2022.pdf
Install
pubmex.py is depended on:
- biopython (http://biopython.org/wiki/Biopython)
- pdftotext (http://linux.die.net/man/1/pdftotext)
you can install them with:
# Ubuntu (Debian-based system)
apt-get install xclip python-biopython pdftotext
# macOS
brew install poppler biopython # or "sudo port install poppler biopython"
# or biopython with conda, `conda install -c conda-forge biopython`
and then:
pip install pubmex
or get pubmex (the latest, version from this Github repository)
pip install -e git+http://github.com/mmagnus/pubmex.git#egg=pubmex
History
- 1.4 Add osx-automator
- 1.3 Fixed #4 #5
- 1.2 Fixed #2
- 1.1 Simplify input,
pubmex.py *.pdf - 1.0 With recent bugfixes 2021
- 0.3 OSX installation
- 0.2 Small changes
- 0.1 Init version in 2010! :-)
Alternatives
Metadata
Release files for pubmex 2.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pubmex-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pubmex-2.0.1-py3-none-any.whl
| Download URL | pubmex-2.0.1-py3-none-any.whl |
|---|---|
| Size | 10.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b640c48a07eb61031265c876f30cc3780ad36a73e6a338f21a064188628b1723
|
|
BLAKE2b-256 checksum How to use checksums |
c4965750e5aaf0d8140b43e8413ee391d4da53ecc6505b01ba6fc94fe2207dd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.28.2 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.8.10
|
Security for pubmex 2.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.