摘要:
1、 > sub("b", "x", c("abbc", "bbcd", "cde")) ## 三个字符串中第一个“b”被替换为了“x” [1] "axbc" "xbcd" "cde" > gsub("b", "x", c("abbc", "bbcd", "cde")) ##gsub中的g表示全局, 阅读全文
摘要:
1、数据框或矩阵中字符串的批量替换 > a <- c("a","d", "v", "c") > b <- c("c", "b", "a", "d") > c <- c("m", "a", "d", "b") > d <- data.frame(a, b, c) > d a b c 1 a c m 2 阅读全文
摘要:
1、当参考基因组 大于2G时(约20亿个核苷酸,20,0000,0000):bwa index -a bwtsw xxx.fa 小于2G时(约20亿个核苷酸,20,0000,0000):bwa index xxx.fa 2、统计参考基因组碱基数目 root@DESKTOP-1N42TVH:/home 阅读全文