Mercurial > repos > aaronquinlan > multi_intersect
diff BEDTools-Version-2.14.3/src/utils/sequenceUtilities/sequenceUtils.h @ 0:dfcd8b6c1bda
Uploaded
author | aaronquinlan |
---|---|
date | Thu, 03 Nov 2011 10:25:04 -0400 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/BEDTools-Version-2.14.3/src/utils/sequenceUtilities/sequenceUtils.h Thu Nov 03 10:25:04 2011 -0400 @@ -0,0 +1,27 @@ +#ifndef SEQUENCEUTILS_H +#define SEQUENCEUTILS_H + +#include <string> +#include <algorithm> +#include <cctype> + +using namespace std; + +// Performs an in-place sequence reversal +void reverseSequence(string &seq); + +// Performs an in-place reverse complement conversion +void reverseComplement(string &seq); + +// Converts every character in a string to lowercase +void toLowerCase(string &seq); + +// Converts every character in a string to uppercase +void toUpperCase(string &seq); + +// Calculates the number of a, c, g, t, n, and other bases found in a sequence +void getDnaContent(const string &seq, int &a, int &c, int &g, int &t, int &n, int &other); + +int countPattern(const string &seq, const string &pattern); + +#endif