Read in SAM file headers as list of two tibbles: one with reference names and lengths, the other with mapping info

Usage,
read_sam_headers(file)

Arguments

file

path to file

Value

List of two tibbles: References (RNAME/LENGTH) and Mapping (ID/PN/VN/CL)