GangSTR
GangSTR copied to clipboard
str::out_of_range
For some samples I have this error. I don't know the reason and how to fix it. Here is the error message:
terminate called after throwing an instance of 'std::out_of_range' what(): basic_string::substr: __pos (which is 145) > this->size() (which is 105)
Excuse me, have you solved it? I also encountered this problem.
It's been a long time and I'm not working with the tool anymore but as far as I remember I solved the issue by filtering out the shorter reads ( like shorter than 50 bp or so depending on your data ). I'm not sure why they are related or why this problem happens.