Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Patro committed Aug 30, 2020
1 parent 8cafeaa commit 3f0d268
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions libradicl/src/quant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,10 @@ fn extract_graph(
graph
}

type BufferedGZFile = BufWriter<GzEncoder<fs::File>>;
struct BootstrapHelper {
bsfile: Option<BufWriter<GzEncoder<fs::File>>>,
mean_var_files: Option<(
BufWriter<GzEncoder<fs::File>>,
BufWriter<GzEncoder<fs::File>>,
)>,
bsfile: Option<BufferedGZFile>,
mean_var_files: Option<(BufferedGZFile, BufferedGZFile)>,
}

impl BootstrapHelper {
Expand Down Expand Up @@ -330,8 +328,7 @@ pub fn quantify(
//naive: bool,
log: &slog::Logger,
) -> Result<(), Box<dyn std::error::Error>> {
type OptionalLockedHandle<T> = Arc<Mutex<Option<T>>>;
type BufferedGZFile = BufWriter<GzEncoder<fs::File>>;
//type OptionalLockedHandle<T> = Arc<Mutex<Option<T>>>;

let parent = std::path::Path::new(&input_dir);
let i_file = File::open(parent.join("map.collated.rad")).unwrap();
Expand Down Expand Up @@ -855,6 +852,7 @@ pub fn quantify(
}
}

/*
let mmrate_path = parent.join("mmrate.tsv");
let mut mmrate_file = File::create(mmrate_path).expect("couldn't open mmrate file");
let ostr = mmrate
Expand All @@ -864,7 +862,8 @@ pub fn quantify(
.map(|x| x.to_string())
.collect::<Vec<String>>()
.join("\t");
writeln!(mmrate_file, "{}", ostr);
writeln!(mmrate_file, "{}", ostr).expect("couldn't write to multimapping rate file.");
*/

// write to matrix market if we are using it
if use_mtx {
Expand Down

0 comments on commit 3f0d268

Please sign in to comment.