Skip to content

Instantly share code, notes, and snippets.

View jspaezp's full-sized avatar

J. Sebastian Paez jspaezp

View GitHub Profile
@jspaezp
jspaezp / plotting_example_dda.ipynb
Created October 23, 2023 15:06
alphatims snippets
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
DIA-NN 1.8.1 (Data-Independent Acquisition by Neural Networks)
Compiled on Apr 15 2022 08:45:18
Current date and time: Mon Aug 14 19:34:42 2023
Logical CPU cores: 4
Thread number set to 4
The spectral library (if generated) will retain the original spectra but will include empirically-aligned RTs
Existing .quant files will be used
A fast algorithm will be used to select the MS2 mass accuracy setting
Mass accuracy will be determined separately for different runs
Scan windows will be inferred separately for different runs
@jspaezp
jspaezp / args.txt
Created October 31, 2022 08:52
Skyline command line arguments
$ docker run -it --rm -v $PWD/:/data/ proteowizard/pwiz-skyline-i-agree-to-the-vendor-licenses wine SkylineCmd.exe
To access the command-line interface for Skyline you can use either SkylineRunner.exe or SkylineCmd.exe.
SkylineRunner.exe is a tiny shim executable less than 10 KB in size. It requires a Skyline installation, performed with
the self-updating web installers, on the computer on which SkylineRunner is run. SkylineRunner simply starts a separate
Skyline process running without any user interface, pipes the parameter options from the command-line to the running
Skyline instance, and prints output from its Skyline instance to the command console. You can still run multiple instances
of SkylineRunner and it will start multiple instances of Skyline. The Skyline instance started by SkylineRunner is
independent of any other instances that may already be running on the same machine. It is not necessary to have a visible
instance of Skyline running on your computer for SkylineRunner to work.
@jspaezp
jspaezp / update.bash
Created September 2, 2022 19:51
Update python in Colab
# From: https://stackoverflow.com/questions/68657341/how-can-i-update-google-colabs-python-version
! python --version
# version 3.7 as default
#install python 3.9
!sudo apt-get update -y
!sudo apt-get install python3.10
#change alternatives
@jspaezp
jspaezp / clean_files.bash
Last active May 1, 2022 01:54
script to clean old files from the mass spec computer
#!/bin/bash
# To use, save this script in the directory you want to clean,
# name it "clean_files.bash"
# open bash in the directory
# run $ bash clean_files.bash
# This will generate a list of all the deleted files.
@jspaezp
jspaezp / SctreeSeuratWorkflow.Rmd
Created April 29, 2022 18:54
sctree seurat workflow
---
title: "SctreeSeuratWorkflow"
output: html_document
date: '2022-04-29'
---
```{r}
# Modified from https://satijalab.org/seurat/articles/pbmc3k_tutorial.html
@jspaezp
jspaezp / count_matrix.R
Created September 13, 2021 22:24
star cluster search
# Note that you need to install these packages beforehand
library(AnnotationDbi)
library(org.Hs.eg.db)
library(dplyr)
library(ggplot2)
files <- dir("./STAR", recursive = TRUE, pattern = "ReadsPerGene", full.names=TRUE)
@jspaezp
jspaezp / dicom_meta.py
Last active July 20, 2021 02:04
dicom_meta.py
"""
from: https://www.kaggle.com/c/rsna-miccai-brain-tumor-radiogenomic-classification/discussion/252942
extracts the metadata of dicom files
Use as: python dicom_meta.py --dataset train --input ./input --output ./ --n_jobs
"""
import argparse
import os
import pydicom
@jspaezp
jspaezp / fork-of-hpa-train-gpu-classifier-hdf5.ipynb
Last active June 30, 2021 16:59
fork-of-hpa-train-gpu-classifier-hdf5.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jspaezp
jspaezp / irt_peptides.csv
Last active January 24, 2021 20:11
Peptides common on the runs from proteometools and their measured median iRTs using GFVIDDGLITK,100 and ISLGEHEGGGK,0 as landmarks
Modified equence mIRT
TFAHTESHISK -17.384903547702155
IGYDHGHIEHK -17.594648147115315
HEHISSDYAGK -21.52182247533949
ISLGEHEGGGK 0
YVGDSYDSSAK 1.9638765147613109
FGTGTYAGGEK 10.814088740473835
TASGVGGFSTK 16.89663911317532
LTSGDFGEDSK 17.383875930900476
AGDEALGDTYK 17.67635170462163