Open ncsumaize opened 7 months ago
Hi Jim! this error is because nstates = 2. I just realized that I have not tested as deeply as I thought other states than 3. I will work on it and get back to you. Meanwhile, you can get the results by using the option save.results = F . The results that are saved are just the plots. Once I have figured out where the problem is I will get back to you. Let me know if you see any other problems. :-)
I may have introduced another problem that may be unrelated. I interpreted this statement in the data input format: "But the interpretation of references allele and alternate allele is completely arbitrary and it is the user who defines them." to mean that REF/ALT alleles do not necessarily correspond to parent_1 vs parent_2 AND can swap back and forth among markers. Now I am guessing my interpretation is wrong. I think it means REF can be either parent_1 OR parent_2 but ALL SNPs should have REF allele correspond to one parent.
In other words, I have two parents aligned to a third distinct line as reference genome. That means at some sites in my VCF parent_1 has REF allele and at other sites parent_2 has REF allele. But if RTIGER expects REF to always correspond to one parent, then it will look like I have just a random mess of haplotypes and probably everything is going to fail even if I can get an output.
So, I am now testing if updating the input files to make REF consistently refer to allele count from one parent will give a sensible output. Can you advise if my new interpretation of REF/ALT is correct?
Hi Jim, that is correct. One parent should always be the reference, but this is up to the user to decide which one. This way, every time RTIGER infers a region as homozygous 1, it means that it belongs to the reference parent you decided upon. Does it make sense?
Yes, the assignment of REF calls to one parental haplotype makes sense. I fixed my input files to correct that problem, but the original error listed at the start of this thread remains. At the moment I am working around the original error by flagging out the graphics output sections of mainfun.R, so I can get the fitted RTIGER object returned.
I get this error after model fitting (I think), GenotypePlots are created and then the error pops, and the object with genotype calls is not returned. Any suggestions on how to work around this error?
Fitting the parameters and Viterbi decoding. post processing value is: TRUE R value autotune is: FALSE Number of iterations run: 30
Plotting samples Genotypes. PLotting CO number per chromosome. Error in names(x) <- value : 'names' attribute [3] must be the same length as the vector [1]