Skip to content

Commit 848078e

Browse files
authored
Merge pull request #85 from databio/dev
0.2.1 release
2 parents 5ce8434 + f0dece6 commit 848078e

File tree

7 files changed

+15
-5
lines changed

7 files changed

+15
-5
lines changed

bindings/python/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gtars-py"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55

66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

bindings/r/src/rust/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = 'gtars-r'
3-
version = '0.2.0'
3+
version = '0.2.1'
44
edition = '2021'
55

66
[lib]

gtars/Cargo.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gtars"
3-
version = "0.2.0"
3+
version = "0.2.1"
44
edition = "2021"
55
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."
66
license = "MIT"
@@ -24,7 +24,7 @@ noodles = { version = "0.83.0", features = ["bam", "sam", "bgzf"] }
2424
bstr = "1.10.0"
2525
rayon = "1.10.0"
2626
indicatif = "0.17.8"
27-
bigtools = "0.5.4"
27+
bigtools = "0.5.5"
2828
tokio = "1.40.0"
2929
os_pipe = "1.2.1"
3030
glob = "0.3.1"

gtars/docs/changelog.md

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [0.2.1]
8+
- allow comments at the beginning of fragment files
9+
- bump bigtools to 0.5.5, fixing [#74](https://github.com/databio/gtars/issues/74) and [#77](https://github.com/databio/gtars/issues/77)
10+
711
## [0.2.0]
812
- add position shift workflow for bam to bw (was previously added for bam to bed)
913
- add scaling argument for bam to bw workflow [#53](https://github.com/databio/gtars/issues/53)

gtars/src/scoring/fragment_scoring.rs

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ pub fn region_scoring_from_fragments(
4545
for line in reader.lines() {
4646
let line = line?;
4747

48+
if line.starts_with('#') {
49+
continue;
50+
}
51+
4852
// convert to fragment and then get new positions of start and end
4953
let fragment = Fragment::from_str(&line)?;
5054

gtars/src/uniwig/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ fn process_bam(
728728
// pre-process chromosomes that are actually in the bam file BEFORE spawning threads.
729729
for chromosome in list_of_valid_chromosomes.iter() {
730730
let region = chromosome.parse().unwrap();
731+
//TODO if no .bai file exists, the below line will fail and won't properly tell you WHY it failed, issue #57
731732
let mut reader = bam::io::indexed_reader::Builder::default()
732733
.build_from_path(filepath)
733734
.unwrap();

gtars/tests/test.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,8 @@ mod tests {
10371037
let path = PathBuf::from(&tempdir.path());
10381038

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

10431044
let smoothsize: i32 = 1;

0 commit comments

Comments
 (0)