遗传图绘制:

遗传图绘制代码演示


代码参考:https://cran.r-project.org/web/packages/LinkageMapView/vignettes/LinkageMapView.html



library(LinkageMapView)
#示例数据
data(carrot)
head(carrot)

carrot=carrot[order(carrot$group),]


outfile="genetic_map_ruler.pdf"
lmv.linkage.plot(carrot,outfile,ruler = TRUE,lg.col = "lightblue1")
outfile="genetic_map_noruler.pdf"
lmv.linkage.plot(carrot,outfile,ruler = F,lg.col = "lightblue1")
## draw tickmarks at each cM from 0 to largest position of linkage groups to be drawn
maxpos <- floor(max(carrot$position))
at.axis <- seq(0, maxpos)
## put labels on ruler at every 10 cM
axlab <- vector()
for (lab in 0:maxpos) {
  if (!lab %% 10) {
    axlab <- c(axlab, lab)
  }
  else {
    axlab <- c(axlab, NA)
  }
}
outfile="genetic_map.pdf"
lmv.linkage.plot(carrot,outfile,denmap=TRUE, cex.axis = 1, at.axis = at.axis, labels.axis = axlab)



有标尺

attachments-2024-02-JbDC2Vll65d6fe65ec264.png
无标尺

attachments-2024-02-BgGKisLo65d6fe8c49805.png
热图



attachments-2024-02-EgnhpVcI65d6feb165ba3.png

  • 发表于 2024-02-22 15:59
  • 阅读 ( 213 )
  • 分类:遗传进化

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

658 篇文章

作家榜 »

  1. omicsgene 658 文章
  2. 安生水 328 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. CORNERSTONE 72 文章
  7. xun 68 文章
  8. rzx 67 文章