-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
optimized TSV experiment, and range GQ dropping (#6987)
* optimized TSV experiment, and range GQ dropping * typos * PR comment
- Loading branch information
Showing
9 changed files
with
121 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -191,6 +191,7 @@ public enum OutputType { | |
TSV, | ||
ORC, | ||
AVRO, | ||
PARQUET | ||
PARQUET, | ||
TSV2 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/main/java/org/broadinstitute/hellbender/tools/variantdb/nextgen/PetTsvWriter.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.broadinstitute.hellbender.tools.variantdb.nextgen; | ||
|
||
import java.io.BufferedWriter; | ||
import java.io.Closeable; | ||
import java.io.IOException; | ||
import java.nio.file.Files; | ||
import java.nio.file.Paths; | ||
|
||
import org.broadinstitute.hellbender.tools.variantdb.IngestConstants; | ||
|
||
public class PetTsvWriter implements Closeable { | ||
private BufferedWriter writer; | ||
private final static char SEPARATOR = IngestConstants.SEPARATOR; | ||
|
||
public PetTsvWriter(String outputFile) throws IOException{ | ||
writer = Files.newBufferedWriter(Paths.get(outputFile)); | ||
|
||
writer.append("location"); | ||
writer.append(SEPARATOR); | ||
writer.append("sample"); | ||
writer.append(SEPARATOR); | ||
writer.append("state"); | ||
} | ||
|
||
public void addRow(long location, long sampleId, String state) throws IOException { | ||
writer.append(String.valueOf(location)); | ||
writer.append(SEPARATOR); | ||
writer.append(String.valueOf(sampleId)); | ||
writer.append(SEPARATOR); | ||
writer.append(state); | ||
} | ||
|
||
public void close() throws IOException { | ||
writer.flush(); | ||
writer.close(); | ||
} | ||
} |