Search in sources :

Example 1 with IntegerCopyNumberTransitionMatrixCollection

use of org.broadinstitute.hellbender.tools.exome.germlinehmm.IntegerCopyNumberTransitionMatrixCollection in project gatk by broadinstitute.

the class GermlineCNVCaller method createIntegerCopyNumberTransitionProbabilityCacheCollection.

private IntegerCopyNumberTransitionProbabilityCacheCollection createIntegerCopyNumberTransitionProbabilityCacheCollection() {
    IntegerCopyNumberTransitionProbabilityCacheCollection transitionProbabilityCacheCollection;
    try (final Reader copyNumberTransitionPriorTableReader = getReaderFromURI(copyNumberTransitionPriorTableURI)) {
        final String parentURI = new File(copyNumberTransitionPriorTableURI).getParent();
        final IntegerCopyNumberTransitionMatrixCollection transitionMatrixCollection = IntegerCopyNumberTransitionMatrixCollection.read(copyNumberTransitionPriorTableReader, parentURI);
        transitionProbabilityCacheCollection = new IntegerCopyNumberTransitionProbabilityCacheCollection(transitionMatrixCollection, true);
    } catch (final IOException ex) {
        throw new RuntimeException("Could not close the copy number transition prior table reader", ex);
    }
    return transitionProbabilityCacheCollection;
}
Also used : ContigGermlinePloidyAnnotationTableReader(org.broadinstitute.hellbender.tools.exome.sexgenotyper.ContigGermlinePloidyAnnotationTableReader) SexGenotypeTableReader(org.broadinstitute.hellbender.tools.exome.sexgenotyper.SexGenotypeTableReader) IntegerCopyNumberTransitionMatrixCollection(org.broadinstitute.hellbender.tools.exome.germlinehmm.IntegerCopyNumberTransitionMatrixCollection) IntegerCopyNumberTransitionProbabilityCacheCollection(org.broadinstitute.hellbender.tools.exome.germlinehmm.IntegerCopyNumberTransitionProbabilityCacheCollection)

Example 2 with IntegerCopyNumberTransitionMatrixCollection

use of org.broadinstitute.hellbender.tools.exome.germlinehmm.IntegerCopyNumberTransitionMatrixCollection in project gatk-protected by broadinstitute.

the class GermlineCNVCaller method createIntegerCopyNumberTransitionProbabilityCacheCollection.

private IntegerCopyNumberTransitionProbabilityCacheCollection createIntegerCopyNumberTransitionProbabilityCacheCollection() {
    IntegerCopyNumberTransitionProbabilityCacheCollection transitionProbabilityCacheCollection;
    try (final Reader copyNumberTransitionPriorTableReader = getReaderFromURI(copyNumberTransitionPriorTableURI)) {
        final String parentURI = new File(copyNumberTransitionPriorTableURI).getParent();
        final IntegerCopyNumberTransitionMatrixCollection transitionMatrixCollection = IntegerCopyNumberTransitionMatrixCollection.read(copyNumberTransitionPriorTableReader, parentURI);
        transitionProbabilityCacheCollection = new IntegerCopyNumberTransitionProbabilityCacheCollection(transitionMatrixCollection, true);
    } catch (final IOException ex) {
        throw new RuntimeException("Could not close the copy number transition prior table reader", ex);
    }
    return transitionProbabilityCacheCollection;
}
Also used : ContigGermlinePloidyAnnotationTableReader(org.broadinstitute.hellbender.tools.exome.sexgenotyper.ContigGermlinePloidyAnnotationTableReader) SexGenotypeTableReader(org.broadinstitute.hellbender.tools.exome.sexgenotyper.SexGenotypeTableReader) IntegerCopyNumberTransitionMatrixCollection(org.broadinstitute.hellbender.tools.exome.germlinehmm.IntegerCopyNumberTransitionMatrixCollection) IntegerCopyNumberTransitionProbabilityCacheCollection(org.broadinstitute.hellbender.tools.exome.germlinehmm.IntegerCopyNumberTransitionProbabilityCacheCollection)

Aggregations

IntegerCopyNumberTransitionMatrixCollection (org.broadinstitute.hellbender.tools.exome.germlinehmm.IntegerCopyNumberTransitionMatrixCollection)2 IntegerCopyNumberTransitionProbabilityCacheCollection (org.broadinstitute.hellbender.tools.exome.germlinehmm.IntegerCopyNumberTransitionProbabilityCacheCollection)2 ContigGermlinePloidyAnnotationTableReader (org.broadinstitute.hellbender.tools.exome.sexgenotyper.ContigGermlinePloidyAnnotationTableReader)2 SexGenotypeTableReader (org.broadinstitute.hellbender.tools.exome.sexgenotyper.SexGenotypeTableReader)2