Dear Karl,I am using r/qtl to make a map for Brassica F7 RIL population. It is recognized as F2 "I think that should be ok?".
I used this scriptMap <- read.cross("csv", "M:/R-qtl", "Map.csv", na.strings="na",genotypes=c("a","h","b"),alleles=c("a","b"), estimate.map=FALSE), but I got thiswarnning messageIn summary.cross(cross) :
Some chromosomes > 1000 cM in length; there may be a problem with the genetic map.
(Perhaps it is in basepairs?)I tried your reply to a previouse question by using (estimate.map, replace.map), but it didn't help.Any advice?
x <- read.csv("bath")
row.names(x)
<- x$Name
x<- x[,4:20]
x_matrix <- data.matrix(x)
x_matrix <- t(x)
heatmap(as.matrix(x_matrix,nrow(x_matrix),ncol(x_matrix)),Colv=NA)
I've never used the function heatmap(), but I expect it's similar to image(), for which you'd specify colors with the argument 'col' and intervals with 'breaks', like the following:
x <- matrix(runif(100, -6, 6), ncol=10)
colorpal <- c("green","blue","white","yellow","red")
brks <- c(-6, -4, -2, 2, 4, 6)
image(x, col=colorpal, breaks=brks)
To get a color scale, I've generally used layout() to create two side-by-sdie
layout(cbind(1,2), width=c(6,1))
colorpal <- c("green","blue","white","yellow","red")
brks <- c(-6, -4, -2, 2, 4, 6)
image(x, col=colorpal, breaks=brks)
v <- seq(-6, 6, length=251)
image(1, v, matrix(v, nrow=1), col=colorpal, breaks=brks, ylab="", xaxt="n", xlab="")
karl
> --
> You received this message because you are subscribed to the Google Groups "R/qtl discussion" group.
> To post to this group, send email to rqtl...@googlegroups.com.
> To unsubscribe from this group, send email to rqtl-disc+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/rqtl-disc?hl=en.