Skip to main content

pu(b)mex: a scientific publication renamer

Project description

Pu(b)mex

tag

pubmex.py is a script to get a fancy paper title based on given DOI or PMID.

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
    the title is ...  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

DEPENDENCIES

INSTALLATION

Python 3 is required.

git clone https://github.com/mmagnus/pubmex
pip install -e pubmex

Ubuntu (Debian-based system)

apt-get install xclip python-biopython pdftotext

.. clone & run it :-) Set PATHs to pubmex.py

MAC OSX

sudo port install poppler #pdftotext
sudo port install py-pip # 
sudo pip install biopython # or sudo port install biopython # (but it did't work for me)

.. clone & run it :-) Set PATHs to pubmex.py

WINDOWS (NOT TESTED!!!!!!!)

Install:

.. and it might work. I don't know (I don't care ;-))

EXAMPLES

Visit https://github.com/mmagnus/pubmex/wiki

Run a script with examples:

./examples-test.sh

BUGS

pubmex.py might have still problem if it has to parse title of authors with characters like ółą and so on.

HISTORY

version 1.1 simplify input, pubmex.py *.pdf

version 1.0: with recent bugfixes 2021

version 0.3

  • osx installation

version 0.2

  • small changes

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

pubmex-1.1.post0.dev6-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pubmex-1.1.post0.dev6-py3-none-any.whl.

File metadata

  • Download URL: pubmex-1.1.post0.dev6-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.25.1 setuptools/49.6.0.post20210108 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for pubmex-1.1.post0.dev6-py3-none-any.whl
Algorithm Hash digest
SHA256 174ef6ba0e3cd97598dde3cc5a9ca02f81947e96ce5002b4d1385f539ef9d882
MD5 bce2346128583433cd945cc67bc92bd8
BLAKE2b-256 fa96596fdef5be341a7f57ac258a2dcae1a25e4f8c0a6210ff7cb86cc072f794

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page