Utils

Utils

namespace ft

Copyright (c) 2018, Wasserman lab

FILE ikmergenerator.h

DESCRIPTION This file contains the declaration of kmergenerator interface

class Utils
#include <utils.h>

This file contains the declaration of utils.h, it contains all utility functions needed to perform fast typer searches ////////////////////////////////////////////////////////////////////////.

////////////////////////////////////////////////////////////////////////

Copyright
Copyright (c) 2019, Wasserman lab
Author
Godfrain Jacques Kounkou

Public Functions

Utils::Utils()

Utils constructor.

ft::Utils::~Utils()

Utils destructor.

std::vector< std::string > Utils::split(const std::string & strToSplit, char delimeter)

split

Return
returns tokens obtained from the given string
Parameters
  • strToSplit:
  • delimeter:

std::set< fs::path > Utils::getSetOfIndexes(const fs::path & indexList = “indices.txt”)

getSetOfIndicies

Return
returns a set of paths corresponding to indexes
Parameters
  • indexList: Filename

std::set< size_t > Utils::convertIndexPositionsToReadIDs(std::set< long long > indexPositions, uint readLength)

convertIndexPositionsToReadIDs

Return
returns a set of ReadID’s corresponding to Index Positions
Parameters
  • indexPos:
  • readLength:

std::set< std::string > Utils::convertReadIDsToReadNames(const fs::path & indexMapFile, std::set< size_t > readIDs)

convertReadIDsToReadNames

Return
Parameters
  • indexMapFile:
  • readIDs:

std::string Utils::reverseComplement(const std::string & inputString)

FTSearch::reverseComplement.

Return
returns the reverse complement sequence
Parameters
  • inputString:

int Utils::fileIndexToQueryIndex(uint fileIndex)

Utils::fileIndexToQueryIndex.

Return
Parameters
  • fileIndex:

std::string Utils::trimmedReadFileName(const fs::path & p)

trimmedReadFileName

Return
Parameters
  • p:

uint Utils::queryIndexToFileIndex(int queryIndex)

queryIndexToFileIndex

Return
Parameters
  • queryIndex: