On Jan 28, 2013, at 10:25 AM, HASmith <
hasmith...@gmail.com> wrote:
> Hi,
> I'm trying to use rqtl to assess recombination frequency. Yet when I use the plotRF function, I know that red = high lod score & low recombination frequency, but what is the scale (i.e., what cutoffs/numeric thresholds are used to define red, blue, etc.)?
The scale is relatively arbitrary. We threshold the high LOD scores (argument zmax, with default value 10) and transform the recombination fractions to be on a similar scale (with the formula -4*(log2(rf) + 1)/12 * zmax ).
> For me an even better result would be perhaps if it were possible to generate a plot showing all markers on the x-axis, and the recombination frequency on the y-axis. I found a somewhat similar function described in an online rqtl guide to mapping (rf <- pull.rf(mapthis); lod <- pull.rf(mapthis, what="lod"); plot(as.numeric(rf), as.numeric(lod), xlab="Recombination fraction", ylab="LOD score"). Yet as this is plotting against lod score, it's not quite what I need. The closest I came up with was to use write.csv to save the "rf" matrix to a file, then take the average down each column for a value of the recombination frequency at that marker. Does this sound correct, or is there a better way? Sorry if it's a somewhat basic question.
I'm not sure what you're trying to look at. There is an estimated recombination fraction and LOD score for every pair of markers. The code you cite, using pull.rf(), pulls out the two things as two separate square matrices, with rows and columns corresponding to markers. But I'm not sure why you'd be interested in the column averages.
karl