Skip to content

Commit

Permalink
Merge pull request #10 from Crick-CancerGenomics/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
haasek authored Apr 7, 2017
2 parents 3eea052 + 5c12d13 commit 13a1484
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 20 deletions.
Binary file modified ASCAT-manual.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions ASCAT/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: ASCAT
Type: Package
Title: Allele-Specific Copy Number Analysis of Tumours
Version: 2.4.3
Date: 2016-06-20
Version: 2.4.4
Date: 2017-04-06
Authors@R: c(person("Peter", "Van Loo", role=c("aut","cre"), email="[email protected]"),
person("Gro", "Nielsen", role="ctb"),
person("Jiqiu","Cheng", role="ctb"),
Expand Down
9 changes: 3 additions & 6 deletions ASCAT/NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export(base.gw.plot)
export(make_segments)
export(runASCAT)
import(RColorBrewer)
importFrom("grDevices", "adjustcolor", "colorRampPalette", "dev.new",
"dev.off", "pdf", "png")
importFrom("graphics", "abline", "axis", "image", "par", "plot",
"points", "rect", "text")
importFrom("stats", "complete.cases", "cor", "lm", "mad", "median",
"na.omit", "runmed", "var")
importFrom("grDevices", "adjustcolor", "colorRampPalette", "dev.new","dev.off", "pdf", "png")
importFrom("graphics", "abline", "axis", "image", "par", "plot","points", "rect", "text")
importFrom("stats", "complete.cases", "cor", "lm", "mad", "median","na.omit", "runmed", "var")
importFrom("utils", "read.table", "write.table")
36 changes: 27 additions & 9 deletions ASCAT/R/ascat.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ASCAT 2.4.3
# ASCAT 2.4.4
# author: Peter Van Loo
# PCF and ASPCF: Gro Nilsen
# GC correction: Jiqiu Cheng
Expand Down Expand Up @@ -2155,6 +2155,7 @@ psi <- function(x,z){
#' HumanCore12\cr
#' HumanCoreExome24\cr
#' HumanOmniExpress12\cr
#' IlluminaOmniExpressExome\cr
#'
#' @return predicted germline genotypes
#'
Expand Down Expand Up @@ -2267,18 +2268,28 @@ ascat.predictGermlineGenotypes = function(ASCATobj, platform = "AffySNP6") {
segmentLength = 100
}
else if (platform=="AffyOncoScan") {
maxHomozygous = 0.05
proportionHetero = 0.24
proportionHomo = 0.69
proportionOpen = 0.04
maxHomozygous = 0.04
proportionHetero = 0.355
proportionHomo = 0.605
proportionOpen = 0.025
segmentLength = 30
# maxHomozygous = 0.05
# proportionHetero = 0.24
# proportionHomo = 0.69
# proportionOpen = 0.04
# segmentLength = 30
}
else if (platform=="AffyCytoScanHD") {
maxHomozygous = 0.05
proportionHetero = 0.26
proportionHomo = 0.69
# maxHomozygous = 0.05
# proportionHetero = 0.26
# proportionHomo = 0.69
# proportionOpen = 0.03
# segmentLength = 30
maxHomozygous = 0.04
proportionHetero = 0.32
proportionHomo = 0.60
proportionOpen = 0.03
segmentLength = 30
segmentLength = 100
}
else if (platform=="HumanCNV370quad") {
maxHomozygous = 0.05
Expand Down Expand Up @@ -2308,6 +2319,13 @@ ascat.predictGermlineGenotypes = function(ASCATobj, platform = "AffySNP6") {
proportionOpen = 0.015
segmentLength = 100
}
else if (platform=="IlluminaOmniExpressExome") {
maxHomozygous = 0.05
proportionHetero = 0.35
proportionHomo = 0.60
proportionOpen = 0.03
segmentLength = 100
}
# else if (platform=="OmniZhonghua8") {
# maxHomozygous = 0.05
# proportionHetero = 0.295
Expand Down
1 change: 1 addition & 0 deletions ASCAT/man/ascat.predictGermlineGenotypes.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions gcProcessing/createGCcontentFile.R
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
args <- commandArgs(TRUE)

library(plyr)

data<-read.table(args[1])
name<-args[2]

agg<-aggregate(data$V8,by=list(data$V4,gsub("chr","", data$V1),data$V5), FUN=t)
agg<-as.data.frame(as.matrix(agg))
agg<-ddply(data, .(V4, V1, V5), function(z) return(t(z$V8)))
cols<-ifelse(unique(data$V6)/1000000>=1, paste(unique(data$V6)/1000000, "M", sep=""), unique(data$V6))

rownames(agg)<-agg[,1]
agg[,1]<-NULL

cols<-ifelse(unique(data$V6)/1000000>=1, paste(unique(data$V6)/1000000, "M", sep=""), unique(data$V6))
colnames(agg)<-c("Chr","Position",cols)
agg<-agg[order(agg$Chr, as.numeric(as.character(agg$Position))),]
write.table(agg,paste(name,".txt",sep=""),quote=F, row.names=T, sep="\t")

0 comments on commit 13a1484

Please sign in to comment.