|
|
@@ -1,12 +1,8 @@
|
|
|
use crate::{
|
|
|
- annotation::is_gnomad_and_constit_alt,
|
|
|
- collection::ShouldRun,
|
|
|
- create_should_run_normal_tumoral, init_solo_callers_normal_tumoral,
|
|
|
- scan::scan::SomaticScan,
|
|
|
- variant::{
|
|
|
+ annotation::is_gnomad_and_constit_alt, collection::ShouldRun, create_should_run_normal_tumoral, init_solo_callers_normal_tumoral, io::bed::read_bed, positions::GenomeRange, scan::scan::SomaticScan, variant::{
|
|
|
variant::{run_if_required, ShouldRunBox},
|
|
|
variants_stats::somatic_depth_quality_ranges,
|
|
|
- },
|
|
|
+ }
|
|
|
};
|
|
|
use anyhow::Context;
|
|
|
use itertools::Itertools;
|
|
|
@@ -482,6 +478,10 @@ impl Run for SomaticPipe {
|
|
|
|
|
|
// Ensure sorted (should already be sorted) and save
|
|
|
variants.sort();
|
|
|
+
|
|
|
+ let vntrs: Vec<GenomeRange> = read_bed("/data/ref/hs1/vntrs_chm13.bed")?.iter().map(|r| r.range.clone()).collect();
|
|
|
+ variants.annotate_with_ranges(&vntrs, Some(Annotation::VNTR), 0, Vec::new());
|
|
|
+
|
|
|
variants.save_to_json(&result_json)?;
|
|
|
variants.save_to_file(&result_bit)?;
|
|
|
variants.write_vcf(&result_vcf, &config.dict_file, config.somatic_pipe_force)?;
|