|
|
@@ -155,7 +155,7 @@ impl FlowCells {
|
|
|
///
|
|
|
/// # Errors
|
|
|
/// Returns an error if the file cannot be read or parsed.
|
|
|
- fn load_from_archive(&mut self, archive_path: &str) -> anyhow::Result<()> {
|
|
|
+ pub fn load_from_archive(&mut self, archive_path: &str) -> anyhow::Result<()> {
|
|
|
if !Path::new(archive_path).exists() {
|
|
|
return Ok(());
|
|
|
}
|
|
|
@@ -179,7 +179,7 @@ impl FlowCells {
|
|
|
///
|
|
|
/// # Errors
|
|
|
/// Returns an error if scanning fails or if directory layout is invalid.
|
|
|
- fn load_from_local(&mut self, local_dir: &str) -> anyhow::Result<()> {
|
|
|
+ pub fn load_from_local(&mut self, local_dir: &str) -> anyhow::Result<()> {
|
|
|
let sample_sheets = find_files(&format!("{local_dir}/**/sample_sheet*"))?;
|
|
|
|
|
|
for path in sample_sheets {
|
|
|
@@ -215,7 +215,7 @@ impl FlowCells {
|
|
|
///
|
|
|
/// # Errors
|
|
|
/// Returns an error if the file is unreadable or malformed.
|
|
|
- fn annotate_with_inputs(&mut self, inputs_path: &str) -> anyhow::Result<()> {
|
|
|
+ pub fn annotate_with_inputs(&mut self, inputs_path: &str) -> anyhow::Result<()> {
|
|
|
if !Path::new(inputs_path).exists() {
|
|
|
warn!("IdsInput file not found at {}", inputs_path);
|
|
|
return Ok(());
|
|
|
@@ -249,7 +249,7 @@ impl FlowCells {
|
|
|
///
|
|
|
/// # Arguments
|
|
|
/// * `new_cells` - A vector of parsed `FlowCell` instances.
|
|
|
- fn insert_flowcells(&mut self, new_cells: Vec<FlowCell>) {
|
|
|
+ pub fn insert_flowcells(&mut self, new_cells: Vec<FlowCell>) {
|
|
|
let mut map: HashMap<String, FlowCell> = self
|
|
|
.flow_cells
|
|
|
.drain(..)
|