1 #ifndef BAMTOOLS_FASTA_H
2 #define BAMTOOLS_FASTA_H
15 // file-handling methods
18 bool Open(const std::string& filename, const std::string& indexFilename = "");
20 // sequence access methods
22 bool GetBase(const int& refID, const int& position, char& base);
23 bool GetSequence(const int& refId, const int& start, const int& stop, std::string& sequence);
25 // index-handling methods
27 bool CreateIndex(const std::string& indexFilename);
29 // internal implementation
37 #endif // BAMTOOLS_FASTA_H