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
We have been trying to set up PCAngsd/ANGSD, to test for relatedness among our clinical datasets.
We've been following along with the methods that were used in the "Whole genome analysis sheds light on the genetic origin of Huns, Avars and conquering Hungarians" paper.
In particular this section:
"Presence of close relatives in the dataset interferes with unsupervised ADMIXTURE and population genetic analysis, therefore we identified close kins and just one of them was left in the dataset (Supplementary Table 9). We performed kinship analysis using the 1240K data set and the PCAangsd software (version 0.931)(Meisner and Albrechtsen 2018) from the ANGSD package with the “-inbreed 1 -kinship” options. We used the R (version 4.1.2); the RcppCNPy R package (version 0.2.10) to import the Numpy output files of PCAangsd."
Based on this, I took a trio and ran it through ANGSD to generate a BEAGLE file.
Hi All!
We have been trying to set up PCAngsd/ANGSD, to test for relatedness among our clinical datasets.
We've been following along with the methods that were used in the "Whole genome analysis sheds light on the genetic origin of Huns, Avars and conquering Hungarians" paper.
In particular this section:
"Presence of close relatives in the dataset interferes with unsupervised ADMIXTURE and population genetic analysis, therefore we identified close kins and just one of them was left in the dataset (Supplementary Table 9). We performed kinship analysis using the 1240K data set and the PCAangsd software (version 0.931)(Meisner and Albrechtsen 2018) from the ANGSD package with the “-inbreed 1 -kinship” options. We used the R (version 4.1.2); the RcppCNPy R package (version 0.2.10) to import the Numpy output files of PCAangsd."
Based on this, I took a trio and ran it through ANGSD to generate a BEAGLE file.
angsd -GL 1 -out CA0346.angsd -nThreads 4 -doGlf 2 -doMajorMinor 1 -doMaf 2 -SNP_pval 1e-6 -bam CA0346.bamslist
The beagle file looked as such:
Then taking this beagle file, I ran pcangsd on it:
python pcangsd.py -beagle ~/data/CA0346.angsd.beagle.gz -o ~/data/Test-inbreed-3 -inbreed 1 -kinship -threads 4
Resulting in the following output files: ( which I have output using jupyter notebook for clarity )
inbreed
[-0.40427923 -0.84753537 -0.85559165]
kinship:
[[ 0.15704742 -0.0919658 -0.08373455]
[-0.0919658 0.05300118 0.05168671]
[-0.08373455 0.05168671 0.04196488]]
covariance:
[[ 0.33447766 -0.15413524 -0.18028733]
[-0.15413524 0.75423872 -0.59264392]
[-0.18028733 -0.59264392 0.77522612]]
Unfortunately, the documentation for the PCAngsd is lacking in explanation of output.
If anyone could help us interpret this output, and verify that our commands, and process were correct, that'd be a tremendous help!
We were expecting 2 first degree relationships (child parent) and one unrelated (parents).
Thank you for this cool software, and have a good one!
Fidi
The text was updated successfully, but these errors were encountered: