Debian Codegraph @

atac-driver/libatac/atacMatch.H

raw symbols SCIP
1 // This file is part of A2Amapper.cxx . . $ `<file>/atac-driver/libatac/atacMatch.H`/
2 // Copyright (c) 2005 J. Craig Venter Institute
3 // Author: Brian Walenz
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 2 of the License, or
8 // (at your option) any later version.
9 //
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received (LICENSE.txt) a copy of the GNU General Public
16 // License along with this program; if not, write to the Free Software
17 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
19 #ifndef ATAC_MATCH_H
20 #define ATAC_MATCH_Hcxx . . $ `atac-driver/libatac/atacMatch.H:20:9`!
21
22 #include <string>
23 #include <map>
24 using namespace std;
25
26 #include "bio++.H"cxx . . $ `<file>/libbio/bio++.H`/
27
28 #include "seqCache.H"cxx . . $ `<file>/libseq/seqCache.H`/
29
30 class atacMatchcxx . . $ atacMatch# {
31 public:
32 atacMatchcxx . . $ atacMatch#atacMatch(49f6e7a06ebc5aa8).() {
33 matchuidcxx . . $ atacMatch#matchuid.[0] = 0;
34 parentuidcxx . . $ atacMatch#parentuid.[0] = 0;
35 matchiidcxx . . $ atacMatch#matchiid. = 0;
36 typecxx . . $ atacMatch#type.[0] = 0;
37 iid1cxx . . $ atacMatch#iid1. = pos1cxx . . $ atacMatch#pos1. = len1cxx . . $ atacMatch#len1. = fwd1cxx . . $ atacMatch#fwd1. = 0;
38 iid2cxx . . $ atacMatch#iid2. = pos2cxx . . $ atacMatch#pos2. = len2cxx . . $ atacMatch#len2. = fwd2cxx . . $ atacMatch#fwd2. = 0;
39 };
40 atacMatchcxx . . $ atacMatch#atacMatch(fda57c8427c60377).(char *line);
41 atacMatchcxx . . $ atacMatch#atacMatch(821cb801e037c3a4).(char *muid,
42 char *puid,
43 uint32cxx . . $ uint32# miid,
44 char *t,
45 uint32cxx . . $ uint32# i1, uint32cxx . . $ uint32# p1, uint32cxx . . $ uint32# l1, uint32cxx . . $ uint32# f1,
46 uint32cxx . . $ uint32# i2, uint32cxx . . $ uint32# p2, uint32cxx . . $ uint32# l2, uint32cxx . . $ uint32# f2);
47
48 void decodecxx . . $ atacMatch#decode(fda57c8427c60377).(char *line);
49
50 // Sanity check the match record -- make sure it's within the
51 // sequence itself.
52 //
53 bool sanitycxx . . $ atacMatch#sanity(58b65b0b3b0914b8).(seqCachecxx . . $ seqCache# *A, seqCachecxx . . $ seqCache# *B, char *inLine);
54
55
56 char matchuidcxx . . $ atacMatch#matchuid.[16]; // external id
57 char parentuidcxx . . $ atacMatch#parentuid.[16]; // external parent id
58 uint32cxx . . $ uint32# matchiidcxx . . $ atacMatch#matchiid.; // internal id, usually pointing to an entry in atacMatchList
59 char typecxx . . $ atacMatch#type.[4]; // right now, only need one byte, but we keep things aligned
60 uint32cxx . . $ uint32# iid1cxx . . $ atacMatch#iid1., pos1cxx . . $ atacMatch#pos1., len1cxx . . $ atacMatch#len1., fwd1cxx . . $ atacMatch#fwd1.;
61 uint32cxx . . $ uint32# iid2cxx . . $ atacMatch#iid2., pos2cxx . . $ atacMatch#pos2., len2cxx . . $ atacMatch#len2., fwd2cxx . . $ atacMatch#fwd2.;
62
63 void printcxx . . $ atacMatch#print(f61d327ebbdda89f).(FILE *f, char const *label1, char const *label2) const {
64 fprintf(f, "M %s %s %s %s:"uint32FMTcxx . . $ `libutil/util.h:65:10`!" "uint32FMTcxx . . $ `libutil/util.h:65:10`!" "uint32FMTcxx . . $ `libutil/util.h:65:10`!" %d %s:"uint32FMTcxx . . $ `libutil/util.h:65:10`!" "uint32FMTcxx . . $ `libutil/util.h:65:10`!" "uint32FMTcxx . . $ `libutil/util.h:65:10`!" %d\n",
65 typecxx . . $ atacMatch#type.,
66 matchuidcxx . . $ atacMatch#matchuid., parentuidcxx . . $ atacMatch#parentuid.,
67 label1, iid1cxx . . $ atacMatch#iid1., pos1cxx . . $ atacMatch#pos1., len1cxx . . $ atacMatch#len1., fwd1cxx . . $ atacMatch#fwd1. ? 1 : -1,
68 label2, iid2cxx . . $ atacMatch#iid2., pos2cxx . . $ atacMatch#pos2., len2cxx . . $ atacMatch#len2., fwd2cxx . . $ atacMatch#fwd2. ? 1 : -1);
69 };
70 };
71
72 #endif // ATAC_MATCH_H