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
# load CC data
library(qtl2)
file<- paste0("https://raw.githubusercontent.com/rqtl/",
"qtl2data/master/CC/cc.zip")
cc<- read_cross2(file)
# subset to chr 17-19cc<-cc[,17:19]
# convert to 4-way RIL by selfing, by subsetting the founderscc$crosstype<-"riself4"for(iin seq_along(cc$founder_geno)) cc$founder_geno[[i]] <-cc$founder_geno[[i]][1:4,]
cc$alleles<-cc$alleles[1:4]
cc$cross_info<- t(apply(cc$cross_info, 1, function(a) a[a<=4]))
# calculate genotype probabilities and allele probabilitiespr<- calc_genoprob(cc, cores=0)
apr<- genoprob_to_alleleprob(pr, cores=0)
# check that there the same except for an attribute + column names
attr(apr, "alleleprobs") <-FALSEfor(iin seq_along(apr)) colnames(apr[[i]]) <- colnames(pr[[i]])
testthat::expect_equal(apr, pr)
It was reported at the R/qtl2 discussion group that
genoprob_to_alleleprob()
returned an empty list for cross type"riself4"
.The text was updated successfully, but these errors were encountered: