Skip to content

Instantly share code, notes, and snippets.

View dBenedek's full-sized avatar

Benedek Dankó dBenedek

View GitHub Profile
@diazdc
diazdc / mcFindMarkers.R
Last active January 4, 2025 11:08
Multicore solution for Seurat FindAllMarkers()
n_clust <- 1:(max(as.numeric(Idents(seurat_obj))))
mcFindMarkers <- function(i){
ident1 <- i
ident2 <- n_clust[n_clust != i]
table <- FindMarkers(seurat_obj,
ident.1 = ident1, ident.2 = ident2, only.pos = TRUE)
table$Gene.name.uniq <- rownames(table)
table$cluster <- rep(i, nrow(table))
return(table)
}
@Svidro
Svidro / !Making Measurements in QuPath
Last active October 15, 2024 06:00
Making Measurements in QuPath
Collections of scripts harvested mainly from Pete, but also picked up from the forums
TOC
Accessing dynamic measurements.groovy - Most annotation measurements are dynamically created when you click on the annotation, and
are not accessible through the standard getMeasurement function. This is a way around that.
Affine transformation.groovy - access more accurate measurements for the affine transformation used in the image alignment (m5/m6+)
Alignment of local cells.groovy - check neighborhood for similarly aligned cells
@tiagochst
tiagochst / GDC_examples.R
Last active November 9, 2023 12:56
Using TCGAbiolinks with GDC (still in development)
# ------------------------------------------------------------------
# Updating TCGAbiolinks to work with GDC data
# --------------------------------------------------------------------
# Install last version from the github (this is a development version)
devtools::install_github("BioinformaticsFMRP/TCGAbiolinks")
library(TCGAbiolinks)
####################### Working harmonized data ###########################
# Data.category: clinical and biospecimen
@slowkow
slowkow / counts_to_tpm.R
Last active March 30, 2025 15:36
Convert read counts to transcripts per million (TPM).
#' Convert counts to transcripts per million (TPM).
#'
#' Convert a numeric matrix of features (rows) and conditions (columns) with
#' raw feature counts to transcripts per million.
#'
#' Lior Pachter. Models for transcript quantification from RNA-Seq.
#' arXiv:1104.3889v2
#'
#' Wagner, et al. Measurement of mRNA abundance using RNA-seq data:
#' RPKM measure is inconsistent among samples. Theory Biosci. 24 July 2012.
@jdblischak
jdblischak / README.md
Last active January 29, 2025 23:15
rnaseq-de-tutorial

Differential expression analysis with edgeR

This is a tutorial I have presented for the class Genomics and Systems Biology at the University of Chicago. In this course the students learn about study design, normalization, and statistical testing for genomic studies. This is meant to introduce them to how these ideas are implemented in practice. The specific example is a differential expression analysis with edgeR starting with a table of counts and ending with a list of differentially expressed genes.

Past versions: