Search in sources :

Example 1 with SequentialCoverageAnnotator

use of au.edu.wehi.idsv.SequentialCoverageAnnotator in project gridss by PapenfussLab.

the class AnnotateReferenceCoverage method iterator.

@Override
public CloseableIterator<VariantContextDirectedBreakpoint> iterator(CloseableIterator<VariantContextDirectedBreakpoint> calls, ExecutorService threadpool) {
    ProcessingContext context = getContext();
    List<SAMEvidenceSource> sources = getSamEvidenceSources();
    AssemblyEvidenceSource asm = getAssemblySource();
    int windowSize = SAMEvidenceSource.maximumWindowSize(context, sources, asm);
    return new SequentialCoverageAnnotator<VariantContextDirectedBreakpoint>(context, sources, calls, 2 * windowSize + WINDOW_SIZE_SAFETY_MARGIN, threadpool);
}
Also used : ProcessingContext(au.edu.wehi.idsv.ProcessingContext) AssemblyEvidenceSource(au.edu.wehi.idsv.AssemblyEvidenceSource) SAMEvidenceSource(au.edu.wehi.idsv.SAMEvidenceSource) SequentialCoverageAnnotator(au.edu.wehi.idsv.SequentialCoverageAnnotator) VariantContextDirectedBreakpoint(au.edu.wehi.idsv.VariantContextDirectedBreakpoint)

Aggregations

AssemblyEvidenceSource (au.edu.wehi.idsv.AssemblyEvidenceSource)1 ProcessingContext (au.edu.wehi.idsv.ProcessingContext)1 SAMEvidenceSource (au.edu.wehi.idsv.SAMEvidenceSource)1 SequentialCoverageAnnotator (au.edu.wehi.idsv.SequentialCoverageAnnotator)1 VariantContextDirectedBreakpoint (au.edu.wehi.idsv.VariantContextDirectedBreakpoint)1