Closed keiranmraine closed 7 years ago
In addition to this CN filtering only works with numeric chromosomes, issue has been reported to authors of the copynumber package. numericChrom function called in pcf.r ( copynumber package ) has human specific hardcoded values for X and Y which means it only worked for human since mouse X -> 20 and Y -> 21
numericChrom < - function (chrom) { if (!is.numeric(chrom)) { if (is.factor(chrom)) { chrom <- as.character(chrom) } chrx <- c(which(chrom == "x"), which(chrom == "X")) chrom[chrx] <- 23 chry <- c(which(chrom == "y"), which(chrom == "Y")) chrom[chry] <- 24 chrom <- as.numeric(chrom) } return(chrom) }
This is now fixed in v5.4.1
Changes required to correctly set this value when calling this package.
Additionally affects possibilities of moving to new builds, detecte when tested with grch38 and has been reported to corresponding author: