Skip to content

Commit

Permalink
Add flag to disable tabix index creation (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor authored Sep 30, 2024
1 parent 9a9e709 commit 37080e8
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,17 @@ public class InputValidationCommand implements Callable<Integer> {
@Option(names = "--contactEmail", description = "Contact Mail", required = false)
private String contactEmail = "n/a";

@Option(names = "--no-index", description = "Create no tabix index during validation", required = false)
private boolean noIndex = false;

@Option(names = "--report", description = "Cloudgene Report Output", required = false)
private String report = null;

private RefPanel panel = null;

private OutputWriter output = null;


public InputValidationCommand() {

}
Expand Down Expand Up @@ -163,7 +167,7 @@ private boolean checkVcfFiles() throws Exception {

try {

VcfFile vcfFile = VcfFileUtil.load(filename, chunksize, true);
VcfFile vcfFile = VcfFileUtil.load(filename, chunksize, !noIndex);

if (VcfFileUtil.isChrMT(vcfFile.getChromosome())) {
vcfFile.setPhased(true);
Expand Down

0 comments on commit 37080e8

Please sign in to comment.