#include <cleanfile.h>
Public Member Functions | |
| void | getCleanRes (string fileRes) |
| CleanFile (string &filename) | |
| ~CleanFile () | |
| void | intersection (const CleanFile< GENOME_TYPE > &clean, vector< SEQ< GENOME_TYPE > > &res1, vector< SEQ< GENOME_TYPE > > &res2, string fileRes) const |
| void | MakeLegal () |
Private Types | |
| typedef std::set< SEQ< GENOME_TYPE > >::iterator | itr |
Private Member Functions | |
| void | copy_title (FILE *file, FILE *legal_file) const |
| void | legalize_it (FILE *file) |
| int | check_it (string buff) |
| bool | isspace (char c) |
| bool | isdigit (char c) |
| int | skipspaces (string ar) |
| int | checkO (string Or) |
| int | checkS (string Start) |
| int | checkE (string End) |
| int | checkK (string KO) |
| GENOME_TYPE | string2GENOMEType (string str) |
| const char | get_or (string Orientation) |
| void | copy_it (string buff, FILE *LG) const |
| void | Tokenize (const string &str, vector< string > &tokens, const string &delimiters) |
Private Attributes | |
| string | fileN |
| set< SEQ< GENOME_TYPE > > * | segments |
|
|||||
|
An auxiliary declaration of a set iterator. |
|
||||||||||
|
Main constructor.
|
|
|||||||||
|
Destructor. |
|
||||||||||
|
Given one entry from the file *.anchor, the method checks its regularity.
|
|
||||||||||
|
Checks if End is a legal number.
|
|
||||||||||
|
Checks if the KO is legal.
|
|
||||||||||
|
Checks if Or is a legal orientation value.
|
|
||||||||||
|
Checks if Start is a legal number.
|
|
||||||||||||||||
|
Copies buff to file LG.
|
|
||||||||||||||||
|
Copies the title of the original file (*.anchor) to the "legal" file (*.anchor.clean).
|
|
||||||||||
|
Extracts the orientation out of the string Orientation.
|
|
||||||||||
|
Copies the result of the CleanFile phase into the file fileRes.
|
|
||||||||||||||||||||||||
|
Copies the intersection result between two CleanFile objects into the file fileRes and returns two vector of the intersected entries, one of each CleanFile object.
|
|
||||||||||
|
Checks if the given character is a digit.
|
|
||||||||||
|
Checks if the given character is a space.
|
|
||||||||||
|
The main method of this class which legalizes the *.anchor file.
|
|
|||||||||
|
The main method of the CleanFile class is MakeLegal which actually invokes the legalizing process. |
|
||||||||||
|
Skips leading spaces of the given string.
|
|
||||||||||
|
Converts a string into an unsigned GENOME_TYPE number.
|
|
||||||||||||||||||||
|
Splits str into tokens according to the given delimiters.
|
|
|||||
|
fileN variable holds the name of the file (*.anchor) containing the KO's. |
|
|||||
|
A set of all legal entries (SEQ<GENOME_TYPE> objects) of the given file. |
1.4.6-NO