Skip to content

Commit

Permalink
Closing an issue from Marc: hg38 mode, noPlot mode, reduce the number…
Browse files Browse the repository at this point in the history
… of required females for PAR region calling
  • Loading branch information
AHDemiG1 authored and AHDemiG1 committed Oct 5, 2022
1 parent 18972d6 commit 8ab584c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion germline/helpersGermline.R
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ calculateLocationAndScale <- function(bedFile, coverage, genderOfSamples, autoso
whichSamplesUsed = 1:ncol(coverage)
coveragesToDealWith = coverage.normalised[which(bedFile[,1] == chrom),]
if (chrom == "chrX") {
if (length(which(genderOfSamples == "F")) > 0.3 * length(which(genderOfSamples == "M"))) {
if (length(which(genderOfSamples == "F")) > 0.4 * length(which(genderOfSamples == "M"))) {
whichSamplesUsed = which(genderOfSamples == "F")
} else {
whichSamplesUsed = which(genderOfSamples == "M")
Expand Down

0 comments on commit 8ab584c

Please sign in to comment.