File: ClustalQtParams.h

package info (click to toggle)
clustalx 2.1%2Blgpl-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,868 kB
  • sloc: cpp: 40,050; sh: 163; xml: 102; makefile: 15
file content (105 lines) | stat: -rw-r--r-- 2,312 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
/**
 * Changes:
 *
 * 30-03-07,Nigel Brown(EMBL): renamed variable 'AlignProf1ToProf2WithTree' to
 * 'AlignProf2ToProf1WithTree' for consistency with clustalx and user
 * interface menu naming.
 */

#ifndef CLUSTALQTPARAMS_H
#define CLUSTALQTPARAMS_H
#include <QColor>
#include <QString>
#include "clustalW/alignment/Alignment.h"
#include <vector>

static QString psColorFile = "/usr/share/clustalx/colprot.xml";
static QString psDNAFile = "/usr/share/clustalx/coldna.xml";
static QString psPrintFile = "/usr/share/clustalx/colprint.xml";

static const int BlackAndWhite = 1;
static const int ColorsBackGround = 2;
static const int ColorsLetters = 3;
//static const int UserColors = 4;

static const int MaxColors = 16;
static const int Simple = 0;
static const int Compound = 1;

static const int Sequences = 0;
static const int Profile1 = 1;
static const int Profile2 = 2;

static const int A4 = 0;
static const int A3 = 1;
static const int USLETTER = 2;
        
       
static const int PORTRAIT = 1;
static const int LANDSCAPE = 0;

enum FileNameDialogType
{
    CompleteAlign, AlignFromTree, RealignSelectedSeqs, RealignSeqRange, DoGuideTreeOnly,
    AlignProf2ToProf1, AlignSeqsToProf1, AlignProf2ToProf1WithTree, AlignSeqsToProf1WithTree
};

enum Viewer
{
    SequenceViewer, Profile1Viewer, Profile2Viewer
};

enum AlignType
{
    Sequence, Profile
};
                
struct ColorNamePair
{
    QColor color;
    QString name;
}; 

struct rangeParams
{
    int firstSeq;
    int lastSeq;
    int firstRes;
    int lastRes;    
};

struct residueColors
{
    int type;
    QChar residue;
    QString colorName;
    int length;
    QColor color;
    QString consensusConditionList;
};
        
struct consensusParams
{
    QChar consensusName; // Name of the rule
    int cutOffPercent;
    int length;
    QString cutOffList;
};

struct psPrintParams
{
    int firstSeq;
    int lastSeq;
    int nSeqs;
    clustalw::Alignment* alignPtr;
    bool showLowScoreRes;
    clustalw::Array2D<int> lowScoreRes;
    bool showExRes;
    clustalw::Array2D<int> exRes;
    std::vector<int>* histogram;
    clustalw::Array2D<QColor>* colorMask;
    std::vector<QString> nameHeader; // Should have 2 elements
    std::vector<QString> seqHeader; // Should have 2 elements
    bool backGroundColors;
};        
#endif