使用fread读取tsv文件,出现如下报错,按照百度建议增加sed 's/\0//g'后输出结果为0,求解
a <- fread("TCGA-BRCA.htseq_counts.tsv.gz.tsv",sep = '\t',header = T)
Error in fread("TCGA-BRCA.htseq_counts.tsv.gz.tsv", sep = "\t", header = T) :
embedded nul in string: '\xb6o\xee\xa3h\027ˁ[\xee@\xc7\xfa\023s\035p`S\v[\x8c\030\xf4\016\xe7\037\x93S\xfc\xfe\021ς\xf9\xb1\021nZ\xa6Mv\x9d\xebÉ\035\xa4\x90ĕ\xaf\x91\x95\x90m\x9b|C\xbcL\xc8B\x92\x8b\xab\xd4\024\035\037\xbf\x89\027\xf3y\xf8\xc1G\x9a\021\xe6F_\xee@\xd8\v4\xdb\b\x81\x80i\xa2>\026\xd4\024\033\xe4j1\x88M\x93ٜ\xe0\x93\xbdD\x9e\xb2\001\xf2\002\xc4\017TB\xbay\xd69X~\xe5)\x91\022\0WY4Җ\xe1\xa3\xf8\xca\0\xa2\x8c\022\006\xfc\xbe>\xbe\xee{\020\x83j\xa4\037\xeb\031\xca5\xa9\xdf-*2\xb0о\x99\xf9\xfc\x8e\034\001렷\xf2\x84y\030\177\x84\031\x8bF\xb9\xecP\xd8\xe7\x9a\xebr\022\xecސQ\x88\xd6ᮑɈ\xe4p\xa8O+\027\x81\x845\xf7J[\177\xa2/\030\xe2\xcf+\xc8\xe5\xe9\021\016\xf7z\x86]\021\xfcUb&\xe7\xd8\024\x82\016#G\xe1\xea5\024?m\xd1\xec[}\026\xa5z\xe4\xe9\xa9N\x99\xe8\xf5\006<\xbd1s\x91p\032=\032\xb6\xd7\026@\xf7l\xee\036\0\\\xa5\xb7(\xec\016\xd6X9\xf8s\xd4\aU\re\005 h\xdd\xe0'\034\x859\xa9\002\xbb\030\001\xc5%Y\031\xd8\f\\(\x94'
> a <- fread("sed 's/\\0//g' TCGA-BRCA.htseq_counts.tsv.gz.tsv",sep = '\t',header = T)
sed: RE error: illegal byte sequence
Warning message:
In fread("sed 's/\\0//g' TCGA-BRCA.htseq_counts.tsv.gz.tsv", sep = "\t", :
File '/var/folders/m6/0gzhfdpj0_33p1__vw4c41n80000gn/T//RtmpmzNkjx/file5f64df8c477' has size 0. Returning a NULL data.table.