GraphMap - A highly sensitive and accurate mapper for long, error-prone reads http://www.nature.com/ncomms/2016/160415/ncomms11307/full/ncomms11307.html Note: This was the original repository which will no longer be officially maintained. Please use the new official repository here:
For example in line: https://github.com/isovic/graphmap/blob/master/src/graphmap/process_read.cc#L522
ss.str()
makes a copy of the whole string just to determine its length. I this case,ss.tellp() > 0
should be sufficient.