Search in sources :

Example 1 with CSVFormat

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();
}
Also used : FileWriter(java.io.FileWriter) CSVFormat(org.jooq.CSVFormat) BufferedWriter(java.io.BufferedWriter)

Aggregations

BufferedWriter (java.io.BufferedWriter)1 FileWriter (java.io.FileWriter)1 CSVFormat (org.jooq.CSVFormat)1