Skip to content

Commit

Permalink
Changed the skalo command to be ska lo and added documentation for sk…
Browse files Browse the repository at this point in the history
…alo to the main doc
  • Loading branch information
jhellewell14 committed Jan 17, 2025
1 parent 8be7125 commit c7e0a71
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ pub enum Commands {
#[arg(long, default_value_t = DEFAULT_STRAND)]
single_strand: bool,
},
Indel {
Lo {
/// input SKA2 file
#[arg(short = 'i', long, help_heading = "input")]
input_skf: String,
Expand Down
20 changes: 19 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,24 @@
//! to use the same cutoff. Alternatively `ska cov` can be run on every sample
//! independently (`gnu parallel` would be an efficient way to do this).
//!
//! ## ska lo
//!
//! Runs "skalo", a graph-based algorithm for inferring variants from WGS outbreak data.
//! Skalo takes as input a `.skf` file generated by the `ska build` command.
//!
//! To run skalo on a file named `my_file.skf` use the following command `ska lo -i my_file.skf`.
//!
//! The skalo method
//! can be modified using the following flags:
//! * `-i` the path to the `.skf` file to be analysed
//! * `-r` the path to a reference genome that the detected SNPs can be mapped onto
//! * `-o` the prefix for the path of the output files
//! * `-m` the maximum fraction of missing data permissible for a site where a possible SNP has been detected (default = 0.2)
//! * `-d` the depth of the recursive path allowed during graph traversal (default = 4)
//! * `-n` maximum number of internal indel k-mers (default = 2)
//! * `-t` number of threads to use for parallel computation (default = 1)
//!
//!
//! # API usage
//!
//! See the submodule documentation linked below.
Expand Down Expand Up @@ -786,7 +804,7 @@ pub fn main() {
}
eprintln!("Estimated cutoff\t{cutoff}");
}
Commands::Indel {
Commands::Lo {
input_skf,
reference,
output,
Expand Down

0 comments on commit c7e0a71

Please sign in to comment.