Skip to content

Conversation

@douglasgscofield
Copy link

For SamSequenceDictionary, adds a Find(), Find() const, and equivalent ConstFind() method to return iterators into the sequence dictionary.

Also adds a .gitignore, feel free to ignore that...

Also DOS-to-Unixify BamReader.h endlines and remove an extra set of
parens in bamtools.cpp
Also initiate README.md for this fork
…onary

With my addition of BamReader::GetConstSamHeader(), the operator[] method for querying SamSequenceDictionary no longer worked as it couldn't handle a const this.  Since it had a default not-found behavior of adding the query name, I think these Find() iterator-based methods, as parallels to the find() methods of map containers are better with read-only access.  The End() iterator is returned if sequenceName is not found.
Conflicts:
	CMakeLists.txt
	src/api/BamReader.h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant