revised calcposterior
add inFile.close() in readfile_vcf