Skip to content

Commit

Permalink
removed ugly brackets in score printing, fixes #10
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanpw committed Oct 2, 2020
1 parent b6a13b8 commit b505884
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions bin/compute_score-nogrid.R
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,8 @@ for(i in 5:len_i){


score <- (score/(len_i^2))
print(score)
#print(score)
cat(score, "\n")


sampling_value <- 5
Expand All @@ -461,7 +462,7 @@ png(paste(path_mat, ".filt.png", sep=""), width = length(data[,1]), height = len
image(t(final_image), col = grey(seq(1, 0, length = 256)), xaxt='n', yaxt='n', main = paste(fancy_name, paste("filt. score=", score)), xlab = name_x, ylab = name_y, axes = FALSE)
axis(1, tick = TRUE, labels = (coords1), at = c(0.0, 0.2, 0.4, 0.6, 0.8, 1))
axis(2, tick = TRUE, labels = rev(coords2), at = c(0.0, 0.2, 0.4, 0.6, 0.8, 1))
dev.off()
tmp <- dev.off()


# Output pixel coordinates of highly conserved signals
Expand Down
5 changes: 3 additions & 2 deletions bin/compute_score.R
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,8 @@ for(i in 5:len_i){


score <- (score/(len_i^2))
print(score)
#print(score)
cat(score, "\n")


sampling_value <- 5
Expand Down Expand Up @@ -523,7 +524,7 @@ for (y_tick in seq_y_percentages)
abline(h = y_tick, lty = 'dotted')
}

dev.off()
tmp <- dev.off()


# Output pixel coordinates of highly conserved signals
Expand Down

0 comments on commit b505884

Please sign in to comment.