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
read_fasta_file_short_names under smithlab_os.cpp uses the find_first_of function to call a substring of the chromosome name. When the name doesn't contain spaces it returns string::npos and it throws a runtime error because the end iterator is before the start iterator (which we add 1 because of the > character).
The text was updated successfully, but these errors were encountered:
I pushed a fix at 17d21f3 , which checks if there is a space and depending on whether or not it finds it, pushes the entire name or takes just the first word. Since this check is only made when we see the chromosome character (>) this should not make the function any slower. Every program that uses this function probably should be updated.
read_fasta_file_short_names
undersmithlab_os.cpp
uses thefind_first_of
function to call a substring of the chromosome name. When the name doesn't contain spaces it returnsstring::npos
and it throws a runtime error because the end iterator is before the start iterator (which we add 1 because of the>
character).The text was updated successfully, but these errors were encountered: