In pileup mode column "type" doesn't contain the type of variant (it is the empty string), so the error occurs when R script split the file by tabs.
Also fixed var2vaf_valid.pl and var2vcf_paired.pl because $type field is defined in such situation, but it is empty, so the final type now in VCF for reference variants will be "REF".
Description
This PR fixes issue #100.
var2vaf_valid.pl
andvar2vcf_paired.pl
because $type field is defined in such situation, but it is empty, so the final type now in VCF for reference variants will be "REF".