Skip to content

Commit

Permalink
import cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris7 committed Sep 6, 2024
1 parent d14e3c0 commit b41b8c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/imports/fasta.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::collections::HashSet;
use std::fmt::Debug;
use std::path::PathBuf;
use std::str;

Expand All @@ -8,9 +6,6 @@ use crate::models::{
sequence::Sequence, strand::Strand,
};
use noodles::fasta;
use noodles::vcf::variant::record::samples::{Sample, Series};
use noodles::vcf::variant::record::{AlternateBases, ReferenceBases, Samples};
use noodles::vcf::variant::Record;
use rusqlite::Connection;

pub fn import_fasta(fasta: &String, name: &str, shallow: bool, conn: &mut Connection) {
Expand Down Expand Up @@ -81,6 +76,7 @@ mod tests {
// Note this useful idiom: importing names from outer (for mod tests) scope.
use super::*;
use crate::test_helpers::get_connection;
use std::collections::HashSet;

#[test]
fn test_add_fasta() {
Expand Down
10 changes: 5 additions & 5 deletions src/updates/vcf.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
use std::collections::{HashMap, HashSet};
use std::collections::HashMap;
use std::fmt::Debug;
use std::path::PathBuf;
use std::{io, str};
use std::{io, path::PathBuf, str};

use crate::migrations::run_migrations;
use crate::models::{
Expand All @@ -15,8 +14,8 @@ use crate::parse_genotype;
use noodles::vcf;
use noodles::vcf::variant::record::samples::series::value::genotype::Phasing;
use noodles::vcf::variant::record::samples::series::Value;
use noodles::vcf::variant::record::samples::{Sample, Series};
use noodles::vcf::variant::record::{AlternateBases, ReferenceBases, Samples};
use noodles::vcf::variant::record::samples::Sample;
use noodles::vcf::variant::record::AlternateBases;
use noodles::vcf::variant::Record;
use rusqlite::Connection;

Expand Down Expand Up @@ -285,6 +284,7 @@ mod tests {
use super::*;
use crate::imports::fasta::import_fasta;
use crate::test_helpers::get_connection;
use std::collections::HashSet;

#[test]
fn test_update_fasta_with_vcf() {
Expand Down

0 comments on commit b41b8c9

Please sign in to comment.