You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor request. Is it possible to allow for very long lines in the @pg for bam files ? I always get:
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
Aborted
When I gdb it I get: #7 0x00000000004283e1 in BamTools::Internal::SamFormatParser::ParseSQLine(std::string const&) () #8 0x0000000000428bc0 in BamTools::Internal::SamFormatParser::ParseSamLine(std::string const&) () #9 0x0000000000428f50 in BamTools::Internal::SamFormatParser::Parse(std::string const&) () #10 0x000000000041a993 in BamTools::SamHeader::SetHeaderText(std::string const&) () #11 0x0000000000432edf in BamTools::Internal::BamHeader::ReadHeaderText(BamTools::Internal::BgzfStream*, unsigned int const&) () #12 0x0000000000433051 in BamTools::Internal::BamHeader::Load(BamTools::Internal::BgzfStream*) () #13 0x0000000000421a8d in BamTools::Internal::BamReaderPrivate::Open(std::string const&) ()
The text was updated successfully, but these errors were encountered:
I think I solved by just adding
if((*tokenIter).empty()) continue;
after each for ( ; tokenIter != tokenEnd; ++tokenIter ) {
for:
ParseHDLine
ParseSQLine
ParseRGLine
ParsePGLine
minor request. Is it possible to allow for very long lines in the @pg for bam files ? I always get:
terminate called after throwing an instance of 'std::out_of_range'
what(): basic_string::substr
Aborted
When I gdb it I get:
#7 0x00000000004283e1 in BamTools::Internal::SamFormatParser::ParseSQLine(std::string const&) ()
#8 0x0000000000428bc0 in BamTools::Internal::SamFormatParser::ParseSamLine(std::string const&) ()
#9 0x0000000000428f50 in BamTools::Internal::SamFormatParser::Parse(std::string const&) ()
#10 0x000000000041a993 in BamTools::SamHeader::SetHeaderText(std::string const&) ()
#11 0x0000000000432edf in BamTools::Internal::BamHeader::ReadHeaderText(BamTools::Internal::BgzfStream*, unsigned int const&) ()
#12 0x0000000000433051 in BamTools::Internal::BamHeader::Load(BamTools::Internal::BgzfStream*) ()
#13 0x0000000000421a8d in BamTools::Internal::BamReaderPrivate::Open(std::string const&) ()
The text was updated successfully, but these errors were encountered: