I have QTL and eQTL data on a DO population.
I am conducting a conditional analysis, where I condition the QTL analysis on the allele dosage of eQTL lead SNPs (an additive covariate) to compute the
ΔLOD.
I am trying to answer the following question
"How much ΔLOD would we expect simply from sampling variability while conditioning on the specific SNP we care about?"
To answer this, I am considering a bootstrapping-like approach, where I create pseudo-datasets using the following code:
pheno_vec <- as.data.frame(cross_basic$pheno)[, pheno_id]
names(pheno_vec) <- rownames(cross_basic$pheno)
boot_ids <- sample(seq_len(length(pheno_vec)), replace = T)
pheno_boot <-
pheno_vec[boot_ids]
In the pseudo dataset created by this approach, some of the samples are repeated. I am not able to use this bootstrap vector to run a QTL scan (Duplicate names in argument 2). Is there a correct way of achieving this? What other approaches could I use?
I thought of doing `names(pheno_boot) <- names(pheno_vec)`, but I am worried, it breaks the genotype-phenotype association of the samples.