use of org.jooq.CSVFormat in project hmftools by hartwigmedical.
the class HmfGenePanelBuilder method writeFile.
private static void writeFile(@NotNull final CommandLine cmd, @NotNull final Result<Record> records) throws IOException {
final BufferedWriter writer = new BufferedWriter(new FileWriter(cmd.getOptionValue(OUT_PATH), false));
// MIVO: format as tsv without header containing column names
final CSVFormat format = new CSVFormat().header(false).delimiter('\t').nullString("").quoteString("");
writer.write(records.formatCSV(format));
writer.close();
}
Aggregations