Debian Codegraph @

atac-driver/libatac/atacFeature.H

raw symbols SCIP
1 // This file is part of A2Amapper.cxx . . $ `<file>/atac-driver/libatac/atacFeature.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_FEATURE_H
20 #define ATAC_FEATURE_Hcxx . . $ `atac-driver/libatac/atacFeature.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 // A barebones feature.
31 //
32 // F type featureuid parentuid LABEL:IID POS
33 //
34 // The idea is to mark some region as containing some feature. You
35 // can use the featureiid to map to a chunk of non-atac data, e.g., a
36 // strucure containing information about the feature.
37 //
38 // An EST feature could be represented as:
39 // F est est4 . B35:3 423551 10421
40 // F exon exon7 est4 B35:3 423551 346
41 // F exon exon8 est4 B35:3 425931 146
42 // F exon exon9 est4 B35:3 433426 546
43 //
44 // There is nothing there that immediately links these atac features
45 // to their respective est/exon data structures. This is a Good
46 // Thing (tm) because usually we don't have any form of ID with those
47 // data structures, so we'd be using an offset or something, which
48 // would change if the features are filtered.
49 //
50 class atacFeaturecxx . . $ atacFeature# {
51 public:
52 atacFeaturecxx . . $ atacFeature#atacFeature(49f6e7a06ebc5aa8).() {};
53 atacFeaturecxx . . $ atacFeature#atacFeature(fda57c8427c60377).(char *line);
54 atacFeaturecxx . . $ atacFeature#atacFeature(553789a0a5baebce).(char *fuid,
55 char *puid,
56 uint32cxx . . $ uint32# fiid,
57 char *t,
58 uint32cxx . . $ uint32# i, uint32cxx . . $ uint32# p, uint32cxx . . $ uint32# l);
59
60 void decodecxx . . $ atacFeature#decode(fda57c8427c60377).(char *line);
61
62 bool sanitycxx . . $ atacFeature#sanity(306adc10abbe5009).(seqCachecxx . . $ seqCache# *A, char *inLine);
63
64 char featureuidcxx . . $ atacFeature#featureuid.[16];
65 char parentuidcxx . . $ atacFeature#parentuid.[16];
66 uint32cxx . . $ uint32# featureiidcxx . . $ atacFeature#featureiid.;
67 char typecxx . . $ atacFeature#type.[4];
68 uint32cxx . . $ uint32# iidcxx . . $ atacFeature#iid., poscxx . . $ atacFeature#pos., lencxx . . $ atacFeature#len.;
69
70 void printcxx . . $ atacFeature#print(22db7a1e1ef6be78).(FILE *f, char const *label) const {
71 fprintf(f, "F %s %s %s %s:"uint32FMTcxx . . $ `libutil/util.h:65:10`!" "uint32FMTcxx . . $ `libutil/util.h:65:10`!" "uint32FMTcxx . . $ `libutil/util.h:65:10`!"\n",
72 typecxx . . $ atacFeature#type.,
73 featureuidcxx . . $ atacFeature#featureuid., parentuidcxx . . $ atacFeature#parentuid.,
74 label, iidcxx . . $ atacFeature#iid., poscxx . . $ atacFeature#pos., lencxx . . $ atacFeature#len.);
75 };
76 };
77
78 #endif // ATAC_FEATURE_H