<p>I concatenated two vcf files by scripting, keeping only the header from the first file and adding an extra column in the end to know which file each line is coming from.</p>

<p>I do this:</p>

<pre>
tabix -p vcf f1PotMut.vcf.gz</pre>

<p>and get this:</p>

<pre>
[ti_index_core] the chromosome blocks not continuous at line 87352, is the file sorted? [pos 131430]</pre>

<p>so I do this</p>

<pre>
vcf-sort f1PotMut.vcf.gz</pre>

<p>but the problem remains. I get the same error when trying to tabex my &quot;sorted&quot; file. I somehow feel the vcf-sort command did not work. Any help?</p>

<p>above you are not showing but for the sake of covering that: are you redirecting the output of the vcf-sort into a different file then are you running tabix on this new file?</p>
