From 7c2e4c431f433839ff1bdbae862925d402d19b8b Mon Sep 17 00:00:00 2001 From: Waldir Leoncio Date: Tue, 29 Jun 2021 10:37:52 +0200 Subject: [PATCH] Reformatting output --- R/computeDiffInCounts.R | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/R/computeDiffInCounts.R b/R/computeDiffInCounts.R index a76d797..40055d8 100644 --- a/R/computeDiffInCounts.R +++ b/R/computeDiffInCounts.R @@ -13,5 +13,11 @@ computeDiffInCounts <- function(rows, max_noalle, nloci, data) { diffInCounts[row(notEmpty) + (notEmpty - 1) * max_noalle] + 1 } } + diffInCounts <- matrix( + data = diffInCounts[!is.na(diffInCounts)], + nrow = max_noalle, + ncol = nloci, + byrow = TRUE + ) return(diffInCounts) }