Refactored attribute reading code to worth with SAM and VCF