Skip to content

Commit

Permalink
Merge pull request #114 from neherlab/suggestion-1
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov authored Jan 23, 2025
2 parents 4ffb3dc + 72e285b commit a081392
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions packages/pangraph/src/commands/build/build_run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ use crate::pangraph::strand::Strand::Forward;
use crate::tree::clade::postorder;
use crate::tree::neighbor_joining::build_tree_using_neighbor_joining;
use crate::{make_internal_error, make_internal_report};
use color_eyre::owo_colors::{AnsiColors, OwoColorize};
use color_eyre::{Help, SectionExt};
use eyre::{Report, WrapErr};
use itertools::Itertools;
use log::info;
Expand All @@ -19,12 +21,12 @@ pub fn build_cmd_preliminary_checks(args: &PangraphBuildArgs) -> Result<(), Repo
std::process::Command::new("mmseqs")
.arg("--help")
.output()
.map_err(|err| {
eyre::eyre!(
"Executing `mmseqs --help` results in the following error:\n{}\nPlease make sure that `mmseqs` is installed and available in PATH.",
err
)
})?;
.wrap_err("When executing `mmseqs --help`")
.section(
"Please make sure that `mmseqs` is installed, available in PATH and is functional outside of pangraph. For more details, refer to mmseqs documentation at https://github.com/soedinglab/MMseqs2"
.color(AnsiColors::Cyan)
.header("Suggestion:"),
)?;
}

Ok(())
Expand Down

0 comments on commit a081392

Please sign in to comment.