遗传图绘制:

遗传图绘制代码演示


代码参考: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
  • 阅读 ( 574 )
  • 分类:遗传进化

0 条评论

请先 登录 后评论
omicsgene
omicsgene

生物信息

691 篇文章

作家榜 »

  1. omicsgene 691 文章
  2. 安生水 340 文章
  3. Daitoue 167 文章
  4. 生物女学霸 120 文章
  5. 红橙子 78 文章
  6. xun 76 文章
  7. rzx 74 文章
  8. CORNERSTONE 72 文章