Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into feat/ref-minimizer
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-aksamentov committed Sep 8, 2023
2 parents e30adc0 + 119cd4a commit 619aab4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 14 deletions.
10 changes: 5 additions & 5 deletions packages_rs/nextclade-cli/src/cli/nextclade_cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub struct NextcladeArgs {
pub command: NextcladeCommands,

/// Make output more quiet or more verbose
#[clap(flatten, next_help_heading = " Verbosity")]
#[clap(flatten, next_help_heading = "Verbosity")]
pub verbosity: Verbosity<WarnLevel>,
}

Expand Down Expand Up @@ -280,7 +280,7 @@ pub struct NextcladeRunInputArgs {
///
/// See: https://en.wikipedia.org/wiki/FASTA_format
#[clap(value_hint = ValueHint::FilePath)]
#[clap(display_order = 1)]
#[clap(display_order = 0)]
pub input_fastas: Vec<PathBuf>,

/// REMOVED. Use positional arguments instead.
Expand Down Expand Up @@ -615,16 +615,16 @@ pub struct NextcladeRunOtherParams {

#[derive(Parser, Debug, Clone)]
pub struct NextcladeRunArgs {
#[clap(flatten, next_help_heading = " Inputs")]
#[clap(flatten, next_help_heading = "Inputs")]
pub inputs: NextcladeRunInputArgs,

#[clap(flatten, next_help_heading = " Outputs")]
#[clap(flatten, next_help_heading = "Outputs")]
pub outputs: NextcladeRunOutputArgs,

#[clap(flatten)]
pub params: NextcladeInputParamsOptional,

#[clap(flatten, next_help_heading = " Other")]
#[clap(flatten, next_help_heading = "Other")]
pub other_params: NextcladeRunOtherParams,
}

Expand Down
2 changes: 1 addition & 1 deletion packages_rs/nextclade/benches/bench_create_stripes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn bench_create_stripes(c: &mut Criterion) {
let excess_bandwidth = black_box(2);
let qry_len = black_box(30);
let ref_len = black_box(40);
let minimal_bandwidth = black_box(1);
let minimal_bandwidth = black_box(0);

let mut group = c.benchmark_group("create_stripes");
group.throughput(Throughput::Bytes(qry_len as u64));
Expand Down
9 changes: 4 additions & 5 deletions packages_rs/nextclade/benches/bench_seed_alignment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use nextclade::align::params::AlignPairwiseParams;
use nextclade::align::seed_alignment::create_alignment_band;
use nextclade::align::seed_match2::{get_seed_matches_maybe_reverse_complement, CodonSpacedIndex, SeedMatchesResult};
use nextclade::alphabet::nuc::to_nuc_seq;
use nextclade::gene::gene_map::GeneMap;

pub fn bench_seed_alignment(c: &mut Criterion) {
let params = AlignPairwiseParams::default();
Expand All @@ -20,6 +19,8 @@ pub fn bench_seed_alignment(c: &mut Criterion) {

let seed_index = CodonSpacedIndex::from_sequence(&ref_seq);

let minimal_bandwidth = black_box(0);

let mut group = c.benchmark_group("seed_alignment");
group.bench_function("seed_match", |b| {
b.iter(|| {
Expand All @@ -32,10 +33,8 @@ pub fn bench_seed_alignment(c: &mut Criterion) {
ref_seq.len() as isize,
params.terminal_bandwidth as isize,
params.excess_bandwidth as isize,
params.allowed_mismatches as isize,
params.max_band_area,
)
.unwrap();
minimal_bandwidth,
);
});
});
group.finish();
Expand Down
6 changes: 3 additions & 3 deletions packages_rs/nextclade/src/run/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ use serde::{Deserialize, Serialize};
#[derive(Parser, Debug, Default, Clone, Serialize, Deserialize, schemars::JsonSchema)]
#[serde(rename_all = "camelCase")]
pub struct NextcladeInputParamsOptional {
#[clap(flatten, next_help_heading = " General parameters")]
#[clap(flatten, next_help_heading = "General parameters")]
pub general: Option<NextcladeGeneralParamsOptional>,

#[clap(flatten, next_help_heading = " Phylogenetic tree parameters")]
#[clap(flatten, next_help_heading = "Phylogenetic tree parameters")]
pub tree_builder: Option<TreeBuilderParamsOptional>,

#[clap(flatten, next_help_heading = " Alignment parameters")]
#[clap(flatten, next_help_heading = "Alignment parameters")]
pub alignment: Option<AlignPairwiseParamsOptional>,
}

Expand Down

0 comments on commit 619aab4

Please sign in to comment.