Mercurial > repos > chrisd > testshed
comparison snp_caller/src/FastaRecord.h @ 0:0fd352f62446 draft default tip
planemo upload for repository https://github.com/ChrisD11/Duplicon commit 3ee0594c692faac542ffa58f4339d79b9b8aefbd-dirty
| author | chrisd |
|---|---|
| date | Sun, 21 Feb 2016 06:05:24 -0500 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:0fd352f62446 |
|---|---|
| 1 #ifndef FASTA_RECORD_H | |
| 2 #define FASTA_RECORD_H | |
| 3 | |
| 4 #include <string> | |
| 5 #include <vector> | |
| 6 #include <map> | |
| 7 | |
| 8 class FastaRecord { | |
| 9 public: | |
| 10 FastaRecord(std::string gene_id, std::string gene); | |
| 11 | |
| 12 inline std::string gene_id() const { return _gene_id; }; | |
| 13 inline std::string gene() const { return _gene; }; | |
| 14 | |
| 15 static int find_gene(const std::vector<FastaRecord> &records, | |
| 16 const std::string &gene_id, | |
| 17 std::string seq = ""); | |
| 18 static void sort_by_gene_id(std::vector<FastaRecord> &records); | |
| 19 | |
| 20 std::map<std::string, int> snip_database; | |
| 21 private: | |
| 22 std::string _gene_id; | |
| 23 std::string _gene; | |
| 24 }; | |
| 25 | |
| 26 | |
| 27 #endif //FASTA_RECORD_H |
