extract_str_inter.h 1.76 KB
#ifndef H_EXTRACTSTRINTER
#define H_EXTRACTSTRINTER

#include <vector>
#include <string>
#include <utility>


#include "Motifs/interloop.h"
#include "Motifs/hairpinloop.h"
#include "Motifs/helix.h"
#include "Motifs/multiloop.h"
#include "Motifs/pseudoknot.h"
#include "rna.h"
#include "structure.h"
#include "solinteraction.h"


void extract_str(std::string STRfile, const std::vector < Rna >& rnaList_,
                 std::vector< Structure >& strs_,
                 const std::vector< std::tuple < std::pair < uint, uint >, std::pair < uint, uint >, uint > >& ctAppTwo,
                 const std::vector< std::tuple < uint, uint, uint > >& ctApp,
                 const std::vector< std::tuple < uint, uint, uint > >& ctSingle,
                 const std::vector < Interloop * >& ctIntLoop,
                 const std::vector < Hairpinloop * >& ctHairLoop,
                 const std::vector < Helix * >& ctHelix,
                 const std::vector < Multiloop * >& ctMultiLoop,
                 const std::vector < Pseudoknot * >& ctPseudo,
                 uint energyModel, uint& nbHardCT,
                 float lowerThresProbing, float upperThresProbing);

bool sortHelix (Helix i, Helix j);

void extract_inter(const std::string INTfile, const std::vector < Rna >& rnaList_,
                   std::vector< SolInteraction >& inters_,
                   std::vector< std::vector < Helix > >& helices_,
                   const std::vector< std::tuple < std::pair < uint, uint >, std::pair < uint, uint >, uint > >& ctAppTwo,
                   const std::vector < Helix * >& ctHelix,
                   const std::vector < Pseudoknot * >& ctPseudo,
                   unsigned int energyModel, uint& nbHardCT,
                  float lowerThresProbing, float upperThresProbing);

#endif