You might try first running calc.genoprob with error.prob=0.01 or
=0.001.
That would allow a bit of fuzziness and might prevent this problem.
karl
Hello Dr. Broman,
I am having a similar issue when I run the cim() function using the "ehk" method. The code is given below:
#### loading the data and calculating genoprob. I am running the analysis on a RIL population by selfing.
Rqtl.data = read.cross("csv", "F:/LAB_WORK/WUENUE/GRxI_QTL_R/", "my_pheno_geno_data.csv", alleles = c("A", "B"), genotypes = c("AA", "BB"))
Rqtl.data <- convert2riself(Rqtl.data)
grxi.genoprob = calc.genoprob(Rqtl.data, step = 1, error.prob = 0.001)
#### running cim() on all my traits
phen.col = 2:35
n.phe = length(phen.col)
ehk.cim <- ehk.cim.p1000 <- vector("list", n.phe)
thr.ehk <- rep(NA, n.phe)
for(i in seq(1, length(phen.col), 1)) {
ehk.cim.p1000[[i]] <- cim(grxi.genoprob, pheno.col = phen.col[i], n.marcovar = 10, window = 15, method = "ehk", n.perm = 20)
thr.ehk[i] <- summary(ehk.cim.p1000[[i]], alpha = 0.05)
ehk.cim[[i]] <- cim(grxi.genoprob, pheno.col = phen.col[i], n.marcovar = 10, window = 15, method = "ehk")
}
I get 50 warnings that read:
X'X matrix is singular
And in some warning messages I can get:
Didn't converge at position 141
The position that didn't converge changes each time I run the cim() function
I also tried running calc.genoprob with error.prob = 0.01 but I still get the same warning messages.
Here are some diagnostics I have done:
1) I do not have any markers with the same allele for all individuals (total 89 individuals)
2) I do not have any markers in the same genetic position
3) I do not have markers that are linked in different chromosomes
4) I do have a pair of individuals that are 90% similar and another pair that are 80% similar genotypically
5) I have 8 RILs that have between 30 and 40 crossovers
Can you please provide further advice on how to troubleshoot this problem?
Thank you,
Miguel Macias Gonzalez