You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imported 126351 SNP by 9411 sample genotype matrix
Time elapsed: 0h 0m 44s
Filtering data...
Error in smart_pca(snp_data = gfile, sample_group = group_id, missing_value = 9, :
length(sample_group) should be equal to number of samples in dataset: computation aborted
This is an uninformative error, as it doesn't report the expected number of samples given by sample_group variable. I added code to do this (see separate pull request #5.), but upon installing this branch, the error went away. This is reproducible with the main branch:
Imported 126350 SNP by 9411 sample genotype matrix
Time elapsed: 0h 0m 8s
Filtering data...
126350 SNPs included in PCA computation
2504 samples included in PCA computation
6907 samples projected after PCA computation
Completed data filtering
Time elapsed: 0h 0m 14s
Scanning for invariant SNPs...
Scan complete: no invariant SNPs found
Time elapsed: 0h 0m 28s
Checking for missing values...
Scan completed: no missing values found
Time elapsed: 0h 0m 29s
Scaling values by SNP...
Centering and scaling by drift dispersion...
Completed scaling using drift
Time elapsed: 0h 0m 30s
Computing singular value decomposition using RSpectra...
Completed singular value decomposition using RSpectra
Time elapsed: 0h 0m 51s
Extracting eigenvalues and eigenvectors...
Eigenvalues and eigenvectors extracted
Time elapsed: 0h 0m 51s
Projecting ancient samples onto PCA space
PCA space = PC1PC2
Completed ancient sample projection
6907 ancient samples projected
Time elapsed: 0h 2m 5s
Tabulating PCA outputs...
Completed tabulations of PCA outputs...
I note that the number of SNPs differs by 1. Has the function to read in traw files changed?
session_info()
setting value
version R version 4.2.1 (2022-06-23 ucrt)
os Windows 10 x64 (build 18363)
system x86_64, mingw32
ui RStudio
language (EN)
collate English_Australia.utf8
ctype English_Australia.utf8
tz Australia/Adelaide
date 2022-08-01
rstudio 2022.02.3+492 Prairie Trillium (desktop)
pandoc NA
The text was updated successfully, but these errors were encountered:
joshuamschmidt
changed the title
error with CRAN install not reproduced after installation from github
n samples in sample_group and datafile are different error with CRAN install, not reproduced after installation from github
Aug 1, 2022
Get an error that n samples in sample_group and datafile are different when they are not:
This is an uninformative error, as it doesn't report the expected number of samples given by sample_group variable. I added code to do this (see separate pull request #5.), but upon installing this branch, the error went away. This is reproducible with the main branch:
I note that the number of SNPs differs by 1. Has the function to read in traw files changed?
The text was updated successfully, but these errors were encountered: