Comments (3)
Hello Oliver,
The most likely reason I can think of in this case is that this is due to genotyping errors: Based on the presumed genotyping error rate you provide ('Err'), a maximum is calculated for the number of opposing homozygous (OH) loci between parent-offspring pairs and parent-parent-offspring trios. If the OH count for a pair exceeds this value, the likelihood to be parent-offspring is not calculated (as there is no point and would just take time). If you run CalcPairLL()
with 'U' specified as focal relationship, it should a likelihood value for PO, as they do not appear to be excluded based on age difference.
To check whether this is indeed the problem, you can run sequoia()
and/or GetMaybeRel()
with a higher presumed genotyping error rate than you used now. The thresholds sequoia()
used are in the $specs
element of the output, they are calculated by CalcMaxMismatch()
.
If this does not solve the problem, please let me know!
Edit: Actually, if genotyping error rate is the problem, the PO column should be '999' (=missing) rather than '777' (=impossible). It's hard to know what the problem is without the arguments that you passed to CalcPairLL()
, but I am going to assume this is conditional on the pedigree and you have specified strict monogamy? An individual can only get assigned a single parent when that parent has no other offspring yet (i.e. doesn't have a monogamous mate yet), otherwise only a parent-pair gets assigned. I think this criterium is not behaving as expected in combination with CalcPairLL()
(or GetMaybeRel()
), and I think it would give you likelihoods if you specify Complex='simp'
(or edit the value in $Specs
if you are providing SeqList
.
I'd like to resolve this issue; would you be able/allowed to email me your data, or mock data generating the same problem?
Thanks,
Jisca
from sequoia.
Hi Jisca,
Thanks for your detailed response. Yes, it's not a problem of genotyping error. All of these SNPs have been filtered for Mendelian impossibilities based on the pedigree. I am being very strict with my calling and filtering before getting to this stage.
The command I use is:
sequoia_out_assign <- sequoia(GenoM = sequoia_geno,
LifeHistData = life_hist,
Module = "par")
The information I give is very minimal. The life_hist
object has columns ID, Sex, BirthYear (BirthYear==2020 for parents, BirthYear==2021 for offspring). I am not specifying monogamous mating in these tests; my aim is to test the use of this software + these sites for deployment with wild-caught individuals where no information except rough age is known (only slightly overlapping generations in the wild and polyandry + polygyny). Later I will be doing more extensive tests by dropping parents from consideration and simulating more complicated scenarios. For now, I am confirming that I can reconstruct the simple monogamous pedigree.
A curious thing: although there are no opposing homozygous SNPs between these offspring and these parents, there is indeed a small set of SNPs which are causing a problem. I start with ~330 SNPs and when I take a random subset of these sites I sometimes get 100 % accuracy (all parents correctly assigned). I took more random subsets and ranked SNPs by assignment accuracy and I find a consistent set of 35 SNPs the removal of which gives perfect assignment accuracy. When I look at the genotypes of these SNPs for the offspring and the parents I see nothing out of the ordinary. Although this is good, it does not answer what is causing the issue.
What is your best email address? I can send the plink files + life history data to recreate the issue.
Oliver
from sequoia.
Well that's odd indeed!
From your detective work it does sound like an issue with those 35 SNPs is the most likely - perhaps genotyping errors that did not result in Mendelian impossibilities, but in Mendelian highly unlikely genetic combinations for a parent-parent-offspring trio. If this is indeed the problem, it should work OK if you set a higher presumed genotyping error rate, e.g. 5e-4 or 1e-3 instead of the default value of 1e-4.
My email address is jisca.huisman @ gmail.com , thanks! Could you please also include the argument you used for GetMaybeRel? As that may or may not be a separate issue.
from sequoia.
Related Issues (17)
- Fortran runtime error on Ubuntu 16.04 HOT 6
- Sequoia no longer on CRAN HOT 1
- Known crosses as prior info HOT 1
- R version for sequoia HOT 2
- Sequoia running forever HOT 2
- installation of package ‘/var/folders/dc/5j3hs53s2cn0lhr1ps49slfw0000gn/T//RtmpNYHr2z/file1c0916e8a227/sequoia_2.3.3.tar.gz’ had non-zero exit status HOT 1
- Error: Sibship number out of bounds HOT 6
- Silly question for a very usefull package HOT 2
- Feature Request: Generation Time HOT 5
- Sequoia crashes when embedded in "loop for" in R HOT 7
- Error from R when trying to export dataset after a sequoia run. HOT 2
- Error in SeqParSib : 'AgePriors' matrix should have size nAgeClasses * 8 HOT 2
- Option suggestion "Overlapping=T or F" & Analysis questions HOT 1
- segmentation fault error in Sequoia HOT 4
- sequoia error can't find ErrM HOT 1
- ErrM not found with DuplicateCheck HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequoia.