@Test public void testGetQuality() { ArrayList<Genotype> calls = new ArrayList<Genotype>(); calls.add(Genotype.HETEROZYGOUS); ArrayList<Integer> qualities = new ArrayList<Integer>(); qualities.add(100); GenotypeCall gc = new GenotypeCall(calls, qualities); int q = gc.getQualityInIndividualN(0); Assert.assertEquals(100, q); }
public int getQualityInIndividualN(int n){ if (this.qualityList==null) return 0; if (n<0 || n>=this.callList.size() ) throw new IllegalArgumentException(); return this.qualityList.get(n); }
GenotypeCall { public int getQualityInIndividualN(int n){ if (this.qualityList==null) return 0; if (n<0 || n>=this.callList.size() ) throw new IllegalArgumentException(); return this.qualityList.get(n); } }
GenotypeCall { public int getQualityInIndividualN(int n){ if (this.qualityList==null) return 0; if (n<0 || n>=this.callList.size() ) throw new IllegalArgumentException(); return this.qualityList.get(n); } GenotypeCall(ArrayList<Genotype> calls,ArrayList<Integer> qualities);  GenotypeCall(ArrayList<Genotype> calls,ArrayList<Integer> qualities,ArrayList<Integer> depths);  GenotypeCall(Genotype gt, Integer qual);  GenotypeCall(Genotype gt, Integer qual, Integer depth); }
GenotypeCall { public int getQualityInIndividualN(int n){ if (this.qualityList==null) return 0; if (n<0 || n>=this.callList.size() ) throw new IllegalArgumentException(); return this.qualityList.get(n); } GenotypeCall(ArrayList<Genotype> calls,ArrayList<Integer> qualities);  GenotypeCall(ArrayList<Genotype> calls,ArrayList<Integer> qualities,ArrayList<Integer> depths);  GenotypeCall(Genotype gt, Integer qual);  GenotypeCall(Genotype gt, Integer qual, Integer depth); ArrayList<String> getGenotypeList(); String get_genotype_as_string(); Genotype getGenotypeInIndividualN(int n); int getReadDepthInIndividualN(int n); int getQualityInIndividualN(int n); boolean isHomozygousAltInIndividualN(int n); boolean isHeterozygousInIndividualN(int n); boolean isALTInIndividualN(int n); boolean isMissingInIndividualN(int n); int getNumberOfIndividuals(); }
GenotypeCall { public int getQualityInIndividualN(int n){ if (this.qualityList==null) return 0; if (n<0 || n>=this.callList.size() ) throw new IllegalArgumentException(); return this.qualityList.get(n); } GenotypeCall(ArrayList<Genotype> calls,ArrayList<Integer> qualities);  GenotypeCall(ArrayList<Genotype> calls,ArrayList<Integer> qualities,ArrayList<Integer> depths);  GenotypeCall(Genotype gt, Integer qual);  GenotypeCall(Genotype gt, Integer qual, Integer depth); ArrayList<String> getGenotypeList(); String get_genotype_as_string(); Genotype getGenotypeInIndividualN(int n); int getReadDepthInIndividualN(int n); int getQualityInIndividualN(int n); boolean isHomozygousAltInIndividualN(int n); boolean isHeterozygousInIndividualN(int n); boolean isALTInIndividualN(int n); boolean isMissingInIndividualN(int n); int getNumberOfIndividuals();  }