Search in sources :

Example 1 with AlleleFractionData

use of org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionData in project gatk by broadinstitute.

the class AllelicCNV method calculateAllelicBias.

//use AlleleFractionInitializer to determine mean of global allelic-bias distribution given SNP segmentation file
private double calculateAllelicBias(final Genome genome, final File snpSegmentFile) {
    final SegmentedGenome segmentedGenomeForSNPSegmentation = new SegmentedGenome(snpSegmentFile, genome);
    final AlleleFractionData data = new AlleleFractionData(segmentedGenomeForSNPSegmentation);
    final AlleleFractionState initialState = new AlleleFractionInitializer(data).getInitializedState();
    return initialState.meanBias();
}
Also used : AlleleFractionState(org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionState) AlleleFractionData(org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionData) AlleleFractionInitializer(org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionInitializer)

Example 2 with AlleleFractionData

use of org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionData in project gatk-protected by broadinstitute.

the class AllelicCNV method calculateAllelicBias.

//use AlleleFractionInitializer to determine mean of global allelic-bias distribution given SNP segmentation file
private double calculateAllelicBias(final Genome genome, final File snpSegmentFile) {
    final SegmentedGenome segmentedGenomeForSNPSegmentation = new SegmentedGenome(snpSegmentFile, genome);
    final AlleleFractionData data = new AlleleFractionData(segmentedGenomeForSNPSegmentation);
    final AlleleFractionState initialState = new AlleleFractionInitializer(data).getInitializedState();
    return initialState.meanBias();
}
Also used : AlleleFractionState(org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionState) AlleleFractionData(org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionData) AlleleFractionInitializer(org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionInitializer)

Aggregations

AlleleFractionData (org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionData)2 AlleleFractionInitializer (org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionInitializer)2 AlleleFractionState (org.broadinstitute.hellbender.tools.exome.allelefraction.AlleleFractionState)2