Skip to content

Instantly share code, notes, and snippets.

@JianGuoZhou3
JianGuoZhou3 / dbgap.md
Created January 13, 2022 22:34 — forked from RyanSchu/dbgap.md
Downloading Data from dbgap

Install the aspera cli client required by dbgap

aspera installation manual download page

wget https://download.asperasoft.com/download/sw/cli/3.7.7/aspera-cli-3.7.7.608.927cce8-linux-64-release.sh

update permissions of the installation executable and execute

chmod a+x ./aspera-cli-3.7.7.608.927cce8-linux-64-release.sh
./aspera-cli-3.7.7.608.927cce8-linux-64-release.sh
@JianGuoZhou3
JianGuoZhou3 / counts_to_tpm.R
Created September 5, 2020 21:19 — forked from slowkow/counts_to_tpm.R
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.
@JianGuoZhou3
JianGuoZhou3 / lmd2fcs.R
Created October 29, 2019 15:02 — forked from yoavram/lmd2fcs.R
Convert flow cytometry formats: Gallios Coulter Beckman LMD file to standard FCS file.
# install
source("http://bioconductor.org/biocLite.R")
biocLite("flowCore")
# convert
library(tools) # for file_path_sans_ext
library(flowCore)
in.fname <- 'flow123.LMD'
folder <- 'C:\\users\\user\\flow\\'