Skip to content

Commit

Permalink
follow vcf spec 4.5 §5.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tedil committed Oct 11, 2024
1 parent 67eed24 commit d93246a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/annotate/strucvars/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2959,9 +2959,11 @@ pub async fn run_vcf_to_jsonl(
rng.fill_bytes(&mut uuid_buf);
let uuid = Uuid::from_bytes(uuid_buf);

if record.alternate_bases().is_empty() {
if record.alternate_bases().is_empty()
|| record.alternate_bases().as_ref() == &["<*>".to_string()]

Check warning on line 2963 in src/annotate/strucvars/mod.rs

View workflow job for this annotation

GitHub Actions / clippy

taken reference of right operand

warning: taken reference of right operand --> src/annotate/strucvars/mod.rs:2963:16 | 2963 | || record.alternate_bases().as_ref() == &["<*>".to_string()] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------------- | | | help: use the right value directly: `["<*>".to_string()]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#op_ref = note: `#[warn(clippy::op_ref)]` on by default
{
// REF-only, skip
tracing::warn!("skipping REF-only record {:?}", record,);
tracing::warn!("skipping REF-only record {:?}", record);
continue;
}
let mut record = converter.convert(pedigree, &record, uuid, GenomeRelease::Grch37)?;
Expand Down

0 comments on commit d93246a

Please sign in to comment.