James E Specht
unread,Feb 21, 2012, 6:54:33 PM2/21/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rqtl...@googlegroups.com
Karl: My students have been
working their way thru your nicely documented tutorial for Genetic map
construction with R/qtl, using your supplied command code for this tutorial.
However, one student who followed up on the mapthis.clean set of
cmds (see below) with his own extra follow-up plot.geno command indicated
to me that the eight genotypes did not seem to have been cleaned up (i.e.,
converted to NA or missing) in the mapthis.clean object. I did note
to the student that the solid or open symbols red-boxed in the 1st plot
did disappear in the 2nd plot (in some cases replaced by an x symbol),
but red boxes were still present in the 2nd plot at the same positions.
Can you offer us some insight or clarification on this? Thanks!
- Jim
> ### chunk number 122: plotgeno
eval=FALSE
> ###################################################
> ## #line 1920 "geneticmaps.Rnw"
> ## plot.geno(mapthis, chr=1, ind=toperr$id[toperr$chr==1],
> ##
cutoff=6, include.xo=FALSE)
>
>
> ###################################################
> ### chunk number 123: plotgenoplot
> ###################################################
> #line 1927 "geneticmaps.Rnw"
> par(mar=c(4.1,4.1,0.6,0.6), las=1,
cex.axis=0.9)
> plot.geno(mapthis, chr=1, ind=toperr$id[toperr$chr==1],
main="", cex=0.8,
+
include.xo=FALSE, cutoff=6)
>
>
> ###################################################
> ### chunk number 124: dropgenotypes
> ###################################################
> #line 1953 "geneticmaps.Rnw"
> mapthis.clean <- mapthis
> for(i in 1:nrow(toperr)) {
+ chr <- toperr$chr[i]
+ id <- toperr$id[i]
+ mar <- toperr$marker[i]
+ mapthis.clean$geno[[chr]]$data[mapthis$pheno$id==id,
mar] <- NA
+ }
>
>
> plot.geno(mapthis.clean, chr=1,
ind=c("id200","id36","id236","id217","id235","id261","id87","id72"),cutoff=6,include.xo=FALSE)