Skip to content

Commit

Permalink
Don't rank null data
Browse files Browse the repository at this point in the history
Don't compute ranks of null data in function `detect.outliers()`.
Rather, ranks are computed as each observed transcript is added to the
null data.
  • Loading branch information
jsahrmann committed Mar 12, 2024
1 parent bd9cd23 commit a1e70b6
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions R/detect.outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,15 +238,6 @@ detect.outliers <- function(data, num.null) {
fraction.kmeans = fraction.kmeans,
cosine.similarity = cosine.similarity
);
# Assign ranks within each method.
null.5method.ranks <- outlier.rank(
outlier.statistics.matrix = null.5method
);
# Compute the rank product for each null transcript.
null.5method.rank.product <- outlier.rank.product(
ranks.matrix = null.5method.ranks,
num.allowed.NA = 0
);

list(
optimal.distribution.data = optimal.distribution.data,
Expand All @@ -265,8 +256,6 @@ detect.outliers <- function(data, num.null) {
observed.5method.rank.product = observed.5method.rank.product,
null.data = null.data,
optimal.distribution.null.data = optimal.distribution.null.data,
null.5method = null.5method,
null.5method.ranks = null.5method.ranks,
null.5method.rank.product = null.5method.rank.product
null.5method = null.5method
);
}

0 comments on commit a1e70b6

Please sign in to comment.