Skip to content

Instantly share code, notes, and snippets.

View RalfG's full-sized avatar

Ralf Gabriels RalfG

View GitHub Profile
@RalfG
RalfG / proxi.md
Last active June 30, 2021 22:01
ProXI, USI, pyteomics, and spectrum_utils
@RalfG
RalfG / ppm_vs_dalton.md
Last active July 17, 2023 02:52
Dalton vs ppm mass error in mass spectrometry

Dalton vs ppm mass error in mass spectrometry

import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style("whitegrid")

def ppm_to_da(error_ppm, theoretical_mass):
 error_da = theoretical_mass / ((1/ error_ppm) * 1000000)

Custom Jupyter Notebook CSS

A more modern style for Jupyter Notebooks, loosely based on @formigone's theme.

To install, download custom.css and place it in site-packages/notebook/static/custom/. To find your site-packages directory, run the following Python script:

>>> from distutils.sysconfig import get_python_lib
>>> print(get_python_lib())
@RalfG
RalfG / awesome-linux-shell-windows.md
Last active November 6, 2021 21:59
Awesome Linux shell on Windows: WSL, Windows Terminal, ZSH, oh-my-zsh, and powerlevel10k