rna.h 1.01 KB
#ifndef DEF_RNA
#define DEF_RNA

#include <vector>
#include <string>

#include "Extract_data/fa.h"


class Rna{

public:
    Rna();

    Rna (const std::string &name, const std::string &seq);

    Rna (const std::string &name, const std::string &seq, unsigned int id);

    ~Rna();

    unsigned int get_n_() const;

    std::string get_name_() const;

    std::string get_seq_() const;

    unsigned int get_id_() const;

    std::vector < float > get_probingData_() const;

    void set_name_(const std::string &name);

    void set_id_(unsigned int id);

    void set_probingData_(const std::vector < float > &probingData);

    void init(unsigned int id);

    static bool check_seq(const std::string &seq);

    static std::string format(std::string seq);

    std::string chg_seq_sens();

private:
    std::string name_; /*name of the rna given by the user*/
    std::string seq_;
    unsigned int n_; /*length of the rna*/
    unsigned int id_;
    std::vector < float > probingData_; // No valid data = -1.0


};



#endif