Skip to content

Commit

Permalink
Thresholds changed
Browse files Browse the repository at this point in the history
  • Loading branch information
GermanDemidov committed Dec 5, 2019
1 parent 61d3d77 commit 9789c18
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion generalHelpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,16 @@ gc_and_sample_size_normalise <- function(info, coverages, averageCoverage=T, all
gcs <- info[,4]
uniques_gcs <- unique(gcs)
uniquesGcsToExclude = c()
empricial_criterion_for_exclusion = 25
if (nrow(coverages) > 10000) {
empricial_criterion_for_exclusion = 50
}
if (nrow(coverages) > 100000) {
empricial_criterion_for_exclusion = 100
}

for (i in 1:length(uniques_gcs)) {
if (length(which(gcs == uniques_gcs[i])) < 25) {
if (length(which(gcs == uniques_gcs[i])) < empricial_criterion_for_exclusion) {
uniquesGcsToExclude = c(uniquesGcsToExclude, i)
}
}
Expand Down

0 comments on commit 9789c18

Please sign in to comment.