Mercurial > repos > chrisd > testshed
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/snp_caller/src/FastaRecord.h Sun Feb 21 06:05:24 2016 -0500 @@ -0,0 +1,27 @@ +#ifndef FASTA_RECORD_H +#define FASTA_RECORD_H + +#include <string> +#include <vector> +#include <map> + +class FastaRecord { +public: + FastaRecord(std::string gene_id, std::string gene); + + inline std::string gene_id() const { return _gene_id; }; + inline std::string gene() const { return _gene; }; + + static int find_gene(const std::vector<FastaRecord> &records, + const std::string &gene_id, + std::string seq = ""); + static void sort_by_gene_id(std::vector<FastaRecord> &records); + + std::map<std::string, int> snip_database; +private: + std::string _gene_id; + std::string _gene; +}; + + +#endif //FASTA_RECORD_H