Skip to content

Commit

Permalink
Specifies correct extensions for various file formats. Resolves Hadoo…
Browse files Browse the repository at this point in the history
  • Loading branch information
fnothaft committed Dec 15, 2017
1 parent 0c54715 commit 8f19dab
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
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";
if (isCompressed) {
Class<? extends CompressionCodec> codecClass =
getOutputCompressorClass(ctx, BGZFCodec.class);
Expand Down

0 comments on commit 8f19dab

Please sign in to comment.