|
|
@@ -286,9 +286,9 @@ impl Run for Somatic {
|
|
|
.map_err(|e| anyhow::anyhow!("Error while loading variants\n{e}"))?;
|
|
|
|
|
|
info!("Loading Germline");
|
|
|
- // let clairs_germline =
|
|
|
- // ClairS::initialize(&id, self.config.clone())?.germline(&annotations)?;
|
|
|
- // variants_collections.push(clairs_germline);
|
|
|
+ let clairs_germline =
|
|
|
+ ClairS::initialize(&id, self.config.clone())?.germline(&annotations)?;
|
|
|
+ variants_collections.push(clairs_germline);
|
|
|
|
|
|
let mut somatic_stats = SomaticStats::init(&variants_collections);
|
|
|
info!(
|
|
|
@@ -496,16 +496,6 @@ impl Run for Somatic {
|
|
|
|
|
|
annotations.vep_stats()?;
|
|
|
|
|
|
- // Annotate echtvar
|
|
|
- info!("GnomAD and Cosmic annotation.");
|
|
|
- variants_collections
|
|
|
- .iter()
|
|
|
- .try_for_each(|c| -> anyhow::Result<()> {
|
|
|
- let ext_annot = ExternalAnnotation::init()?;
|
|
|
- ext_annot.annotate(&c.variants, &annotations)?;
|
|
|
- Ok(())
|
|
|
- })?;
|
|
|
-
|
|
|
let variants = variants_collections.into_iter().fold(
|
|
|
Variants::default(),
|
|
|
|mut acc, variants_collection| {
|
|
|
@@ -525,7 +515,7 @@ impl Run for Somatic {
|
|
|
}
|
|
|
|
|
|
// 0-based position
|
|
|
-pub fn sequence_at(
|
|
|
+fn sequence_at(
|
|
|
fasta_reader: &mut noodles_fasta::IndexedReader<noodles_fasta::io::BufReader<File>>,
|
|
|
contig: &str,
|
|
|
position: usize,
|