File: Fragment_Bank.h

package info (click to toggle)
mapsembler2 2.2.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 8,080 kB
  • ctags: 9,676
  • sloc: cpp: 51,021; ansic: 13,465; sh: 460; makefile: 409; asm: 271; python: 28
file content (42 lines) | stat: -rw-r--r-- 1,200 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <iostream>
#include <vector>
#include "Fragment.h"

#include "commons.h"
#include "../minia/Bank.h"
#include "GraphOutput.h"
using namespace std;
#ifndef _FRAGMENT_BANK_H
#define _FRAGMENT_BANK_H

/**
 * A set of indexible fragments
 */
class Fragment_Bank{
public:
    // The extension types could be
    // 1/ a strict sequence: any branching stops the extension
    // 2/ a consensus sequence: uses minia contiging approach
    // 3/ a strict graph: any branching is conserved in the graph
    // 4/ a consensus graph: "small" polymorphism is merged, but "large" structures are represented.
    char extension_type;
    /**
     * All fragments stored in the set
     */
    vector<Fragment> all_fragments;
    Fragment_Bank(const char type);
    /**
     * Free all fragments, delete the hash table
     */
    ~Fragment_Bank();
    
    /**
     * Read fragments from a file, and load them in the set of fragments
     */
    void load_fragments(char * fragment_file);
    void perform_extensions(const string prefix, int max_graph_depth,int max_nodes, parcours_t search_mode );
    void format_results(const int extension_type, string prefix_name);
    
};

#endif // _FRAGMENT_BANK_H