上一页 1 ··· 213 214 215 216 217 218 219 220 221 ··· 403 下一页
摘要: 1、基本用法 wget https://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20220402.zip 2、指定下载目录 wget -P /home/test2/ https://s3.amazonaws.com/plink1-asset 阅读全文
posted @ 2022-06-13 11:55 小鲨鱼2018 阅读(219) 评论(0) 推荐(0)
摘要: 001、 a = NA ## NA表示这个位置的值为空 b = "" ## ""表示空字符串 c = NULL ## NULL表示变量为空 a b c class(a) ## 逻辑类型 class(b) ## 字符类型 class(c) ## NULL类型 length(a) ## 长度为1 len 阅读全文
posted @ 2022-06-08 12:31 小鲨鱼2018 阅读(1825) 评论(0) 推荐(0)
摘要: 001、 函数原型: %||%函数一共有两个参数: 当x为空时,返回y, x不为空时,返回x。 library(rlang) 1 %||% 2 NULL %||% 2 ## 这里的空值只识别 NULL。 "" %||% 2 NA %||% 2 阅读全文
posted @ 2022-06-08 12:10 小鲨鱼2018 阅读(599) 评论(0) 推荐(0)
摘要: 判断逻辑向量是否至少一个为真或者全部为真。 1、 any(c(FALSE, FALSE, FALSE)) ## 任何一个为真,则为真 any(c(FALSE, FALSE, TRUE)) any(c(TRUE, TRUE, TRUE)) all(c(TRUE, TRUE, TRUE)) ## 全部为 阅读全文
posted @ 2022-06-08 11:56 小鲨鱼2018 阅读(1812) 评论(0) 推荐(1)
摘要: 001、 switch ("a", ## 匹配a "a" = 1:5, "b" = 3:8, "c" = 100-110 ) switch ("b", ## 匹配b "a" = 1:5, "b" = 3:8, "c" = 100-110 ) switch ("c", ## 匹配c "a" = 1:5 阅读全文
posted @ 2022-06-08 11:27 小鲨鱼2018 阅读(1678) 评论(0) 推荐(0)
摘要: 1、测试数据下载:ftp://ftp.ensemblgenomes.org/pub/plants/release-44/gff3/arabidopsis_thaliana/Arabidopsis_thaliana.TAIR10.44.chromosome.1.gff3.gz 2、 [root@PC1 阅读全文
posted @ 2022-06-07 23:22 小鲨鱼2018 阅读(667) 评论(0) 推荐(0)
摘要: 001、测试数据 [root@PC1 test2]# ls a.fa test.py [root@PC1 test2]# cat a.fa ## 测试数据 >OR4F5_ENSG00000186092_ENST00000641515_61_1038_2618 CCCAGATCTCTTCAGTTTTT 阅读全文
posted @ 2022-06-07 22:18 小鲨鱼2018 阅读(236) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test2]# ls a.txt b.txt test.py x.csv y.csv [root@PC1 test2]# pwd /home/test2 [root@PC1 test2]# cat test.py ## 脚本 #!/usr/bin/python impo 阅读全文
posted @ 2022-06-07 20:45 小鲨鱼2018 阅读(138) 评论(0) 推荐(0)
摘要: 1、合并txt文件 [root@PC1 test2]# ls a.txt b.txt c.txt test.py x.csv y.csv [root@PC1 test2]# cat a.txt a a a b b b [root@PC1 test2]# cat b.txt c c c d d d [ 阅读全文
posted @ 2022-06-07 20:40 小鲨鱼2018 阅读(163) 评论(0) 推荐(0)
摘要: 1、 直接看例子 a <- c(3, 5, 3, 1, 4, 2) b <- c(10, 50, 60, 70, 80, 40) c <- c("a", "a", "b", "b", "c", "c") dat <- data.frame(a, b, c) dat ## 测试数据 tapply(da 阅读全文
posted @ 2022-06-07 20:07 小鲨鱼2018 阅读(1105) 评论(0) 推荐(0)
上一页 1 ··· 213 214 215 216 217 218 219 220 221 ··· 403 下一页