diff --git a/lightmotif-io/src/jaspar/mod.rs b/lightmotif-io/src/jaspar/mod.rs index a41b9b9bd4163a2e567b341a9edbc57dc603096d..0f5ca17f528b712dab1393a85568255878143959 100644 --- a/lightmotif-io/src/jaspar/mod.rs +++ b/lightmotif-io/src/jaspar/mod.rs @@ -1,4 +1,4 @@ -//! Parser implementation for matrices in JASPAR (2016) format. +//! Parser implementation for matrices in JASPAR (raw) format. //! //! The [JASPAR database](https://jaspar.elixir.no/docs/) stores manually //! curated DNA-binding sites as count matrices. @@ -114,6 +114,10 @@ impl<B: BufRead> Iterator for Reader<B> { } } +pub fn read<B: BufRead>(reader: B) -> self::Reader<B> { + self::Reader::new(reader) +} + #[cfg(test)] mod test { diff --git a/lightmotif-io/src/uniprobe/mod.rs b/lightmotif-io/src/uniprobe/mod.rs index d3ca81733ebe2bd41c90c9db7510266239779b54..82546262df6d1d28fa502fff10bf488fa860f7a3 100644 --- a/lightmotif-io/src/uniprobe/mod.rs +++ b/lightmotif-io/src/uniprobe/mod.rs @@ -129,6 +129,10 @@ impl<B: BufRead, A: Alphabet> Iterator for Reader<B, A> { } } +pub fn read<B: BufRead, A: Alphabet>(reader: B) -> self::Reader<B, A> { + self::Reader::new(reader) +} + #[cfg(test)] mod test {