org.broadinstitute.gatk.utils.sam.GATKSAMRecord.setReadFailsVendorQualityCheckFlag()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(1.3k)|赞(0)|评价(0)|浏览(80)

本文整理了Java中org.broadinstitute.gatk.utils.sam.GATKSAMRecord.setReadFailsVendorQualityCheckFlag()方法的一些代码示例,展示了GATKSAMRecord.setReadFailsVendorQualityCheckFlag()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。GATKSAMRecord.setReadFailsVendorQualityCheckFlag()方法的具体详情如下:
包路径:org.broadinstitute.gatk.utils.sam.GATKSAMRecord
类名称:GATKSAMRecord
方法名:setReadFailsVendorQualityCheckFlag

GATKSAMRecord.setReadFailsVendorQualityCheckFlag介绍

暂无

代码示例

代码示例来源:origin: broadgsa/gatk-protected

/**
 * Emit the accumulated dropped reads and reset/clear the cache.
 *
 * @param readDestination destination to receive the reads
 */
public void writeDroppedReads(final ReadDestination readDestination) {
  for (final DroppedReadsTracker.Reason reason : droppedReads.keySet()) {
    final Set<GATKSAMRecord> droppedRecords = droppedReads.get(reason);
    for (final GATKSAMRecord originalRec : droppedRecords) {
      // We want to set the vendor quality check flag on the read emitted to
      // the bamout, so clone the read before update it so we don't affect
      // subsequent filtering/trimming, etc. in the event the original read
      // gets processed again
      final GATKSAMRecord clonedRec = (GATKSAMRecord)originalRec.clone();
      clonedRec.setReadFailsVendorQualityCheckFlag(true);
      readDestination.add(clonedRec);
    }
  }
  // clear and reset the cache
  droppedReads.clear();
}

代码示例来源:origin: broadgsa/gatk

read.setReadFailsVendorQualityCheckFlag(true);
return false;

相关文章

微信公众号

最新文章

更多

GATKSAMRecord类方法