在染色体上绘制映射的SNP?

时间:2019-08-14 12:01:00

标签: r ggplot2

我试图绘制一个类似附件“ Mapsnp:用于绘制单核苷酸多态性基因组图的R包”的图。我无法在R中安装软件包,我想知道还有其他方法吗? enter image description here

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

0 个答案:

没有答案