Пример #1
0
        protected override void Process(BamWorkRequest workRequest, ChrReference chrReference)
        {
            var writerKey = GetChrOutputPath(workRequest, chrReference.Name);

            var caller = _factory.CreateSomaticVariantCaller(chrReference, workRequest.BamFilePath,
                                                             _writerByChrLookup[writerKey], _biasWriterByChrLookup[writerKey], null, Genome.ChromosomesToProcess);

            caller.Execute();
        }
Пример #2
0
        protected override void Process(BamWorkRequest workRequest, ChrReference chrReference)
        {
            var bamWriter = _writerLookup[workRequest];

            if (!string.IsNullOrEmpty(_chrFilter) && _chrFilter != chrReference.Name)
            {
                // just write out that chromosome's info as is
                WriteChromosomeReads(workRequest.BamFilePath, chrReference.Name, bamWriter);
            }
            else
            {
                // do realignment
                var caller = _factory.CreateRealigner(chrReference, workRequest.BamFilePath,
                                                      bamWriter);
                caller.Execute();

                bamWriter.FlushAllBufferedRecords();
            }
        }
Пример #3
0
 protected override void Process(BamWorkRequest workRequest, ChrReference chrReference)
 {
     // do nothing
 }
Пример #4
0
 private string GetChrOutputPath(BamWorkRequest workRequest, string chrName)
 {
     return(workRequest.OutputFilePath + "_" + chrName);
 }