I am unable to view my data which I was able to view and manipulate with similar commands prior to this. Running on a Linux server. This is what I run and the errors I get:

```
​tabix sequence.snps.vcf.gz chr37>chr37.vcf  
bgzip -c chr37.vcf > chr37.vcf.gz
tabix -p vcf chr37.vcf.gz >chr37.vcf.gz.tbi
```

ERROR:

    tabix the index file already exists. please use '-f- to overwrite

I saw that I had the tbi file so thought I could just run this to see some of the file

```
tabix chr37.vcf.gz chr37:1-20000
[ti_index_load] wrong magic number
[ti_index_load] fail to load the index: chr.37.vcf.gz.tbi
[tabix] failed to load the index file
```

I removed the index file and remade it didn't fix the problem. I tried

```
tabix -p -f vcf chr37.vcf.gz > chr37.vcf.gz.tbi
[main] unrecognized preset
```

I tried moving the `-f` in front of the `-p`, removing the `-p`, and the `vcf` still get same error. I even reloaded the `sequence.snp` file and remade the files. I have no idea what the issue is. Any help would be greatly appreciated.
I believe the command you want for that last part is just:

    tabix -p -f vcf chr37.vcf.gz

It automatically creates the appropriate file. When you add the redirect after it, it immediately creates an empty file and prepares to write stdout to that file. Then, when tabix checks, it sees that a file by that name exists.