Debian Codegraph @

seagen/misc/dumpCrapSeqs.C

raw
1 #include "posix.H"
2 #include "searchGENOME.H"
3
4 int
5 main(int argc, char **argv) {
6
7 if (argc == 0) {
8 }
9
10 uint32 zero = 0;
11 uint32 totl = 0;
12
13 FastABuffer B;
14 FastA *F = new FastA(argv[1]);
15 encodedQuery *Q = 0L;
16
17 for (F->first(B); !F->eof(); F->next(B)) {
18 if ((totl & 0xfff) == 0xfff) {
19 fprintf(stderr, "%9lu / %9lu\r", totl, zero);
20 fflush(stderr);
21 }
22
23 Q = new encodedQuery(B.sequence(),
24 B.sequenceLength(),
25 20,
26 false);
27
28 totl++;
29
30 if (Q->numberOfMers() == 0) {
31 zero++;
32 }
33
34 delete Q;
35 }
36
37 fprintf(stdout, "\n");
38 fprintf(stdout, "Total: %9lu\n", totl);
39 fprintf(stdout, "Zero: %9lu\n", zero);
40
41 return(0);
42 }