Skip to content

Commit

Permalink
Allow DeepVariant to run on CRAMs
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jan 19, 2024
1 parent 089ccec commit cd85ff2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.labkey.api.sequenceanalysis.run.AbstractCommandWrapper;
import org.labkey.api.util.FileUtil;
import org.labkey.api.writer.PrintWriters;
import org.labkey.sequenceanalysis.util.SequenceUtil;

import java.io.File;
import java.io.IOException;
Expand Down Expand Up @@ -205,7 +206,7 @@ public void execute(File inputBam, File refFasta, File outputGvcf, PipelineOutpu
File workDir = outputGvcf.getParentFile();

File inputBamLocal = ensureLocalCopy(inputBam, workDir, tracker);
ensureLocalCopy(new File(inputBam.getPath() + ".bai"), workDir, tracker);
ensureLocalCopy(SequenceUtil.getExpectedIndex(inputBam), workDir, tracker);

File refFastaLocal = ensureLocalCopy(refFasta, workDir, tracker);
ensureLocalCopy(new File(refFastaLocal.getPath() + ".fai"), workDir, tracker);
Expand Down

0 comments on commit cd85ff2

Please sign in to comment.