Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 committed Jun 30, 2022
1 parent 81013f9 commit 9cd847d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/bam/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2826,9 +2826,7 @@ CCCCCCCCCCCCCCCCCCC"[..],
.prefix("rust-htslib")
.tempdir()
.expect("Cannot create temp dir");
//let bampath = tmp.path().join("test.bam");
//let bampath = "/tmp/test.bam";
let bampath = "/tmp/test.sam";
let bampath = tmp.path().join("test.bam");

// write an unmapped BAM record (uBAM)
{
Expand All @@ -2843,8 +2841,7 @@ CCCCCCCCCCCCCCCCCCC"[..],
);

// Build the writer
//let mut writer = Writer::from_path(&bampath, &header, Format::Bam).unwrap();
let mut writer = Writer::from_path(&bampath, &header, Format::Sam).unwrap();
let mut writer = Writer::from_path(&bampath, &header, Format::Bam).unwrap();

// Build an empty record
let mut record = Record::new();
Expand Down

0 comments on commit 9cd847d

Please sign in to comment.