Skip to content

Commit

Permalink
update aminokmers example
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-k committed Sep 19, 2024
1 parent f7c19f4 commit 00c86e9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 12 deletions.
8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bio-streams"
version = "0.3.1"
version = "0.4.0"
edition = "2021"
authors = ["jeff-k <[email protected]>"]
description = "Streaming bioinformatics data types"
Expand All @@ -12,12 +12,14 @@ readme = "README.md"
[dependencies]
futures = "0.3"
futures-test = "0.3"
bio-seq = "0.12"
bio-seq = "0.13"
#bio-seq = { path = "../bio-seq/bio-seq" }

[dev-dependencies]
flate2 = "1"
clap = { version="4", features=["derive"] }
bio-seq = "0.12"
bio-seq = "0.13"
#bio-seq = { path = "../bio-seq/bio-seq" }

[[example]]
name = "fqcheck"
Expand Down
5 changes: 1 addition & 4 deletions examples/aminokmers.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate bio_seq;
extern crate bio_streams;

use std::fs::File;
use std::io::BufReader;
use std::path::PathBuf;
Expand Down Expand Up @@ -30,7 +27,7 @@ fn main() {

for contig in faa {
for kmer in contig.unwrap().seq.kmers::<K>() {
histo[usize::from(kmer)] += 1;
histo[usize::from(&kmer)] += 1;
total += 1;
}
count += 1;
Expand Down
3 changes: 0 additions & 3 deletions examples/fqcheck.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
extern crate bio_streams;
extern crate flate2;

use std::fs::File;
use std::io::BufReader;
use std::path::PathBuf;
Expand Down
2 changes: 0 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,6 @@
//! }
//! ```
//!
extern crate bio_seq;

pub mod fasta;
pub mod fastq;
pub mod record;
Expand Down

0 comments on commit 00c86e9

Please sign in to comment.