Class CompareReferences.CompareReferencesOutputTableWriter
java.lang.Object
org.broadinstitute.hellbender.utils.tsv.TableWriter<ReferenceSequenceTable.TableRow>
org.broadinstitute.hellbender.tools.reference.CompareReferences.CompareReferencesOutputTableWriter
- All Implemented Interfaces:
Closeable
,AutoCloseable
- Enclosing class:
- CompareReferences
public static class CompareReferences.CompareReferencesOutputTableWriter
extends TableWriter<ReferenceSequenceTable.TableRow>
TableWriter to format and write the table output.
-
Field Summary
Fields inherited from class org.broadinstitute.hellbender.utils.tsv.TableWriter
METADATA_TAG
-
Constructor Summary
ConstructorsConstructorDescriptionCompareReferencesOutputTableWriter
(Writer writer, TableColumnCollection columns) CompareReferencesOutputTableWriter
(Path table, TableColumnCollection columns) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
composeLine
(ReferenceSequenceTable.TableRow record, DataLine dataLine) Composes the data-line to write into the output to represent a given recordMethods inherited from class org.broadinstitute.hellbender.utils.tsv.TableWriter
close, flush, writeAllRecords, writeComment, writeHeaderIfApplies, writeMetadata, writeRecord
-
Constructor Details
-
CompareReferencesOutputTableWriter
public CompareReferencesOutputTableWriter(Path table, TableColumnCollection columns) throws IOException - Throws:
IOException
-
CompareReferencesOutputTableWriter
public CompareReferencesOutputTableWriter(Writer writer, TableColumnCollection columns) throws IOException - Throws:
IOException
-
-
Method Details
-
composeLine
Description copied from class:TableWriter
Composes the data-line to write into the output to represent a given recordAlso the first element cannot contain the
comment prefix
. If that is a genuine valid value for the first column you shall consider to re-order the columns or change the encoding of the first column to avoid this issue.Both inputs,
record
anddataLine
are guaranteed not to benull
s.- Specified by:
composeLine
in classTableWriter<ReferenceSequenceTable.TableRow>
- Parameters:
record
- the record to write into the data-line.dataLine
- the destination data-line object.
-