Skip to content

Commit

Permalink
chore(derive): disable index checking when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
a-frantz committed Dec 16, 2023
1 parent 81511e2 commit 55ee258
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/derive/command/endedness.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ pub fn derive(args: DeriveEndednessArgs) -> anyhow::Result<()> {

let ParsedBAMFile {
mut reader, header, ..
} = crate::utils::formats::bam::open_and_parse(args.src, IndexCheck::Full)?;
} = crate::utils::formats::bam::open_and_parse(args.src, IndexCheck::None)?;

// (1) Collect read lengths from reads within the
// file. Support for sampling only a portion of the reads is provided.
Expand Down
2 changes: 1 addition & 1 deletion src/derive/command/instrument.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async fn app(src: PathBuf, first_n_reads: Option<usize>) -> anyhow::Result<()> {

let ParsedBAMFile {
mut reader, header, ..
} = crate::utils::formats::bam::open_and_parse(src, IndexCheck::Full)?;
} = crate::utils::formats::bam::open_and_parse(src, IndexCheck::None)?;

// (1) Collect instrument names and flowcell names from reads within the
// file. Support for sampling only a portion of the reads is provided.
Expand Down
2 changes: 1 addition & 1 deletion src/derive/command/readlen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ pub fn derive(args: DeriveReadlenArgs) -> anyhow::Result<()> {

let ParsedBAMFile {
mut reader, header, ..
} = crate::utils::formats::bam::open_and_parse(args.src, IndexCheck::Full)?;
} = crate::utils::formats::bam::open_and_parse(args.src, IndexCheck::None)?;

// (1) Collect read lengths from reads within the
// file. Support for sampling only a portion of the reads is provided.
Expand Down

0 comments on commit 55ee258

Please sign in to comment.