DMU在windows下安裝測(cè)試—外篇11. 下載地址下載地址:http://dmu./ 64為電腦安裝DMUv6-R5-2-EM64T.msi, 32為電腦安裝DMUv6-R5-2.msi 2. 安裝DMU3. 測(cè)試DMU是否安裝成功3.1 保存測(cè)試數(shù)據(jù) #dir.create("d:/ddmu-test")setwd("d:/ddmu-test/")library(devtools)install_github("dengfei2013/learnasreml")library(learnasreml) data("animalmodel.dat") data("animalmodel.ped") dat = animalmodel.dat ped = animalmodel.ped dmuped = ped dmuped$Birth = 2018library(data.table)# write.table(dat,"animal-model.txt",row.names = F,col.names = F)fwrite(dat,"animal-model.txt",sep = " ",col.names = F) fwrite(dmuped,"animal-ped.txt",sep = " ",col.names = F) 3.2 查看數(shù)據(jù) 3.3 將下面內(nèi)容保存為:Uni_animal.DIR $COMMENTEstimate variance components for BWT Model y: BWT fixed: BYEAR + SEX random: ANIMAL $ANALYSE 1 1 0 0 $DATA ASCII (4,2,0) d:/dmu-test/animal-model.txt $VARIABLE ANIMAL MOTHER BYEAR SEX BWT TARSUS $MODEL 1 0 1 0 3 3 4 1 1 0 0 $VAR_STR 1 PED 2 ASCII d:/dmu-test/animal-ped.txt $PRIOR 1 1 1 0.3 2 1 1 0.7 注意, 先建立txt, 然后將其重命名為:Uni_animal.DIR, 這里DIR是后綴, 而不是默認(rèn)的txt 3.4 找到DMU的安裝路徑, copy文件我的默認(rèn)的安裝路徑如下:C:\Program Files (x86)\QGG-AU\DMUv6\R5.2-EM64T\bin 將這些文件copy到你的數(shù)據(jù)文件夾下. 數(shù)據(jù)文件夾里面的內(nèi)容有: 3.5 打開(kāi)cmd
3.6 執(zhí)行命令 run_dmuai.bat Uni_animal3.7 查看結(jié)果 4. 千里之行, 始于足下能夠運(yùn)行DMU的示例文件, 只是第一步, 隨后你可以看看示例數(shù)據(jù)是什么結(jié)構(gòu), 怎么調(diào)整自己的數(shù)據(jù), 怎么調(diào)整DIR文件, 加油, 祝你好運(yùn). |
|
來(lái)自: 育種數(shù)據(jù)分析 > 《待分類(lèi)》