02 2022 档案
摘要:1、R语言中REmap安装遇到如下问题 2、解决方法 install.packages("devtools") library(devtools) install_github("Lchiffon/REmap")
阅读全文
摘要:1、测试数据 >>> test1 = ["aa", "bb", "aa", "cc", "cc", "dd", "aa"] ## 测试数据 >>> test1 ['aa', 'bb', 'aa', 'cc', 'cc', 'dd', 'aa'] >>> type(test1) <clas
阅读全文
摘要:1、测试数据 >>> test1 = ["aa", "bb", "cc", "dd", "ee", "ff", "gg", "hh"] ## 测试数据,8个元素 >>> test1 ['aa', 'bb', 'cc', 'dd', 'ee', 'ff', 'gg', 'hh'
阅读全文
摘要:1、测试文件 root@PC1:/home/test# ls a.txt root@PC1:/home/test# cat a.txt >1 e r >2 s d >3 i j >4 z c >5 a t >6 e d >7 3 7 >8 z d >9 a c >10 t a >11 a c 2、删
阅读全文
摘要:1、测试文件及路径 root@PC1:/home/test# ls a.txt gwas.bed test1 test2 root@PC1:/home/test# pwd /home/test root@PC1:/home/test# ll -h total 24K drwxr-xr-x 4 roo
阅读全文
摘要:1、使用内置函数update合并 >>> dict1 = dict(a = 100, b = 200, c = 300) ## 字典1 >>> dict1 {'a': 100, 'b': 200, 'c': 300} >>> dict2 = dict(d = 400, e = 500, f = 60
阅读全文
摘要:1、测试数据 root@PC1:/home/test# ls record.txt test.fa root@PC1:/home/test# cat test.fa >OR4F29_ENSG00000284733_ENST00000426406_20_955_995 AGCCCAGTTGGCTGGA
阅读全文
摘要:1、一般情况提取连续行 测试数据 root@PC1:/home/test2# ls test.txt root@PC1:/home/test2# cat test.txt >1 01 02 >2 03 04 >3 05 06 >4 07 08 >5 09 10 >6 11 12 >7 13 14 >
阅读全文
摘要:1、测试数据test.fa (一共两条染色体) >OR4F5_ENSG00000186092_ENST00000641515_61_1038_2618 CCCAGATCTCTTCAGTTTTTATGCCTCATTCTGTGAAAATTGCTGTAGTCTCTTCCAGTTATGAAGAAGGTAAC
阅读全文
摘要:1、测试 ctrl + F6(快捷键) >>> list1 = ["aaa", "bbb", "ccc", "ddd"] >>> list1 ['aaa', 'bbb', 'ccc', 'ddd'] >>> type(list1) <class 'list'> >>> ## 此处执行ctrl + F
阅读全文
摘要:1、 > dat1 <- c(3, 1, 4, 7, 6) ## 测试数据1, 未排序 > all(dat1 == sort(dat1)) ## dat1未排序, 判断原始向量和排序后的向量是否一致 [1] FALSE > dat2 <- c(1, 3, 4, 6, 7) ## 测试数据2, 已排序
阅读全文
摘要:1、查看内核、系统版本 [root@virtualboxcentos7 test]# hostnamectl Static hostname: virtualboxcentos7 Icon name: computer-vm Chassis: vm Machine ID: e8d08b54fc552
阅读全文