首页 > 解决方案 > 在染色体上绘制映射的 SNP?

问题描述

我试图绘制一个图,如附加的“Mapsnp:绘制单核苷酸多态性基因组图的 R 包”。我无法在 R 中安装软件包,我想知道有没有其他方法?在此处输入图像描述

File A:

GeneA   chr2  100   200


File B:

rs12   chr2    50   51
rs23   chr2    201  202
rs34   chr2    105  106



>install.packages("mapsnp")
Installing package into ‘/home/R/x86_64-pc-linux-gnu- 
library/3.5’
(as ‘lib’ is unspecified)
Warning in install.packages :
  package ‘mapsnp’ is not available (for R version 3.5.2)

> library("devtools")
Loading required package: usethis
> install_github("csuzfq/mapsnp_pkg/mapsnp")
Downloading GitHub repo csuzfq/mapsnp_pkg@master
Skipping 2 packages not available: Gviz, 
TxDb.Hsapiens.UCSC.hg19.knownGene
✔  checking for file ‘/tmp/RtmpT9p596/remotes341269c2a94b/csuzfq- 
mapsnp_pkg-cb6c8bf/mapsnp/DESCRIPTION’ ...
─  preparing ‘mapsnp’:
✔  checking DESCRIPTION meta-information
   Warning in file(con, "r") :
     cannot open file 'man': No such file or directory
    ERROR
   computing Rd index failed:cannot open the connection
Error: Failed to install 'mapsnp' from GitHub:
  System command error, exit status: 1, stderr:
E> Warning in file(con, "r") :
E>   cannot open file 'man': No such file or directory

标签: rggplot2

解决方案


推荐阅读