diff --git a/src/freqs/cli/import/reading.rs b/src/freqs/cli/import/reading.rs index 51787886..110e63e0 100644 --- a/src/freqs/cli/import/reading.rs +++ b/src/freqs/cli/import/reading.rs @@ -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)?; @@ -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))?; @@ -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()); @@ -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()); diff --git a/src/gnomad_pbs/gnomad2.rs b/src/gnomad_pbs/gnomad2.rs index a0e4fcc6..6726819b 100644 --- a/src/gnomad_pbs/gnomad2.rs +++ b/src/gnomad_pbs/gnomad2.rs @@ -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(); @@ -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(); @@ -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(); diff --git a/src/gnomad_pbs/gnomad3.rs b/src/gnomad_pbs/gnomad3.rs index 313b64cc..05f15573 100644 --- a/src/gnomad_pbs/gnomad3.rs +++ b/src/gnomad_pbs/gnomad3.rs @@ -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(); diff --git a/src/gnomad_pbs/mtdna.rs b/src/gnomad_pbs/mtdna.rs index f352a281..1b1141e5 100644 --- a/src/gnomad_pbs/mtdna.rs +++ b/src/gnomad_pbs/mtdna.rs @@ -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();