This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### KNITR SETUP | |
| ```{r setup, echo=FALSE} | |
| opts_chunk$set(tidy=TRUE, cache=FALSE, highlight=TRUE, figalign="center", warning=FALSE, error=FALSE, message=FALSE, fig.height=11, fig.width=11) | |
| ``` | |
| ### EXAMPLE CHUNK | |
| ```{r libraries} | |
| library(ggplot2) | |
| library(xtable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ### KNITR SETUP | |
| ```{r setup, echo=FALSE} | |
| opts_chunk$set(tidy=TRUE, cache=FALSE, highlight=TRUE, figalign="center", warning=FALSE, error=FALSE, message=FALSE, fig.height=11, fig.width=11) | |
| ``` | |
| ### EXAMPLE CHUNK | |
| ```{r libraries} | |
| library(ggplot2) | |
| library(xtable) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| about title: "Variant filtering from amplicon data" | |
| PICARD_HOME="/n/HSPH/local/share/java/picard/" | |
| GATK_HOME="/n/HSPH/local/share/java/gatk/" | |
| SNPEFF_HOME="/n/HSPH/local/share/java/snpeff/" | |
| SNPEFF_CONF="/n/HSPH/local/share/java/snpeff/snpEff.config" | |
| HG19="/n/scratch00/hsph/biodata/genomes/Hsapiens/hg19/seq/hg19.fa" | |
| HG19CHR='../chrTargets.bed' | |
| TARGETS="../exonTargetsSorted.bed" | |
| DBSNP132="/n/scratch00/hsph/biodata/genomes/Hsapiens/hg19/variation/dbsnp_132.vcf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| about title: "Variant filtering from amplicon data" | |
| PICARD_HOME="/n/HSPH/local/share/java/picard/" | |
| GATK_HOME="/n/HSPH/local/share/java/gatk/" | |
| SNPEFF_HOME="/n/HSPH/local/share/java/snpeff/" | |
| SNPEFF_CONF="/n/HSPH/local/share/java/snpeff/snpEff.config" | |
| HG19="/n/scratch00/hsph/biodata/genomes/Hsapiens/hg19/seq/hg19.fa" | |
| HG19CHR='../chrTargets.bed' | |
| TARGETS="../exonTargetsSorted.bed" | |
| DBSNP132="/n/scratch00/hsph/biodata/genomes/Hsapiens/hg19/variation/dbsnp_132.vcf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| about title: "Variant filtering from amplicon data" | |
| PICARD_HOME="/n/HSPH/local/share/java/picard/" | |
| GATK_HOME="/n/HSPH/local/share/java/gatk/" | |
| SNPEFF_HOME="/n/HSPH/local/share/java/snpeff/" | |
| SNPEFF_CONF="/n/HSPH/local/share/java/snpeff/snpEff.config" | |
| HG19="/n/scratch00/hsph/biodata/genomes/Hsapiens/hg19/seq/hg19.fa" | |
| HG19CHR='../chrTargets.bed' | |
| TARGETS="../exonTargetsSorted.bed" | |
| DBSNP132="/n/scratch00/hsph/biodata/genomes/Hsapiens/hg19/variation/dbsnp_132.vcf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| about title: "Variant filtering from amplicon data" | |
| PICARD_HOME="/n/HSPH/local/share/java/picard/" | |
| GATK_HOME="/n/HSPH/local/share/java/gatk/" | |
| SNPEFF_HOME="/n/HSPH/local/share/java/snpeff/" | |
| SNPEFF_CONF="/n/HSPH/local/share/java/snpeff/snpEff.config" | |
| HG19="/n/scratch00/hsph/biodata/genomes/Hsapiens/hg19/seq/hg19.fa" | |
| HG19CHR='../chrTargets.bed' | |
| TARGETS="../exonTargetsSorted.bed" | |
| DBSNP132="/n/scratch00/hsph/biodata/genomes/Hsapiens/hg19/variation/dbsnp_132.vcf" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Try to de-convolute the array relationships by looking at the SNP | |
| # probes | |
| snpProbes <- grep('rs', fData(lumiData)$TargetID) | |
| betas <- estimateBeta(lumiData) | |
| betasSNP <- exprs(betas)[snpProbes, ] | |
| labels <- paste(pData(lumiData)$Subject, | |
| pData(lumiData)$sampleID, | |
| pData(lumiData)$Tissue, | |
| sep='_') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Start with basic quality controls from lumi, highlight | |
| # samples by tissue information, also extract gender information | |
| colors <- brewer.pal(3, 'Set1') | |
| tissues <- pData(lumiData)$Tissue | |
| gender <- pData(lumiData)$Sex | |
| # Basic sample relations | |
| pdf('sampleRelations_mds_0.1_withRedos.pdf') | |
| plotSampleRelation(lumiData, method='mds', cv.Th=0.1, col=colors[tissues]) | |
| dev.off() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(ReadqPCR) | |
| library(NormqPCR) | |
| library(pheatmap) | |
| library(RColorBrewer) | |
| library(ggplot2) | |
| ###################################################################### | |
| # Setup | |
| ###################################################################### | |
| # Pairwise correlations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| library(simpleaffy) | |
| library(mouse430a2.db) | |
| library(arrayQualityMetrics) | |
| library(RColorBrewer) | |
| library(pheatmap) | |
| #library(pathprint) | |
| #library(ggplot2) | |
| #library(ggdendro) | |
| #library("AnnotationDbi") |