Skip to content

Commit

Permalink
formatting whitespace with cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
sjneph committed Aug 15, 2024
1 parent 1972150 commit d664504
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/fiber.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use super::*;
use crate::utils::bamranges::*;
use crate::utils::basemods::BaseMods;
use crate::utils::bio_io::*;
use crate::utils::ftexpression_v2::parse_filter;
use crate::utils::ftexpression_v2::apply_filter_to_range;
use crate::utils::ftexpression_v2::parse_filter;
use rayon::prelude::*;
use rust_htslib::bam::Read;
use rust_htslib::{bam, bam::ext::BamRecordExtensions, bam::record::Aux, bam::HeaderView};
Expand Down Expand Up @@ -90,7 +90,8 @@ impl FiberseqData {
fsd.nuc = apply_filter_to_range(&parser, fsd.nuc).unwrap();
} else if parser.rng_name == "m6a" {
fsd.m6a = apply_filter_to_range(&parser, fsd.m6a).unwrap();
} else { // 5mC
} else {
// 5mC
fsd.cpg = apply_filter_to_range(&parser, fsd.cpg).unwrap();
};
}
Expand Down
5 changes: 4 additions & 1 deletion src/utils/ftexpression_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ fn cmp(name: &str, value: f64, operator: &str, threshold: &Threshold) -> bool {
Threshold::Range(min, max) => match operator {
"=" => (value as f64) >= *min && (value as f64) < *max,
_ => {
eprintln!("Invalid operator for {} function with range: {}", name, operator);
eprintln!(
"Invalid operator for {} function with range: {}",
name, operator
);
std::process::exit(1);
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/utils/input_bam.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ pub struct FiberFilters {
long = "ftx",
alias = "ft-expression",
default_value = "",
help_heading = "BAM-Options",
help_heading = "BAM-Options"
)]
pub filter_expression: Option<String>,
/// Minium score in the ML tag to use or include in the output
Expand Down

0 comments on commit d664504

Please sign in to comment.