Skip to content

Commit 434cc7c

Browse files
committed
Replace hard-coded pathnames from cnvAnalysis.R
1 parent d7e30d2 commit 434cc7c

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/cnvAnalysis.R

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ PlotSegment <- function(cur.ratio, cur.ratio.good, sample.name) {
210210
y.at <- c(0.005, 0.020, 0.100, 0.500, 1.000, 2.000, 10, 100)
211211
y.labels <- c("0.005", "0.020", "0.100", "0.5", "1", "2", "10", "100")
212212

213-
pdf(paste(sample.name, ".5k.wg.nobad.pdf", sep=""),
213+
pdf(sprintf('%s.pdf', sample.name),
214214
height=3.5, width=6, useDingbats=FALSE)
215215
par(pin=c(5.0, 1.75))
216216
plot(x=cur.ratio.good$abspos,
@@ -363,12 +363,10 @@ main <- function() {
363363
PlotSegment(cur.ratio, cur.ratio.good, sample.name)
364364
# save results
365365
write.table(cur.ratio.good, sep="\t",
366-
file=paste(sample.name, ".hg19.5k.nobad.varbin.data.txt",
367-
sep=""),
366+
file=sprintf("%s.data.txt", sample.name),
368367
quote=F, row.names=F)
369368
write.table(segs, sep="\t",
370-
file=paste(sample.name, ".hg19.5k.nobad.varbin.short.txt",
371-
sep=""),
369+
file=sprintf("%s.short.txt", sample.name),
372370
quote=F, row.names=F)
373371
}
374372

0 commit comments

Comments
 (0)