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.0 Release - Gibson Les Paul #51

Merged
merged 67 commits into from
Jan 13, 2025
Merged
Changes from 1 commit
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
f06f421
move shifted position logic to its own function
donaldcampbelljr Dec 5, 2024
853389c
add variable_shifted_bam_to_bw for shifted_position workflow
donaldcampbelljr Dec 5, 2024
90f4751
minor adjustment removing let
donaldcampbelljr Dec 5, 2024
1c73d6a
add bamshift argument to uniwig
donaldcampbelljr Dec 5, 2024
7bdc691
some refactoring for bamshift flag
donaldcampbelljr Dec 5, 2024
6709167
update uniwig README.md
donaldcampbelljr Dec 5, 2024
050b515
change arg to `no-bamshift` use references for Flags
donaldcampbelljr Dec 9, 2024
4bab465
fix bug when assigning "shift", add clarity in CLI
donaldcampbelljr Dec 9, 2024
26f5dbe
update readme
donaldcampbelljr Dec 9, 2024
4b8b89d
streamline control flow and messaging
donaldcampbelljr Dec 9, 2024
fa1ae56
Merge pull request #50 from databio/dev_position_shift
donaldcampbelljr Dec 9, 2024
ee70949
update changelog and version in prep for 0.1.2 release
donaldcampbelljr Dec 9, 2024
a6014b3
Merge branch 'master' into dev
donaldcampbelljr Dec 9, 2024
5cd0d98
account for -1 shift in bam_to_bed and variable_shift_bam workflows
donaldcampbelljr Dec 11, 2024
d960854
attempt accumulation fix
donaldcampbelljr Dec 12, 2024
5bd44ab
Attempt fix for #43
donaldcampbelljr Dec 12, 2024
bb34c5d
clamp start position for #43
donaldcampbelljr Dec 12, 2024
f12fd2f
clamp number of counts based on chromsize for #43
donaldcampbelljr Dec 12, 2024
8a12cd6
more work towards #56, skip count for start less than current position
donaldcampbelljr Dec 12, 2024
f26bfed
remove checking first record during bam to bed workflow
donaldcampbelljr Dec 13, 2024
3685f94
add bamscale argument for #53
donaldcampbelljr Dec 13, 2024
ebb598a
update changelog (again) for 0.1.2 release
donaldcampbelljr Dec 16, 2024
df511da
update gitignore
donaldcampbelljr Dec 16, 2024
f0d7f2a
refactor and add wig_shift variable to reduce code duplication
donaldcampbelljr Dec 16, 2024
9673d0e
fix for #34, overwrite zoom
donaldcampbelljr Dec 16, 2024
baeebaa
fix scaling for #53 by changing count and scale to f32
donaldcampbelljr Dec 16, 2024
4ce49dd
add ga4gh refget digest functionality
nsheff Dec 17, 2024
99576b4
minor cleanup
nsheff Dec 17, 2024
85d5ed9
add py init for module
nsheff Dec 17, 2024
9684cd3
register digests module correctly
nsheff Dec 17, 2024
d17c7da
begin adding more tests to cover igd workflow
donaldcampbelljr Dec 18, 2024
5c53208
change nCnts incrementing
donaldcampbelljr Dec 18, 2024
d28ff7d
do not reset nCnts, use it for tests
donaldcampbelljr Dec 18, 2024
93fef4c
add fields to igd_t struct to help with testing during creation
donaldcampbelljr Dec 18, 2024
af8bbbc
some clean up
donaldcampbelljr Dec 18, 2024
2998139
add new test_igd_create_then_load_from_disk
donaldcampbelljr Dec 18, 2024
6f383aa
attempt to read from buffer for test_igd_create_then_load_from_disk f…
donaldcampbelljr Dec 18, 2024
925c056
update test assertions
donaldcampbelljr Dec 19, 2024
e53e457
add igd test create then search
donaldcampbelljr Dec 19, 2024
8f3dc68
potential fix #45, comment out debugging lines
donaldcampbelljr Dec 19, 2024
abaeb96
update rstest, use cases for new test, rethink source bedfiles and qu…
donaldcampbelljr Dec 19, 2024
508c827
Fix for #61
donaldcampbelljr Dec 19, 2024
b8afd94
update changelog
donaldcampbelljr Dec 20, 2024
b33c233
Merge pull request #60 from databio/dev_igd_45
donaldcampbelljr Dec 20, 2024
f8c8d4b
cargo fmt
donaldcampbelljr Dec 20, 2024
f52c093
comment out second test case because it sometimes changes order of se…
donaldcampbelljr Dec 20, 2024
3d3bddf
attempt to lessen code cov reqs
donaldcampbelljr Dec 20, 2024
a05b2ed
Revert "attempt to lessen code cov reqs"
donaldcampbelljr Dec 20, 2024
86ffa77
consolidate get_dynamic_reader
nsheff Dec 20, 2024
47b6316
Merge pull request #58 from databio/digests
nsheff Dec 20, 2024
1536d3d
add newlines to readme
nsheff Jan 8, 2025
f008db5
add R bindings to readme
nsheff Jan 8, 2025
33d4851
update docs
nsheff Jan 9, 2025
5c66be9
potential fix for #64
donaldcampbelljr Jan 9, 2025
27d52f5
attempt to use shared hashmap for #65 does not work
donaldcampbelljr Jan 9, 2025
391ba68
Revert "attempt to use shared hashmap for #65 does not work"
donaldcampbelljr Jan 9, 2025
5f5973b
working solution for #65
donaldcampbelljr Jan 9, 2025
8ae3d41
cargo fmt
donaldcampbelljr Jan 9, 2025
bb5bc89
comment out r-devel test
donaldcampbelljr Jan 10, 2025
ce0967a
Merge pull request #66 from databio/dev_64
donaldcampbelljr Jan 10, 2025
91f2171
fix for #52
donaldcampbelljr Jan 10, 2025
81cde28
cargo fmt
donaldcampbelljr Jan 10, 2025
c4ebf15
update changelog for 0.2.0 release
donaldcampbelljr Jan 13, 2025
32f0580
add license
donaldcampbelljr Jan 13, 2025
ce77a20
rust bindings readme
sanghoonio Jan 13, 2025
d851ce3
Merge branch 'dev' of github.com:databio/gtars into dev
sanghoonio Jan 13, 2025
df443c2
bump versions
nleroy917 Jan 13, 2025
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
Prev Previous commit
Next Next commit
minor cleanup
  • Loading branch information
nsheff committed Dec 17, 2024
commit 99576b403304fb95e3f2e8bd8f463f1c12df74be
2 changes: 0 additions & 2 deletions bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
@@ -36,7 +36,5 @@ fn gtars(py: Python, m: &Bound<'_, PyModule>) -> PyResult<()> {
// add constants
m.add("__version__", VERSION)?;

// m.add_function(wrap_pyfunction!(digests::sha512t24u_digest, m)?)?;

Ok(())
}
10 changes: 7 additions & 3 deletions gtars/src/digests/mod.rs
Original file line number Diff line number Diff line change
@@ -7,14 +7,17 @@
//! The following functions are available:
//!
//! * `sha512t24u` - Processes a given string to compute its GA4GH sha512t24 checksum.
//! * `md5` - Processes a given string to compute its MD5 checksum.
//! * `digest_fasta` - Processes a FASTA file to compute the digests of each sequence in the file.
//!
//! # Usage
//!
//! The `sha512t24u` function can be used to compute the GA4GH sha512t24 checksum of a string.
//!
//! ```rust
//! use gtars::digests::sha512t24u;
//!
//!
//! let digest = sha512t24u("hello world")
//! ```
use sha2::{Digest, Sha512};
use md5::Md5;
@@ -71,7 +74,7 @@ pub fn md5(string: &str) -> String {
}

/// Returns a `Read` object for a given file path.
pub fn get_file_reader(file_path: &str) -> Result<Box<dyn Read>, io::Error> {
fn get_file_reader(file_path: &str) -> Result<Box<dyn Read>, io::Error> {
if file_path == "-" {
Ok(Box::new(std::io::stdin()) as Box<dyn Read>)
} else if file_path.ends_with(".gz") {
@@ -87,7 +90,8 @@ pub fn get_file_reader(file_path: &str) -> Result<Box<dyn Read>, io::Error> {
/// Processes a FASTA file to compute the digests of each sequence in the file.
///
/// This function reads a FASTA file, computes the SHA-512 and MD5 digests for each sequence,
/// and returns a vector of `DigestResult` structs containing the results.
/// and returns a vector of `DigestResult` structs containing the results. It can also handle
// gzipped FASTA files (ending in `.gz`).
///
/// # Arguments
///