-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathswarmTCRClassify.h
59 lines (46 loc) · 1.54 KB
/
swarmTCRClassify.h
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
// This file is part of the swarmTCRClassify program
// Copyright (c) 2024 Dario Ghersi
// Version 20240609
#ifndef _swarmTCRClassify_
#define _swarmTCRClassify_
//////////////////////////////////////////////////////////////////////
// CONSTANTS //
//////////////////////////////////////////////////////////////////////
#define USAGE "\nUsage: swarmTCRClassify -w REFERENCE_WEIGHTS -i INPUT_TCRs\n"
#define NUMCDR 8 // maximum number of CDR regions (single-cell seq.)
#define GAPPENCDR3 -8
#define GAPPENCDR12 -4
#define BLOSUM_SIZE 24
/////////////////////////////////////////////////////////////////////
// STRUCTURES //
/////////////////////////////////////////////////////////////////////
struct TCRData {
char **sampleID;
char **cdrSeqs[NUMCDR];
unsigned int **cdrSeqsNum[NUMCDR];
unsigned int *lengthCDR[NUMCDR];
unsigned int numTCRs;
};
struct Results {
double *scores;
char **TCRID;
char *epitope;
char **refTCRID;
unsigned int numTCRs;
};
struct RefWeightsData {
char **fileNames;
char **epitopes;
double *weights[NUMCDR];
unsigned int numRefs;
};
//////////////////////////////////////////////////////////////////////
// CLASSES //
//////////////////////////////////////////////////////////////////////
class Parameters {
public:
char *weightsFileName; // weights for each epitope
char *inputTCRsFileName; // input TCR set
Parameters(char **, int);
};
#endif