Gamgee
You miserable little maggot. I'll stove your head in!
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
reference_iterator.h
Go to the documentation of this file.
1 #ifndef gamgee__reference_iterator__guard
2 #define gamgee__reference_iterator__guard
3 
4 #include "fastq_iterator.h"
5 #include "fastq_reader.h"
6 
7 namespace gamgee {
8 
15  public:
16  ReferenceIterator(const std::string& filename) :
17  m_iterator {FastqReader{filename}.begin()},
18  m_sequence {*m_iterator}
19  {}
20 
26  const char ref_base(const std::string& chromosome, const int one_based_location);
27 
28  private:
29  FastqIterator m_iterator;
30  Fastq& m_sequence;
31 };
32 
33 } // namespace gamgee
34 
35 #endif /* gamgee__reference_iterator__guard */
Utility class to read many Fastq records from a stream (e.g. Fastq file, stdin, ...) in a for-each loop in a for-each loop.
Definition: fastq_reader.h:36
FastqIterator begin()
creates a FastqIterator pointing at the start of the input stream (needed by for-each loop) ...
Definition: fastq_reader.cpp:39
Utility class to access reference bases in a FastA-formatted reference genome.
Definition: reference_iterator.h:14
Definition: exceptions.h:9
const char ref_base(const std::string &chromosome, const int one_based_location)
return the reference base character at the desired location
Definition: reference_iterator.cpp:8
ReferenceIterator(const std::string &filename)
Definition: reference_iterator.h:16