# HG changeset patch # User greg # Date 1502390806 14400 # Node ID e8dd7b5e4e95882895aa2691b05595484e7e5e1f # Parent 79acab9c6524c96994c72a1021834a1fb71a9d61 Uploaded diff -r 79acab9c6524 -r e8dd7b5e4e95 build_matrix.R --- a/build_matrix.R Thu Aug 10 14:41:35 2017 -0400 +++ b/build_matrix.R Thu Aug 10 14:46:46 2017 -0400 @@ -15,5 +15,5 @@ r_matrix <- as.matrix(read.table(opt$input)); status <- match(r_matrix[,3], missing); r_matrix[,3] <- paste(opt$work_dir, r_matrix[,1], ".", r_matrix[,2], ".bed.gz", sep=""); -r_matrix <- r_matrix[is.na(status)==T,]; -write.table(array(r_matrix, dim=c(length(r_matrix)/3, 3)), opt$output, quote=F, row.names=F, col.names=F); +r_matrix <- r_matrix[is.na(status)==TRUE,]; +write.table(array(r_matrix, dim=c(length(r_matrix)/3, 3)), opt$output, quote=FALSE, row.names=FALSE, col.names=FALSE);