-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add converting files to bigWig #37
Conversation
start_position: i32, | ||
stepsize: i32, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
u32
since these won't ever be negative?
start_position: i32, | ||
stepsize: i32, | ||
) { | ||
let path = std::path::Path::new(&filename).parent().unwrap(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we catch any potential errors instead of unwrap()
?
} | ||
|
||
/// Converts uniwig generated bedGraphs to bigWig files | ||
pub fn write_bw_files(location: &str, chrom_sizes: &str, num_threads: i32, zoom_level: i32) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about changing the type of num_threads
and zoom_level
to u32
? They are being converted anyways down there
leaving branch open to continue bam work |
Uniwig will create bedGraphs and then use these (in tandem with bigTools) to create bigWig files.