Skip to content
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

Merged
merged 10 commits into from
Oct 22, 2024
Merged

Conversation

donaldcampbelljr
Copy link
Member

@donaldcampbelljr donaldcampbelljr commented Oct 21, 2024

Uniwig will create bedGraphs and then use these (in tandem with bigTools) to create bigWig files.

@donaldcampbelljr donaldcampbelljr changed the base branch from master to dev October 21, 2024 21:23
Comment on lines +128 to +129
start_position: i32,
stepsize: i32,
Copy link
Member

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();
Copy link
Member

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) {
Copy link
Member

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

@donaldcampbelljr donaldcampbelljr merged commit 2e81422 into dev Oct 22, 2024
@donaldcampbelljr
Copy link
Member Author

leaving branch open to continue bam work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants