Skip to content

Commit

Permalink
adding scripts for mitomap annotation and VCf plots
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjo255 committed Oct 31, 2024
1 parent 9a90d3d commit c4a39bf
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mitnanex_reference.sh
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,11 @@ pipe_exec(){
#map_reads
#variant_calling
#haplogroup_class
#mitomap
#annotate_vcf
annotate_mito
#plot_vcf
#annotate_mito



else
Expand Down
File renamed without changes.
13 changes: 13 additions & 0 deletions scripts/mitomap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

mitomap() {
## Connect to MITOMAP API to annotate variants, haplogroup, clinic relevance
custom_prints "Annotate variants with Mitomap" }

mitomap_out="$WD/variant_annot.mitomap.txt"

$exec_path/scripts/mitomap.py $vcf_file $mitomap_out

echo "$timestamp [ATTENTION]: Variant annotations are at" $mitomap_out

}
18 changes: 18 additions & 0 deletions scripts/plot_vcf.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

plot_vcf(){
## PLOT VCF STATS

custom_prints "Plot VCF statistics"

vcfplotsdir="$WD/vcf_plots"
create_wd $vcfplotsdir


vcfstats --vcf $$vcf_file --outdir $vcfplotsdir \
--config "$exec_path/scripts/plots_vcf.toml" \
--macro "$exec_path/scripts/custom_macro.py"

echo "$timestamp [ATTENTION]: VCF plots are at" $vcfplotsdir

}

0 comments on commit c4a39bf

Please sign in to comment.