Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with smarteigenstrat.perl accepting pca output from smartpca.perl #75

Open
harrsha4 opened this issue Feb 18, 2022 · 4 comments
Open

Comments

@harrsha4
Copy link

kuretlab@Synuclein:~/Bayesian/EIG/bin$ $ ./smarteigenstrat.perl -output.geno -a output.snp -b output.ind -p output.evec -o output.chiseq -l output.log -k 10
smarteigenstrat -p output.chiseq.par >output.log
OOPS: output.evec contains too many entries

Hello,
I ran smartpca as instructed on my WGS dataset (349 individuals, 20 million SNPs). The smartpca.perl wrapper ran fine producing 10 principal components in an .evec file. However, when loading the pca file into smarteigenstrat.perl, the aforementioned error was returned. What I find interesting is that after outlier removal by smartpca, the .ind file had 349 individuals even when sigma was at default value and the log file noted the removal of outliers (around 30 individuals). Is there something I can do to fix this. Thanks in advance

@kristjanmoore
Copy link

Try -i output.geno instead of -output.geno.

@Ajeet1699
Copy link

Ajeet1699 commented Feb 7, 2025

Hi,

I am trying to run the eigenstrat, and it is giving me error.

~/software/EIG-7.2.1/bin/smarteigenstrat.perl -i convertf_out.eigenstratgeno -a convertf_out.snp -b convertf_out.ind -p smartpca.pca.evec -o smarteigenstrat.chisq -l smarteigenstrat.log -k 10
~/software/EIG-7.2.1/bin/smarteigenstrat -p smarteigenstrat.chisq.par >smarteigenstrat.log
OOPS: smartpca.pca.evec contains too many entries
head -2 smartpca.pca.evec

#eigvals: 1.571 1.178 1.128 1.111 1.092 1.085 1.076 1.072 1.069 1.066
SA_111__snpArray 0.0013 0.0306 -0.1754 -0.0894 0.1311 0.0199 0.0054 0.1591 0.1337 0.1837 ???
`
Any help with that? Thanks.

@bumblenick
Copy link

bumblenick commented Feb 7, 2025 via email

@Ajeet1699
Copy link

I have also tried without perl.

~/software/EIG-7.2.1/bin/smarteigenstrat -p smarteigenstrat.chisq.par
parameter file: smarteigenstrat.chisq.par
genotypename: convertf_out.eigenstratgeno
snpname: convertf_out.snp
indivname: convertf_out.ind
pcaname: smartpca.pca.evec
outputname: smarteigenstrat.chisq
numeigs: 10
qtmode: NO
OOPS: smartpca.pca.evec contains too many entries

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants