Skip to content

Commit

Permalink
Allow PicardAlignmentMetricsHandler to work on CRAMs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Feb 27, 2024
1 parent f64545d commit 1d01804
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.labkey.sequenceanalysis.run.util.CollectWgsMetricsWithNonZeroCoverageWrapper;
import org.labkey.sequenceanalysis.run.util.CollectWgsMetricsWrapper;
import org.labkey.sequenceanalysis.run.util.MarkDuplicatesWrapper;
import org.labkey.sequenceanalysis.util.SequenceUtil;

import java.io.File;
import java.util.ArrayList;
Expand All @@ -39,7 +40,7 @@
*/
public class PicardAlignmentMetricsHandler extends AbstractParameterizedOutputHandler<SequenceOutputHandler.SequenceOutputProcessor>
{
private final FileType _bamFileType = new FileType("bam", false);
private final FileType _bamOrCramFileType = SequenceUtil.FILETYPE.bamOrCram.getFileType();

public PicardAlignmentMetricsHandler()
{
Expand Down Expand Up @@ -68,7 +69,7 @@ public PicardAlignmentMetricsHandler()
@Override
public boolean canProcess(SequenceOutputFile o)
{
return o.getFile() != null && _bamFileType.isType(o.getFile());
return o.getFile() != null && _bamOrCramFileType.isType(o.getFile());
}

@Override
Expand Down

0 comments on commit 1d01804

Please sign in to comment.