Skip to content

Commit

Permalink
refactor: Improve file variable names in FqToFa struct
Browse files Browse the repository at this point in the history
  • Loading branch information
cauliyang committed Aug 25, 2024
1 parent a76169d commit 1cf0c03
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/deepbiop-cli/src/cli/fq2fa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ impl FqToFa {

for fq in &self.fq {
let fq_records = fq::io::fastq_to_fasta(fq)?;
let file_path = fq.with_extension("fa");
let file = std::fs::File::create(&file_path)?;
let mut writer = fasta::io::Writer::new(file);
let fa_file_path = fq.with_extension("fa");
let fa_file_handler = std::fs::File::create(&fa_file_path)?;
let mut fa_writer = fasta::io::Writer::new(fa_file_handler);
for record in fq_records {
writer.write_record(&record)?;
fa_writer.write_record(&record)?;
}
}
Ok(())
Expand Down

0 comments on commit 1cf0c03

Please sign in to comment.