Skip to content

Commit

Permalink
Update smart_pca.R
Browse files Browse the repository at this point in the history
Fixed issue #7
  • Loading branch information
ChristianHuber authored Jan 24, 2024
1 parent 37b1395 commit 01e53da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/smart_pca.R
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ smart_pca <- function(snp_data, packed_data = FALSE,
genoMean <- genoMean[keepSNPs] # compute SNP means
genoVar <- genoVar[keepSNPs] # compute SNP variances
if (!isFALSE(sample_project)) {
snp_dat2 <- snp_dat2[keepSNPs, ] # remove invariant SNPs from ancient samples
snp_dat2 <- snp_dat2[keepSNPs, , drop = FALSE] # remove invariant SNPs from ancient samples
}
}
rm(keepSNPs) # remove vector with indices for variant SNPs
Expand Down

0 comments on commit 01e53da

Please sign in to comment.