Debian Codegraph @

current/bin/BinStats.java

raw symbols SCIP
1 package bin;
2
3 public class BinStats {
4
5 BinStats(){}
6 BinStats(Bin b){
7 id=b.id();
8 taxid=b.taxid;
9 if(taxid<1) {taxid=b.labelTaxid;}
10 size=b.size();
11 contigs=b.numContigs();
12 contam=b.contam;
13 complt=b.completeness;
14 badContigs=b.badContigs;
15 gc=b.gc();
16 depth=b.depth();
17 minDepth=b.minContigDepth();
18 maxDepth=b.maxContigDepth();
19 }
20
21 String type() {
22 return type(complt, contam);
23 }
24
25 static String type(float complt, float contam) {
26 if(contam<0.01 && complt>=0.99) {return "UHQ";}
27 if(contam<0.02 && complt>=0.95) {return "VHQ";}
28 if(contam<0.05 && complt>=0.90) {return "HQ";}
29 if(contam<0.10 && complt>=0.50) {return "MQ";}
30 if(contam<0.20 || complt<0.20) {return "VLQ";}
31 return "LQ";
32 }
33
34 int id;
35 int taxid;
36 long size;
37 int contigs;
38 int badContigs;
39 float contam;
40 float complt;
41 float gc;
42 float depth;
43 float minDepth, maxDepth;
44
45 }