62 void initlVect(
int *vector,
int tam,
int valor);
73 void initlVect(
float *vector,
int tam,
float valor);
83 void copyVect(
int *vect1,
int *vect2,
int tam);
93 void copyVect(
float *vect1,
float *vect2,
int tam);
130 int max(
int x,
int y);
140 float max(
float x,
float y);
150 double max(
double x,
double y);
160 int min(
int x,
int y);
170 float min(
float x,
float y);
180 double min(
double x,
double y);
201 bool compare(
char *a,
char *b);
221 void quicksort(
float *list,
int ini,
int fin);
230 void swap(
float *a,
float *b);
240 void quicksort(
int *list,
int ini,
int fin);
249 void swap(
int *a,
int *b);
268 char *
readLine(std::ifstream &file);
298 std::string
getReverse(
const std::string &toReverse);
317 std::string *sequences);
332 void quicksort(
int **vect,
int ini,
int fin);
339 void swap(
int **a,
int **b);
360 const std::string& pattern,
361 const float threshold);
372 const std::string &search,
373 const std::string &replace);
384 const std::string &search,
385 const std::string &replace);
393 int GetGapStep(
int *gapValue,
int sequenNumber);
408 int GetGapStep(
int *gapValue,
float inverseSequenNumber);
int GetSimStep(float *simValue)
Function that gives the similarity classification of a column of values.
void initlVect(float *vector, int tam, float valor)
Vector initialization.
std::string ReplaceString(std::string subject, const std::string &search, const std::string &replace)
Function that replaces a substring with another substring in a string. It makes a copy of the origina...
void removeSpaces(char *in, char *out)
Removing spaces method.
bool checkFile(std::ifstream &file)
Check if a given file exists and its size is greater than 0.
int min(int x, int y)
Minimum of two numbers method.
int GetGapStep(int *gapValue, int sequenNumber)
Function that gives the gap classification of a column of values.
char determineColor(char res, const std::string &column)
Checks the color that has to be used on the output report.
void initlVect(int *vector, int tam, int valor)
Vector initialization.
float min(float x, float y)
Minimum of two numbers method.
float max(float x, float y)
Maximum of two numbers method.
bool compare(char *a, char *b)
String comparing method.
void swap(float *a, float *b)
Swapping elements method.
double max(double x, double y)
Maximum of two numbers method.
int roundInt(double number)
Round double to integer method.
int checkAlignmentType(int seqNumber, int residNumber, std::string *sequences)
Checks an alignment type.
bool fileExists(std::string &&path)
Method to check the existance of a file. Works exactly as fileExists(std::string & path)...
void quicksort(int *list, int ini, int fin)
Quicksort sorting method.
void copyVect(int *vect1, int *vect2, int tam)
Integer vector copying.
int GetGapStep(int *gapValue, float inverseSequenNumber)
Function that gives the gap classification of a column of values. This function should work faster th...
void swap(int **a, int **b)
Swaps double pointers.
char * readLine(std::ifstream &file)
Read a new line from current input stream. This function is better than standard one since cares of o...
void copyVect(float *vect1, float *vect2, int tam)
Float vector copying.
bool lookForPattern(const std::string &data, const std::string &pattern, const float threshold)
Method to check for a pattern in a string. The method will check, character by character of the firs...
int GetConsStep(float *consValue)
Function that gives the consistency classification of a column of values.
void quicksort(float *list, int ini, int fin)
Quicksort sorting method.
int roundToSup(double number)
Round double to greater integer method.
int max(int x, int y)
Maximum of two numbers method.
std::map< terminalColor, const std::string > colors
double min(double x, double y)
Minimum of two numbers method.
void quicksort(int **vect, int ini, int fin)
Quicksort sorting method.
std::string getReverse(const std::string &toReverse)
Reverses a string.
int * readNumbers(const std::string &line)
Reads a line and converts it to an array of number.
char * readLine(std::istream &file)
Read a new line from current input stream. This function is better than standard one since cares of o...
char * trimLine(std::string nline)
Remove all content surrounded by ("") or ([]). It warns as well when a mismatch for these flags is f...
Utilities class. This class contains shared methods to be used in multiple parts of the code...
std::string removeCharacter(char c, std::string line)
Removes a determined char from the string.
int roundToInf(double number)
Round double to inferior integer method.
void ReplaceStringInPlace(std::string &subject, const std::string &search, const std::string &replace)
Function that replaces a substring with another substring in a string. It does not make a copy of the...
void swap(int *a, int *b)
Swapping elements method.
bool fileExists(std::string &path)
Method to check the existance of a file.
bool isNumber(char *num)
String-is-number checking.