Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions R/facets-procreads.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ procSnps <- function(rcmat, ndepth=35, het.thresh=0.25, snp.nbhd=250, nX=23, unm
row.names(rcmat) <- NULL # reset row names so that it's 1:nsnps
rcmat$NOR.RD = 1 - rcmat$NOR.RD/rcmat$NOR.DP
rcmat$TUM.RD = 1 - rcmat$TUM.RD/rcmat$TUM.DP
# ensure rcmat fields in required order
rcmat <- rcmat[,c('Chromosome','Position','NOR.DP','NOR.RD','TUM.DP','TUM.RD')]
names(rcmat) = c("chrom", "maploc", "rCountN", "vafN", "rCountT", "vafT")
# make chromosome ordered and numeric
rcmat$chrom <- as.numeric(ordered(rcmat$chrom, levels = chromlevels))
Expand Down