Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public RecordWriter<Text,SequencedFragment> getRecordWriter(TaskAttemptContext t
boolean isCompressed = getCompressOutput(task);

CompressionCodec codec = null;
String extension = "";
String extension = ".fastq";

if (isCompressed)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public void readSAMHeaderFrom(InputStream in, Configuration conf) {
TaskAttemptContext ctx)
throws IOException
{
return getRecordWriter(ctx, getDefaultWorkFile(ctx, ""));
return getRecordWriter(ctx, getDefaultWorkFile(ctx, ".sam"));
}

// Allows wrappers to provide their own work file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public void readSAMHeaderFrom(InputStream in, Configuration conf) {
TaskAttemptContext ctx)
throws IOException
{
return getRecordWriter(ctx, getDefaultWorkFile(ctx, ""));
return getRecordWriter(ctx, getDefaultWorkFile(ctx, ".bam"));
}

// Allows wrappers to provide their own work file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public void readSAMHeaderFrom(InputStream in, Configuration conf) {
TaskAttemptContext ctx)
throws IOException
{
return getRecordWriter(ctx, getDefaultWorkFile(ctx, ""));
return getRecordWriter(ctx, getDefaultWorkFile(ctx, ".cram"));
}

// Allows wrappers to provide their own work file.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public void readHeaderFrom(SeekableStream in) throws IOException {
Configuration conf = ctx.getConfiguration();
boolean isCompressed = getCompressOutput(ctx);
CompressionCodec codec = null;
String extension = "";
String extension = ".vcf";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this get replaced by the compressor extension in the next code block anyway? So it will be "file.bgz" not "file.vcf.bgz".

if (isCompressed) {
Class<? extends CompressionCodec> codecClass =
getOutputCompressorClass(ctx, BGZFCodec.class);
Expand Down