#include <iostream>#include <fstream>#include <string>#include <vector>#include <utility>#include <list>Enumerations | |
| enum | output_format { POSTGRES, TEXT } |
Functions | |
| pair< string, string > | split (const string &ln) |
| list< pair< int, int > > | listgap (const string &s) |
| void | outputgaparray (ostream &os, const string &seq) |
| void | printgaplist (ostream &os, const string &seq) |
| int | main (int argc, char *argv[]) |
| enum output_format |
| list< pair< int, int > > listgap | ( | const string & | s | ) |
convert the sequence string into a list of pair of (gap_pos, gap_len) -1 is before the first residue of the amino acid sequence. Should not list (-1,0) if no gap.
s is the input sequence string (including gaps).
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
References ifstream(), name, outputgaparray(), POSTGRES, printgaplist(), split(), and TEXT.
| void outputgaparray | ( | ostream & | os, | |
| const string & | seq | |||
| ) |
| void printgaplist | ( | ostream & | os, | |
| const string & | seq | |||
| ) |
| pair<string, string> split | ( | const string & | str | ) |
separate the line into name and sequence parts first=name, second=sequence string with gaps
1.5.6