R functions and commands I want to reuse and keep track of.
Helpful when working with human WGS data that you want to analyze by chromosome
- ggplot2 bargraph ordered by chromosome with the UCSC "chr1...chrY" naming system. Not alphanumeric ordering. Could probably use mixedsort() but this allows me to control the order of things (like if I wanted genome first, instead of last).
- paired bargraph of function #1 for paired samples, e.g. Tumor/Normal, treatment/no-treatment.
- normalize count data by average coverage per chromosome