BioJulia/XAM.jl

SAM.Reader file format error

lcmmichielsen opened this issue · 0 comments

I'm trying to use the bioalignments sam reader to read the alignments in a file created by Minimap2. This file looks like a 'normal' sam file, but I still get the following error:

BioAlignments.SAM.Reader file format error on line 1536 ~>"\t*\n"

Line 1536 is the first line in the file that contains an alignment.

I am using the following code and the error occurs on line 4:

    reader = SAM.Reader(open(samfile,"r"))
    record = SAM.Record()
    while !eof(reader)
            read!(reader, record)
    end