From e53a952aeb10afca4bf863cb5cc9bb9e78d3ce14 Mon Sep 17 00:00:00 2001 From: Mauricio Carneiro Date: Wed, 12 Oct 2011 01:57:02 -0400 Subject: [PATCH] Added ION Torrent support to CountCovariates. --- .../sting/gatk/walkers/recalibration/CycleCovariate.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/public/java/src/org/broadinstitute/sting/gatk/walkers/recalibration/CycleCovariate.java b/public/java/src/org/broadinstitute/sting/gatk/walkers/recalibration/CycleCovariate.java index 5d07922a7..e117454f9 100755 --- a/public/java/src/org/broadinstitute/sting/gatk/walkers/recalibration/CycleCovariate.java +++ b/public/java/src/org/broadinstitute/sting/gatk/walkers/recalibration/CycleCovariate.java @@ -164,6 +164,7 @@ public class CycleCovariate implements StandardCovariate { private static List LS454_NAMES = Arrays.asList("454"); private static List COMPLETE_GENOMICS_NAMES = Arrays.asList("COMPLETE"); private static List PACBIO_NAMES = Arrays.asList("PACBIO"); + private static List ION_TORRENT_NAMES = Arrays.asList("IONTORRENT"); private static boolean isPlatform(SAMRecord read, List names) { String pl = read.getReadGroup().getPlatform().toUpperCase(); @@ -224,10 +225,10 @@ public class CycleCovariate implements StandardCovariate { } //----------------------------- - // 454 + // 454 and Ion Torrent //----------------------------- - else if ( isPlatform(read, LS454_NAMES) ) { // Some bams have "LS454" and others have just "454" + else if ( isPlatform(read, LS454_NAMES) || isPlatform(read, ION_TORRENT_NAMES)) { // Some bams have "LS454" and others have just "454" final int readLength = read.getReadLength(); final byte[] bases = read.getReadBases();