Skip to content
Snippets Groups Projects
Verified Commit fb238b38 authored by Laurent Modolo's avatar Laurent Modolo
Browse files

v0.1.5: add --intermediate-bigwig (fix output name)

parent ad2be904
Branches dev
No related tags found
No related merge requests found
...@@ -64,7 +64,8 @@ dependencies = [ ...@@ -64,7 +64,8 @@ dependencies = [
] ]
[[package]] [[package]]
version = "0.1.3" name = "bamcalib"
version = "0.1.4"
dependencies = [ dependencies = [
"bam", "bam",
"bigtools", "bigtools",
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
[package] [package]
name = "bamcalib" name = "bamcalib"
version = "0.1.4" version = "0.1.5"
edition = "2021" edition = "2021"
description = "A command line tools to compute normalized bigwig from calibrated bam of a Chip-Seq experiment" description = "A command line tools to compute normalized bigwig from calibrated bam of a Chip-Seq experiment"
license = "AGPL-3.0-or-later" license = "AGPL-3.0-or-later"
......
...@@ -238,19 +238,20 @@ impl BedGraphWrapper { ...@@ -238,19 +238,20 @@ impl BedGraphWrapper {
if intermediate_bigwig { if intermediate_bigwig {
bedwrapper.bed.reset(); bedwrapper.bed.reset();
bedwrapper.bed.or_stats.intermediate_bigwig(true, true); bedwrapper.bed.or_stats.intermediate_bigwig(true, true);
let mut path = PathBuf::from(file_ip); let mut path_ip = PathBuf::from(file_ip);
path.set_extension("ip.bigwig"); path_ip.set_extension("OR.bigwig");
BedGraphWrapper::write_bigwig_old_norm( BedGraphWrapper::write_bigwig_old_norm(
bedwrapper.clone(), bedwrapper.clone(),
&path.to_str().unwrap(), &path_ip.to_str().unwrap(),
thread_local, thread_local,
); );
bedwrapper.bed.reset(); bedwrapper.bed.reset();
bedwrapper.bed.or_stats.intermediate_bigwig(true, false); bedwrapper.bed.or_stats.intermediate_bigwig(true, false);
path.set_extension("wce.bigwig"); let mut path_wce = PathBuf::from(file_wce);
path_wce.set_extension("OR.bigwig");
BedGraphWrapper::write_bigwig_old_norm( BedGraphWrapper::write_bigwig_old_norm(
bedwrapper, bedwrapper,
&path.to_str().unwrap(), &path_wce.to_str().unwrap(),
thread_local, thread_local,
); );
} }
......
...@@ -13,7 +13,7 @@ use clap::Parser; ...@@ -13,7 +13,7 @@ use clap::Parser;
#[derive(Parser, Debug)] #[derive(Parser, Debug)]
#[command(name = "bamcalib")] #[command(name = "bamcalib")]
#[command(author = "Laurent Modolo <laurent.modolo@ens-lyon.fr>")] #[command(author = "Laurent Modolo <laurent.modolo@ens-lyon.fr>")]
#[command(version = "1.0.4")] #[command(version = "1.0.5")]
#[command(about = "Compute calibrated density from calibration mapping data", long_about = None)] #[command(about = "Compute calibrated density from calibration mapping data", long_about = None)]
struct Args { struct Args {
/// sorted bam file for the IP data /// sorted bam file for the IP data
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment