2

I have a bed file named coverage.bed. When I execute head coverage.bed, this is the beginning of what outputs:

chr start   end .   .   strand  length  CG  CA  CT  CC  TG  AG  GG
chr1    3000380 3000440 .   .   +   172 0   2   9   2
chr1    3000492 3000552 .   .   +   172 0   1   9   1
chr1    3000593 3000653 .   .   +   1055    0   4   7   4

However, when I view the file using gedit coverage.bed, I see that this is the correct first 3 lines:

chr start   end .   .   strand  length  CG  CA  CT  CC  TG  AG  GG
chr1    3000380 3000440 .   .   +   172 0   2   9   1   3   5   2
chr1    3000492 3000552 .   .   +   172 0   1   9   2   8   1   1
chr1    3000593 3000653 .   .   +   1055    0   4   7   3   6   5   4

Why is this happening? A python script outputted this file-- could it be possible that there is something wrong with the code that would lead to this error?

Edit: the output of sed -n 2p coverage.bed | hexdump -C is:

00000000  63 68 72 31 09 33 30 30  30 33 38 30 09 33 30 30  |chr1.3000380.300|
00000010  30 34 34 30 09 2e 09 2e  09 2b 09 31 37 32 09 30  |0440.....+.172.0|
00000020  09 32 09 39 09 31 09 33  09 35 09 32 0d 0a        |.2.9.1.3.5.2..|
0000002e
11thal11thal
  • 333
  • 3
  • 13

0 Answers0