DP-HLS
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
HostUtils::IO Namespace Reference

Functions

map< string, std::vector
< string > > 
read_sequences_from_json (string file_path)
 Read form a json file storing the sequences in the format of "specie_name": "dna string". More...
 
std::vector< std::string > readFasta (const std::string &filePath)
 
template<typename T , size_t M, size_t N>
void SwitchDimension (T(&src)[M][N], T(&dst)[N][M])
 

Function Documentation

map<string, std::vector<string> > HostUtils::IO::read_sequences_from_json ( string  file_path)

Read form a json file storing the sequences in the format of "specie_name": "dna string".

Parameters
file_path
Returns
map<string, std::vector<string>> : The map has two entries. The first entry is "specie_names": vector<string> The second entry is "sequences": vector<string>
std::vector<std::string> HostUtils::IO::readFasta ( const std::string &  filePath)
template<typename T , size_t M, size_t N>
void HostUtils::IO::SwitchDimension ( T(&)  src[M][N],
T(&)  dst[N][M] 
)