上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 407 下一页
摘要: 001、 (base) [b20223040323@admin2 test5]$ ls test.ped (base) [b20223040323@admin2 test5]$ cat test.ped ## 测试ped文件 DOR DOR1 0 0 0 -9 G G C C G G G G A G 阅读全文
posted @ 2025-07-24 11:44 小鲨鱼2018 阅读(9) 评论(0) 推荐(0)
摘要: 001、默认情况下,read.table函数以“#” 为注释行,读取数据时,将忽略掉以“#”号开头的行: 测试数据如下: fst <- read.table("test.txt", sep="\t", header=T) ## 数据读取结果默认忽略掉了注释行 fst 。 002、使用comment. 阅读全文
posted @ 2025-07-24 11:33 小鲨鱼2018 阅读(42) 评论(0) 推荐(0)
摘要: unlink("nonwhite_white_xp_ehh_tmp_result.txt") 阅读全文
posted @ 2025-07-22 11:35 小鲨鱼2018 阅读(6) 评论(0) 推荐(0)
摘要: 001、 plot(1:10, main=expression(theta)) 阅读全文
posted @ 2025-07-20 16:04 小鲨鱼2018 阅读(13) 评论(0) 推荐(0)
摘要: sample_to_row = {row[0]: row for row in lines[1:]} 001、sample_to_row = {row[0]: row for row in lines[1:]} 阅读全文
posted @ 2025-07-16 19:42 小鲨鱼2018 阅读(7) 评论(0) 推荐(0)
摘要: python中 输出空行行号 [root@PC1 test]# ls a.txt test.py [root@PC1 test]# cat -n a.txt 1 01 02 03 04 2 05 06 07 08 3 4 09 10 11 12 5 6 7 13 14 15 16 8 17 18 1 阅读全文
posted @ 2025-07-16 11:30 小鲨鱼2018 阅读(4) 评论(0) 推荐(0)
摘要: 001、 [root@PC1 test]# ls a.txt test.py [root@PC1 test]# cat a.txt 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 [root@PC1 test]# python 阅读全文
posted @ 2025-07-16 11:22 小鲨鱼2018 阅读(5) 评论(0) 推荐(0)
摘要: 001、 >>> from collections import defaultdict ## 从collections模块中导入defaultdict类 >>> dict1 = {} ## 定义普通字典 >>> dict1["kk"] ## 当索引一个不存在的健 Traceback (most r 阅读全文
posted @ 2025-07-16 10:35 小鲨鱼2018 阅读(73) 评论(0) 推荐(0)
摘要: 01、基本用法 >>> name = "zhang san" >>> age = 30 >>> print(f"his name is {name}, his age is {age}.") ## 格式化输出函数f his name is zhang san, his age is 30. 阅读全文
posted @ 2025-07-16 09:12 小鲨鱼2018 阅读(6) 评论(0) 推荐(0)
摘要: python 中 跳过表头的实现方式 001、next实现 a、 [root@PC1 test]# ls a.txt test.py [root@PC1 test]# cat a.txt ## 测试文本,假设第一行是表头 01 02 03 04 05 06 07 08 09 10 11 12 13 阅读全文
posted @ 2025-07-16 09:11 小鲨鱼2018 阅读(16) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 407 下一页