Skip to content

Instantly share code, notes, and snippets.

View jvansan's full-sized avatar
🏠
Working from home

Jeff van Santen jvansan

🏠
Working from home
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jvansan
jvansan / pubchem_smiles_standardization.py
Created July 25, 2019 18:55
Use PubChem SOAP to do SMILES standardization
import re
import time
import requests
from rdkit import Chem
"""
PubChem Smiles Standardization:
author: Jeff van Santen
date: Nov. 1, 2018
@jvansan
jvansan / decode-encode_mzxml.py
Created February 5, 2019 00:01
Convert to-from M/Z Peaks:Intensity for mzXML peak list
import numpy as np
import base64, zlib
arrStr = """
203.0530 8901
365.1051 24050
366.1083 2312
"""
dt = np.dtype('>f8')
@jvansan
jvansan / jvansan-avataaar.js
Last active September 18, 2023 22:59
my-avataaar
// See https://getavataaars.com
<Avatar
avatarStyle='Circle'
topType='LongHairNotTooLong'
accessoriesType='Prescription02'
hairColor='Blonde'
facialHairType='BeardMedium'
facialHairColor='Auburn'
clotheType='GraphicShirt'
clotheColor='Heather'
@jvansan
jvansan / doi_regex.py
Created June 26, 2018 17:10
DOI python regex
import re
def main():
tests = ["10.1021/cb3006787",
"10.1021/acschembio.5b00308",
"10.7164/antibiotics.45.1853",
"10.1016/S0953-7562(09)80401-2"
]