上一页 1 ··· 268 269 270 271 272 273 274 275 276 ··· 408 下一页
摘要: 1、find可以实现对指定文件大小的查找 root@PC1:/home/test2# ls b.ped outcome.map outcome.ped root@PC1:/home/test2# ll -h total 1.4G -rw-r--r-- 1 root root 1.3G 12月 22 阅读全文
posted @ 2021-12-22 23:01 小鲨鱼2018 阅读(1790) 评论(0) 推荐(0)
摘要: 1、 root@PC1:/home/test2# ls b.ped outcome.map outcome.ped xx root@PC1:/home/test2# du -ah ## 显示每一个文件的大小 4.0K ./xx 1.3M ./outcome.map 1.3G ./b.ped 158M 阅读全文
posted @ 2021-12-22 22:43 小鲨鱼2018 阅读(553) 评论(0) 推荐(0)
摘要: 1、croc安装 方法1: curl https://getcroc.schollz.com | bash 方法2(ubuntu): gdebi croc_8.3.2_Linux-64bit.deb ## (需要提前下载好安装包) https://github.com/schollz/croc/re 阅读全文
posted @ 2021-12-22 22:06 小鲨鱼2018 阅读(586) 评论(0) 推荐(0)
摘要: 1、测试主机PC1、PC2 root@PC1:/home/test2# ls root@PC1:/home/test2# hostname PC1 root@PC1:/home/test2# ifconfig | head -n 3 ens32: flags=4163<UP,BROADCAST,RU 阅读全文
posted @ 2021-12-22 21:18 小鲨鱼2018 阅读(174) 评论(0) 推荐(0)
摘要: 1、 dir() dat <- read.table("test.ped") ## 读取测试数据,ped基因型数据 dat genoList =list() for ( i in 1:ncol(dat) ) { ## 将每一列数据保存为列表的一项 genoList[[i]]<- dat[,i] } 阅读全文
posted @ 2021-12-19 23:09 小鲨鱼2018 阅读(483) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test# ls outcome.ped root@PC1:/home/test# cat outcome.ped ## 测试数据, 将每隔一个空格的两列并排为一列 G G C C G G G G G A A A G G G C G G G C G G G 阅读全文
posted @ 2021-12-19 22:34 小鲨鱼2018 阅读(191) 评论(0) 推荐(0)
摘要: 1、 ## 测试数据test <- c("200005: Smoker_1","200076: Smoker_2","200087: Smoker_3","200088: Smoker_4","200106: Smoker_5","200107: Non-smoker_6") test list1 阅读全文
posted @ 2021-12-19 12:28 小鲨鱼2018 阅读(2508) 评论(0) 推荐(0)
摘要: 1、直接测试 dir() ## 列出当前目录中所有文件 myfile <- list.files() ## 将当前目录中的所有文件都保存为字符 myfile gzfile <- myfile[grep(myfile, pattern =".gz$")] ## 提取当前目录中以.gz结尾的文件 gzf 阅读全文
posted @ 2021-12-18 22:40 小鲨鱼2018 阅读(1476) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test# ls test.py test.txt root@PC1:/home/test# cat test.txt ## 测试数据 w r s f z s d g z c w d z d g g z c e w root@PC1:/home/test# 阅读全文
posted @ 2021-12-18 21:26 小鲨鱼2018 阅读(1461) 评论(0) 推荐(0)
摘要: 1、测试数据 root@PC1:/home/test# ls test.txt root@PC1:/home/test# cat test.txt ## 测试数据 w r s f a s d g z c w d a d g t z c e w 2、提取包含w的行 root@PC1:/home/tes 阅读全文
posted @ 2021-12-18 21:17 小鲨鱼2018 阅读(6297) 评论(0) 推荐(1)
上一页 1 ··· 268 269 270 271 272 273 274 275 276 ··· 408 下一页