Skip to content

Commit

Permalink
more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Nov 8, 2023
1 parent 3e30094 commit 47ab9ed
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/freqs/cli/import/reading.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ mod test {
#[test]
fn guess_assembly_helix_chrmt_ambiguous_ok_initial_none() -> Result<(), anyhow::Error> {
let path = "tests/freqs/reading/helix.chrM.vcf";
let mut reader = noodles_vcf::reader::Builder.build_from_path(path)?;
let mut reader = noodles_vcf::reader::Builder::default().build_from_path(path)?;
let header = reader.read_header()?;

let actual = guess_assembly(&header, true, None)?;
Expand All @@ -249,7 +249,7 @@ mod test {
#[test]
fn guess_assembly_helix_chrmt_ambiguous_ok_initial_override() -> Result<(), anyhow::Error> {
let path = "tests/freqs/reading/helix.chrM.vcf";
let mut reader = noodles_vcf::reader::Builder.build_from_path(path)?;
let mut reader = noodles_vcf::reader::Builder::default().build_from_path(path)?;
let header = reader.read_header()?;

let actual = guess_assembly(&header, true, Some(Assembly::Grch37p10))?;
Expand All @@ -262,7 +262,7 @@ mod test {
fn guess_assembly_helix_chrmt_ambiguous_ok_initial_override_fails() -> Result<(), anyhow::Error>
{
let path = "tests/freqs/reading/helix.chrM.vcf";
let mut reader = noodles_vcf::reader::Builder.build_from_path(path)?;
let mut reader = noodles_vcf::reader::Builder::default().build_from_path(path)?;
let header = reader.read_header()?;

assert!(guess_assembly(&header, false, Some(Assembly::Grch37)).is_err());
Expand All @@ -273,7 +273,7 @@ mod test {
#[test]
fn guess_assembly_helix_chrmt_ambiguous_fail() -> Result<(), anyhow::Error> {
let path = "tests/freqs/reading/helix.chrM.vcf";
let mut reader = noodles_vcf::reader::Builder.build_from_path(path)?;
let mut reader = noodles_vcf::reader::Builder::default().build_from_path(path)?;
let header = reader.read_header()?;

assert!(guess_assembly(&header, false, None).is_err());
Expand Down
6 changes: 3 additions & 3 deletions src/gnomad_pbs/gnomad2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ mod test {
#[test]
fn test_record_from_vcf_allele_gnomad_exomes_grch37() -> Result<(), anyhow::Error> {
let path_vcf = "tests/gnomad-nuclear/example-exomes-grch37/gnomad-exomes.vcf";
let mut reader_vcf = noodles_vcf::reader::Builder.build_from_path(path_vcf)?;
let mut reader_vcf = noodles_vcf::reader::Builder::default().build_from_path(path_vcf)?;
let header = reader_vcf.read_header()?;

let mut records = Vec::new();
Expand All @@ -453,7 +453,7 @@ mod test {
#[test]
fn test_record_from_vcf_allele_gnomad_genomes_grch37() -> Result<(), anyhow::Error> {
let path_vcf = "tests/gnomad-nuclear/example-genomes-grch37/gnomad-genomes.vcf";
let mut reader_vcf = noodles_vcf::reader::Builder.build_from_path(path_vcf)?;
let mut reader_vcf = noodles_vcf::reader::Builder::default().build_from_path(path_vcf)?;
let header = reader_vcf.read_header()?;

let mut records = Vec::new();
Expand All @@ -472,7 +472,7 @@ mod test {
#[test]
fn test_record_from_vcf_allele_gnomad_exomes_grch38() -> Result<(), anyhow::Error> {
let path_vcf = "tests/gnomad-nuclear/example-exomes-grch38/gnomad-exomes.vcf";
let mut reader_vcf = noodles_vcf::reader::Builder.build_from_path(path_vcf)?;
let mut reader_vcf = noodles_vcf::reader::Builder::default().build_from_path(path_vcf)?;
let header = reader_vcf.read_header()?;

let mut records = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion src/gnomad_pbs/gnomad3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ mod test {
#[test]
fn test_record_from_vcf_allele_gnomad_genomes_grch38() -> Result<(), anyhow::Error> {
let path_vcf = "tests/gnomad-nuclear/example-genomes-grch38/gnomad-genomes.vcf";
let mut reader_vcf = noodles_vcf::reader::Builder.build_from_path(path_vcf)?;
let mut reader_vcf = noodles_vcf::reader::Builder::default().build_from_path(path_vcf)?;
let header = reader_vcf.read_header()?;

let mut records = Vec::new();
Expand Down
2 changes: 1 addition & 1 deletion src/gnomad_pbs/mtdna.rs
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ mod test {
#[test]
fn test_record_from_vcf_allele() -> Result<(), anyhow::Error> {
let path_vcf = "tests/gnomad-mtdna/example/gnomad-mtdna.vcf";
let mut reader_vcf = noodles_vcf::reader::Builder.build_from_path(path_vcf)?;
let mut reader_vcf = noodles_vcf::reader::Builder::default().build_from_path(path_vcf)?;
let header = reader_vcf.read_header()?;

let mut records = Vec::new();
Expand Down

0 comments on commit 47ab9ed

Please sign in to comment.