ContextSV v1.0.0
Loading...
Searching...
No Matches
utils.h File Reference
#include <htslib/sam.h>
#include <htslib/synced_bcf_reader.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void printProgress (int progress, int total)
 
bool isChrNotation (std::string vcf_filepath)
 
void printMessage (std::string message)
 
void printError (std::string message)
 
std::string getElapsedTime (std::chrono::high_resolution_clock::time_point start, std::chrono::high_resolution_clock::time_point end)
 
std::string removeChrPrefix (std::string chr)
 
void printMemoryUsage (const std::string &functionName)
 
bool fileExists (const std::string &filepath)
 
bool isFileEmpty (const std::string &filepath)
 
void closeJSON (const std::string &filepath)
 

Function Documentation

◆ closeJSON()

void closeJSON ( const std::string &  filepath)
Here is the caller graph for this function:

◆ fileExists()

bool fileExists ( const std::string &  filepath)
Here is the caller graph for this function:

◆ getElapsedTime()

std::string getElapsedTime ( std::chrono::high_resolution_clock::time_point  start,
std::chrono::high_resolution_clock::time_point  end 
)

◆ isChrNotation()

bool isChrNotation ( std::string  vcf_filepath)

◆ isFileEmpty()

bool isFileEmpty ( const std::string &  filepath)
Here is the caller graph for this function:

◆ printError()

void printError ( std::string  message)
Here is the caller graph for this function:

◆ printMemoryUsage()

void printMemoryUsage ( const std::string &  functionName)

◆ printMessage()

void printMessage ( std::string  message)
Here is the caller graph for this function:

◆ printProgress()

void printProgress ( int  progress,
int  total 
)

◆ removeChrPrefix()

std::string removeChrPrefix ( std::string  chr)