concatenates Proteins given as FASTAEntry to one big string separated by a unique character (by default $)
More...
#include <OpenMS/DATASTRUCTURES/BigString.h>
List of all members.
Detailed Description
concatenates Proteins given as FASTAEntry to one big string separated by a unique character (by default $)
Concatenates the strings given as FASTAEntry separating them with a unique character and storing the headers of FASTAEntry as well as the position of separator characters. So a substring can be accessed easily and the corresponding header can be found fast by using bineary search.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
add new string to bigString
- Parameters:
-
| new_entry | FASTAEntry to be added to big_string |
| const String& getBigString |
( |
|
) |
const |
returns bigString
- Returns:
- const reference to bigString
private function to implement binary search
- Parameters:
-
| index | |
| start | start index |
| end | end inxed |
- Returns:
- int with index
| Size getIndex_ |
( |
Size |
index |
) |
[protected] |
retrieves index of inserted protein by bigStringPosition
- Parameters:
-
- Returns:
- int with index
getPeptide from start position with given length this includes FASTAHeader
- Parameters:
-
| entry | contains the entry of the given range after calling |
| start | start index |
| length | length of desired substring |
- Returns:
- FASTAEntry describing the protein
- Exceptions:
-
| InvalidValue | if a peptide is part of two different fasta entrys |
getter for separator character
- Returns:
- separator character
length of bigString
- Returns:
- int with length of the created bigString
| void setSeparator |
( |
const char |
sep |
) |
|
setter for separator character by default $
- Parameters:
-
returns the number of strings
- Returns:
- int with number of strings
Member Data Documentation
number of Strings added to big_string
vector with headers of FASTAEntry