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

0.2.1 release #85

Merged
merged 6 commits into from
Feb 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bindings/python/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gtars-py"
version = "0.2.0"
version = "0.2.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion bindings/r/src/rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = 'gtars-r'
version = '0.2.0'
version = '0.2.1'
edition = '2021'

[lib]
Expand Down
4 changes: 2 additions & 2 deletions gtars/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "gtars"
version = "0.2.0"
version = "0.2.1"
edition = "2021"
description = "Performance-critical tools to manipulate, analyze, and process genomic interval data. Primarily focused on building tools for geniml - our genomic machine learning python package."
license = "MIT"
Expand All @@ -24,7 +24,7 @@ noodles = { version = "0.83.0", features = ["bam", "sam", "bgzf"] }
bstr = "1.10.0"
rayon = "1.10.0"
indicatif = "0.17.8"
bigtools = "0.5.4"
bigtools = "0.5.5"
tokio = "1.40.0"
os_pipe = "1.2.1"
glob = "0.3.1"
Expand Down
4 changes: 4 additions & 0 deletions gtars/docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.2.1]
- allow comments at the beginning of fragment files
- bump bigtools to 0.5.5, fixing [#74](https://github.com/databio/gtars/issues/74) and [#77](https://github.com/databio/gtars/issues/77)

## [0.2.0]
- add position shift workflow for bam to bw (was previously added for bam to bed)
- add scaling argument for bam to bw workflow [#53](https://github.com/databio/gtars/issues/53)
Expand Down
4 changes: 4 additions & 0 deletions gtars/src/scoring/fragment_scoring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ pub fn region_scoring_from_fragments(
for line in reader.lines() {
let line = line?;

if line.starts_with('#') {
continue;
}

// convert to fragment and then get new positions of start and end
let fragment = Fragment::from_str(&line)?;

Expand Down
1 change: 1 addition & 0 deletions gtars/src/uniwig/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ fn process_bam(
// pre-process chromosomes that are actually in the bam file BEFORE spawning threads.
for chromosome in list_of_valid_chromosomes.iter() {
let region = chromosome.parse().unwrap();
//TODO if no .bai file exists, the below line will fail and won't properly tell you WHY it failed, issue #57
let mut reader = bam::io::indexed_reader::Builder::default()
.build_from_path(filepath)
.unwrap();
Expand Down
3 changes: 2 additions & 1 deletion gtars/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,8 @@ mod tests {
let path = PathBuf::from(&tempdir.path());

// For some reason, you cannot chain .as_string() to .unwrap() and must create a new line.
let bwfileheader_path = path.into_os_string().into_string().unwrap();
let mut bwfileheader_path = path.into_os_string().into_string().unwrap();
bwfileheader_path.push_str("/final/");
let bwfileheader = bwfileheader_path.as_str();

let smoothsize: i32 = 1;
Expand Down
Loading