Skip to content

Instantly share code, notes, and snippets.

View chrispook's full-sized avatar

chrispook

View GitHub Profile
@chrispook
chrispook / mzML_batch_RT_adjustment.ipynb
Last active April 30, 2024 21:39
This script duplicates all the mzML files in a folder with a fixed RT adjustment for every scan.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chrispook
chrispook / MSDIAL_alignment_to_dfs.py
Created December 19, 2022 23:38
parse an MS-DIAL alignment text file to dfs called qual, quant, file_props and annotation using pandas
# parse MS-DIAL alignment to dfs called qual, quant, file_props and annotation
# each one has the Alignment ID as index
# Written by Chris Pook, drchrispook@gmail.com
# licensed as Attribution-NonCommercial-ShareAlike 3.0 New Zealand (CC BY-NC-SA 3.0 NZ)
# https://creativecommons.org/licenses/by-nc-sa/3.0/nz/
import glob, os, re, pytz
import pandas as pd
@chrispook
chrispook / parse_MS-DIAL_alignment_to_qual&quant_dfs.ipynb
Last active November 8, 2022 05:07
Jupyter Notebook file that will load an MS-DIAL alignment and parse the qualitative and quantitative data to separate pandas dataframes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.