# 时间:2023-11
# 公司:北京维斯恩思软件有限责任公司
# 电话:010-62680244
# 邮箱:China@vsni.co.uk
# 本资料仅供学习,请勿用于商业用途,请勿传播。asreml软件学习QQ群:398671275
# 安装所需要的包,运行下面代码,如果没有安装就会自动安装
# 如果已经安装过了,就不会安装。
if(!require(factoextra)) install.packages("factoextra")
if(!require(curl)) install.packages("curl")
if(!require(scattermore)) install.packages("scattermore")
if(!require(AGHmatrix)) install.packages("AGHmatrix")
if(!require(superheat)) install.packages("superheat")
if(!require(data.table)) install.packages("data.table")
if(!require(ggplot2)) install.packages("ggplot2")
if(!require(jsonlite)) install.packages("jsonlite")
if(!require(tidyverse)) install.packages("tidyverse")
if(!require(openxlsx)) install.packages("openxlsx")
# 安装asreml和ASRgenomics包,ASRgwas包和ASRtraila包
## 把路径设置为当前路径:
## 设置工作路径,Session -> Set Working Directory -> To Source File Location,
## 该方法将代码所在的路径设置为工作路径。
# 安装ASReml包
install.packages("asreml_4.1.0.176.zip",repos = NULL,type = "win.binary")
# install.packages("asreml-4.1.0.176-Ubuntu-18-R4.2.tar.gz",repos = NULL) # Linux,分为centos和ubuntu,注意区分
# install.packages("asreml-4.1.0.176-macOS-10.13.2-R4.2.tar.gz",repos = NULL,type = "source") # Mac
install.packages("ASRgenomics_1.1.1.zip",repos = NULL,type = "win.binary") # windows
# install.packages("ASRgenomics_1.1.1_R_x86_64-pc-linux-gnu.tar.gz",repos = NULL) # Linux
# install.packages("ASRgenomics_1.1.1.tgz",repos = NULL,type = "source") # Mac
install.packages("ASRgwas_1.0.1.zip",repos = NULL,type = "win.binary") # windows
# install.packages("ASRgwas_1.0.0_R_x86_64-pc-linux-gnu.tar.gz",repos = NULL) # Linux
# install.packages("ASRgwas_1.0.0.tgz",repos = NULL,type = "source") # Mac
install.packages("ASRtriala_1.0.0.zip",repos = NULL,type = "win.binary") # windows
# install.packages("ASRtriala_1.0.0_R_x86_64-pc-linux-gnu.tar.gz",repos = NULL) # Linux
# install.packages("ASRtriala_1.0.0.tgz",repos = NULL,type = "source") # Mac
# 激活asreml
library(asreml)
asreml.license.activate() # 键入code,类似:AABB-CCDD-EEFF-GGHH。注意,不要把code放到括号中,是运行完填写
asreml.license.status()
asreml.license.offline(5) # 设置offline
## 更新asreml4.2,需要在asreml4.1激活之后操作
install.packages("asreml_4.2.0.276.zip",repos = NULL,type = "win.binary")
# install.packages("asreml_4.2.0.276_linux-intel64_R4.3.0.tar.gz",repos = NULL) # Linux,分为centos和ubuntu,注意区分
# install.packages("asreml_4.2.0.276-intel.tgz",repos = NULL,type = "source") # Mac
# 检测是否安装成功 ,如果不报错,说明安装完成
library(data.table)
library(openxlsx)
library(tidyverse)
library(asreml)
library(ASRgenomics)
library(ASRgwas)
asreml.license.status()
1+1
水w
- 粉丝: 3204
- 资源: 6
最新资源
- java.中间件.md
- java.缓存Redis.md
- SystemExit(解决方案).md
- runtime_error如何解决.md
- RenderTargetNotFoundException解决办法.md
- SystemStackError(解决方案).md
- type_error如何解决.md
- java.消息队列Kafka.md
- RenderTargetUnavailableException解决办法.md
- index_error如何解决.md
- value_error如何解决.md
- RenderingTimeoutException解决办法.md
- LocalJumpError(解决方案).md
- java.RabbitMQ.md
- java.日志与监控.md
- VertexBufferOverflowException解决办法.md
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈