Added from_sam flag to read_t to indicate if read->bam has been set