Skip to content

Commit fc0ed10

Browse files
committed
Add debug option to bigbedinfo
1 parent 3bfaeae commit fc0ed10

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

bigtools/src/utils/cli/bigbedinfo.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ pub struct BigBedInfoArgs {
2929
#[arg(long)]
3030
#[arg(default_value_t = false)]
3131
pub autosql: bool,
32+
33+
/// Show all info for debugging.
34+
#[arg(long, hide(true))]
35+
#[arg(default_value_t = false)]
36+
pub debug: bool,
3237
}
3338

3439
pub fn bigbedinfo(args: BigBedInfoArgs) -> Result<(), Box<dyn Error>> {
@@ -109,6 +114,9 @@ pub fn bigbedinfo(args: BigBedInfoArgs) -> Result<(), Box<dyn Error>> {
109114
/ (summary.bases_covered as f64 - 1.0);
110115
let std = var.sqrt();
111116
println!("std of depth: {:.6}", std);
117+
if args.debug {
118+
println!("{:?}", header,);
119+
}
112120

113121
Ok(())
114122
}

0 commit comments

Comments
 (0)