Skip to content

A disparate collection of scripts I have used for chemistry labwork and chemoinformatics

License

Notifications You must be signed in to change notification settings

supersciencegrl/chemistry-scripts

Repository files navigation

chemistry-scripts

A disparate collection of scripts I have used for chemistry labwork and data analysis

Compound lookup

  • add_pKa.py – A small script to return pKa from a CAS number or chemical name input. This is very amenable to diversifying to other compound parameters. May be called by other apps.
  • add_Hphrases.py – A script to look up H-phrases and P-phrases from a CAS number or chemical name input.

Batch chemical parameters

A bespoke script created for @Imekulo on Twitter, to input a list of chemical names or CAS numbers, and receive a table of molecular weights, molecular formulae, empirical formulae, and CAS numbers in return.

Please contact me or comment with improvements. Feel free to reuse with credit so others can find the original link with any updates. It's relatively easy to add new columns: I normally use modifications of add_pKa.py to do so.

Accessible data

  • SampleFinder.py – A personal, GUI-based script to find my LC-MS sample data or open the pdf output quickly. Now obsolete: eventually became part of a much bigger data access app, used across multiple departments
  • my_samples.py – Older version of SampleFinder, without the GUI
  • LC_samples.py – Quickly returns all LC-MS raw data with filenames containing a user-chosen substring. Now obsolete and part of SampleFinder

Analytical data scripts

  • 19F_shifts.txt – A list of literature 19F NMR chemical shift data
  • audit_metadata_spare_fields.py – Quick check to audit the use of metadata in samples collected in an instrument folder
  • merge_pdfs.py – Finds relevant pdf analytical data for an experiment and merges to a single pdf for easy viewing and uploading
  • mine_params.py – Returns acquisition and processing parameters for a folder of Bruker NMR data to analyse spectrometer use

Featurize_reactants

A GUI-based program to merge .csv or .xlsx data for a specific workflow involving matching SMILES strings of products and starting materials for external lookup of the starting materials.

is_it_chiral

Checks - with point chirality only - whether a given molecule is chiral or not.

Library_metadata

A GUI-based program to prepopulate an LC-MS sample list with compound metadata for fast analysis.

Merge_pdfs

A bespoke Python CLI program to make NMR and LC-MS data easily human-searchable, and merge pdf files, in either "Library" or "Optimization" mode.

OCR_pdf_tables

A quick script to OCR tables from pdf files and save them to pandas dataframes, using the tabula-py library.

Random alarm

Rings an alarm randomly with in the next user-defined time period in minutes. I use this to deal with my email inbox while doing non-focus tasks...

ren_files

A GUI-based program to to rename NMR and LC-MS data files for a specific workflow.

sdfile

A GUI-based program to add metadata to an .sdf file (list of molecules) to facilitate structural analysis.

About

A disparate collection of scripts I have used for chemistry labwork and chemoinformatics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published