File: param_tabs.h

package info (click to toggle)
seqan2 2.4.0%2Bdfsg-16
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 224,180 kB
  • sloc: cpp: 256,886; ansic: 91,672; python: 8,330; sh: 995; xml: 570; makefile: 252; awk: 51; javascript: 21
file content (56 lines) | stat: -rw-r--r-- 2,230 bytes parent folder | download | duplicates (14)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*==========================================================================
             RazerS - Fast Read Mapping with Controlled Loss Rate
                   http://www.seqan.de/projects/razers.html

 ============================================================================
  Copyright (C) 2008 by David Weese

  This program is free software; you can redistribute it and/or
  modify it under the terms of the GNU Lesser General Public
  License as published by the Free Software Foundation; either
  version 3 of the License, or (at your options) any later version.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 ==========================================================================
  Data tables with precomputed parameters.  Generated from gapped_params
  folder.
 ==========================================================================*/

#ifndef APPS_RAZERS_PARAM_TABS_H_
#define APPS_RAZERS_PARAM_TABS_H_

// NOTE: DDDoc style comments are used here but not activated on purpose. Only there for RazerS developers.

#include <seqan/sequence.h>

struct GappedParamsRecord
{
    // Length of the read, "N??" in gapped_params file name.
    unsigned readLength;
    // Distance type, "H" or "L" in gapped_params file name.
    char type;

    // Number of errors, first column in gapped params file.
    unsigned errors;
    // Shape, second column in gapped params file.
    char const * shape;
    // Threshold, third column in gapped params file.
    unsigned t;
    // Loss rate, fourth column in gapped params file.
    double lossRate;
    // Potential match count on simulated data from which the parameters were
    // computed.
    unsigned measure;
};

bool getGappedParamsRecords(seqan::String<GappedParamsRecord> & records,
                            unsigned n,
                            char errorModel);

#endif  // #ifndef APPS_RAZERS_PARAM_TABS_H_