|
|
@@ -426,7 +426,7 @@ impl Variants {
|
|
|
pg.finish();
|
|
|
info!("{}. Executed in {}s", self.stats_vcf, elapsed.as_secs());
|
|
|
}
|
|
|
- pub fn get_cat(&mut self, cat: VariantCategory) -> Vec<Variant> {
|
|
|
+ pub fn get_cat(&mut self, cat: &VariantCategory) -> Vec<Variant> {
|
|
|
let pg = self.mp.add(new_pg_speed(self.data.len() as u64));
|
|
|
pg.set_message(format!("Get cat {:?}", cat));
|
|
|
self.data
|
|
|
@@ -436,7 +436,7 @@ impl Variants {
|
|
|
if e.annotations
|
|
|
.iter()
|
|
|
.filter(|e| match e {
|
|
|
- AnnotationType::VariantCategory(vc) => *vc == cat,
|
|
|
+ AnnotationType::VariantCategory(vc) => vc == cat,
|
|
|
_ => false,
|
|
|
})
|
|
|
.count()
|