Skip to content

Instantly share code, notes, and snippets.

View marencc's full-sized avatar

Maren CC marencc

View GitHub Profile
@marencc
marencc / copyInstalledPackages.r
Created June 15, 2022 08:29 — forked from florianhartig/copyInstalledPackages.r
Script to copy the packages installed on one computer or R version to another. Originally from http://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r-on-windows
# modified from http://stackoverflow.com/questions/1401904/painless-way-to-install-a-new-version-of-r-on-windows
# run on old computer / r version
setwd("/Users/Florian/Dropbox/temp") # or any other existing temp directory
packages <- installed.packages()[,"Package"]
save(packages, file="Rpackages")
# run on new computer / r version
setwd("/Users/Florian/Dropbox/temp") # or any other existing temp directory
@marencc
marencc / 23andme.R
Created March 27, 2022 11:25 — forked from katwre/23andme.R
# http://www.vincebuffalo.com/blog/2012/03/12/using-bioconductor-to-analyze-your-23andme-data.html
library(gwascat)
data(ebicat37)
library(GenomicRanges)
data="~/projects/23andme/genome_v4.txt"
@marencc
marencc / bdg2bw
Created September 30, 2020 10:21 — forked from taoliu/bdg2bw
bedGraph to bigWig
#!/bin/bash
# check commands: slopBed, bedGraphToBigWig and bedClip
which bedtools &>/dev/null || { echo "bedtools not found! Download bedTools: <http://code.google.com/p/bedtools/>"; exit 1; }
which bedGraphToBigWig &>/dev/null || { echo "bedGraphToBigWig not found! Download: <http://hgdownload.cse.ucsc.edu/admin/exe/>"; exit 1; }
which bedClip &>/dev/null || { echo "bedClip not found! Download: <http://hgdownload.cse.ucsc.edu/admin/exe/>"; exit 1; }
# end of checking
@marencc
marencc / GitConfigHttpProxy.md
Created November 21, 2019 11:52 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@marencc
marencc / deseq2-analysis-template.R
Created May 8, 2017 18:17 — forked from stephenturner/deseq2-analysis-template.R
Template for analysis with DESeq2
## RNA-seq analysis with DESeq2
## Stephen Turner, @genetics_blog
# RNA-seq data from GSE52202
# http://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=gse52202. All patients with
# ALS, 4 with C9 expansion ("exp"), 4 controls without expansion ("ctl")
# Import & pre-process ----------------------------------------------------
# Import data from featureCounts
@marencc
marencc / tutorials.md
Created April 26, 2017 15:40 — forked from alyssafrazee/tutorials.md
tutorial stuff: ballgown & polyester

Using Ballgown and Polyester

Ballgown

Reading data

  • ballgown creates a ballgown object from tablemaker output
  • ballgownrsem creates a ballgown object from RSEM output. (not yet well-tested).
  • gffRead and gffReadGR read GTF (annotation) files into R
    • gffRead gives you a data frame
  • gffReadGR gives you a GRanges object
@marencc
marencc / bamfilter_oneliners.md
Created April 7, 2017 12:50 — forked from davfre/bamfilter_oneliners.md
SAM and BAM filtering oneliners