Skip to content
Snippets Groups Projects
Commit ed79dd5c authored by Martin Larralde's avatar Martin Larralde
Browse files

Rename JASPAR (2016) benchmark in `lightmotif-io`

parent f57b3cdb
No related branches found
No related tags found
No related merge requests found
File moved
......@@ -26,6 +26,10 @@ mod parse;
// ---
/// A JASPAR (raw) record.
///
/// The JASPAR (raw) format only supports count matrices in the DNA
/// alphabet.
#[derive(Debug, Clone)]
pub struct Record {
id: String,
......@@ -34,14 +38,17 @@ pub struct Record {
}
impl Record {
/// Get the identifier of the record.
pub fn id(&self) -> &str {
&self.id
}
/// Get the description of the record, if any.
pub fn description(&self) -> Option<&str> {
self.description.as_deref()
}
/// Get the count matrix of the record.
pub fn matrix(&self) -> &CountMatrix<Dna> {
&self.matrix
}
......
......@@ -26,6 +26,7 @@ mod parse;
// ---
/// A JASPAR (2016) record.
#[derive(Debug, Clone)]
pub struct Record<A: Alphabet> {
id: String,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment