我正在尝试对一些看起来像这样并且大小约为 2GB 的文件进行 fread:
head file.bed
chr1 19922471 19924471 + NM_001204088 tss 1 0
chr1 19922471 19924471 + NM_001204088 tss 2 0
chr1 19922471 19924471 + NM_001204088 tss 3 0
chr1 19922471 19924471 + NM_001204088 tss 4 0
chr1 19922471 19924471 + NM_001204088 tss 5 0
chr1 19922471 19924471 + NM_001204088 tss 6 0
chr1 19922471 19924471 + NM_001204088 tss 7 0
chr1 19922471 19924471 + NM_001204088 tss 8 0
chr1 19922471 19924471 + NM_001204088 tss 9 0
chr1 19922471 19924471 + NM_001204088 tss 10 0
第 4 列也有类似数量的“-”。在 R 中读取 +/- 变为 0:
cov.data <- fread(file)
head(cov.data)
V1 V2 V3 V4 V5 V6 V7 V8
1: chr1 19922471 19924471 0 NM_001204088 tss 1 1
2: chr1 19922471 19924471 0 NM_001204088 tss 2 1
3: chr1 19922471 19924471 0 NM_001204088 tss 3 1
4: chr1 19922471 19924471 0 NM_001204088 tss 4 1
5: chr1 19922471 19924471 0 NM_001204088 tss 5 1
6: chr1 19922471 19924471 0 NM_001204088 tss 6 0
我查看了文档,但不知道为什么。有什么建议么?由于 fread 仍在开发中,这可能是一个错误吗?