|
1 | 1 | package org.labkey.sequenceanalysis.pipeline; |
2 | 2 |
|
| 3 | +import htsjdk.samtools.SamPairUtil; |
3 | 4 | import htsjdk.samtools.metrics.MetricBase; |
4 | 5 | import htsjdk.samtools.metrics.MetricsFile; |
5 | 6 | import org.apache.commons.beanutils.ConversionException; |
@@ -164,6 +165,11 @@ private static List<Map<String, Object>> processDuplicationMetrics(MetricsFile m |
164 | 165 | List<Map<String, Object>> ret = new ArrayList<>(); |
165 | 166 |
|
166 | 167 | List<DuplicationMetrics> metrics = metricsFile.getMetrics(); |
| 168 | + if (metrics.size() > 1) |
| 169 | + { |
| 170 | + log.info("More than one set of DuplicationMetrics: " + metrics.size()); |
| 171 | + } |
| 172 | + |
167 | 173 | for (DuplicationMetrics m : metrics) |
168 | 174 | { |
169 | 175 | Map<String, Object> metricNames = new HashMap<>(); |
@@ -221,6 +227,14 @@ private static List<Map<String, Object>> processInsertSizeMetrics(MetricsFile me |
221 | 227 | List<InsertSizeMetrics> metrics = metricsFile.getMetrics(); |
222 | 228 | for (InsertSizeMetrics m : metrics) |
223 | 229 | { |
| 230 | + log.info("insert size metrics pair orientation: " + m.PAIR_ORIENTATION.name()); |
| 231 | + |
| 232 | + if (m.PAIR_ORIENTATION != SamPairUtil.PairOrientation.FR) |
| 233 | + { |
| 234 | + log.info("skipping pair orientation: " + m.PAIR_ORIENTATION.name()); |
| 235 | + continue; |
| 236 | + } |
| 237 | + |
224 | 238 | Map<String, Object> metricNames = new HashMap<>(); |
225 | 239 | metricNames.put("Mean Insert Size", m.MEAN_INSERT_SIZE); |
226 | 240 | metricNames.put("Median Insert Size", m.MEDIAN_INSERT_SIZE); |
|
0 commit comments