]> git.donarmstrong.com Git - rsem.git/commitdiff
a bug in rsem-plot-model is fixed
authorBo Li <bli@cs.wisc.edu>
Fri, 18 Mar 2011 20:37:35 +0000 (15:37 -0500)
committerBo Li <bli@cs.wisc.edu>
Fri, 18 Mar 2011 20:37:35 +0000 (15:37 -0500)
rsem-plot-model

index 333a9e7b2e9b2ba1371f06f56e52d3b6cbbf6a87..e9225eddf41466424d265cc9b55ef7ebf96b7aa4 100755 (executable)
@@ -23,7 +23,8 @@ std <- sqrt(weighted.mean((x - mean)^2, y))
 plot(x, y, type = "h", main = "Fragment Length Distribution", sub = paste("Mean = ", mean, ", Std = ", std), xlab = "Fragment Length", ylab = "Probability")  
 
 # mate length distribution
-bval <- as.numeric(readLines(con, n = 1)[1])
+if (model_type == 0 || model_type == 1) bval <- as.numeric(readLines(con, n = 1)[1]) else bval <- 1
+
 if (bval == 1) {
   list <- strsplit(readLines(con, n = 2), split = " ")
   vec <- as.numeric(list[[1]])