Examples of alleleIndexAt()


Examples of org.broadinstitute.gatk.tools.walkers.genotyper.GenotypeAlleleCounts.alleleIndexAt()

        final GenotypeAlleleCounts genotypeAlleleCounts = calculator.genotypeAlleleCountsAt(bestLikelihoodIndex);
        final int[] AC = new int[numberOfAlleles - 1];
        final double[] AF = new double[numberOfAlleles - 1];
        final int allelesPresentCount = genotypeAlleleCounts.distinctAlleleCount();
        for (int i = 0; i < allelesPresentCount; i++) {
            final int alleleIndex = genotypeAlleleCounts.alleleIndexAt(i);
            if (alleleIndex == 0) continue; // skip the reference allele.
            final int alleleCount = genotypeAlleleCounts.alleleCountAt(i);
            AC[alleleIndex - 1] = alleleCount;
            AF[alleleIndex - 1] = ((double) alleleCount) / (double) ploidy;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.