printSTDERR"-> cluster into groups by chromosome, if similar AF (relative threshold=$AF_simiarity_threshold), if same SV event, if SVs are directly adjacent, and if at least one cell shared\n";
printSTDERR"Ignores SVs with VAF<$min_AF_for_grouping, which are never grouped\n";
die;
}
...
...
@@ -78,6 +80,7 @@ my $group_name = 0;
foreachmy$chrom(sortkeys%STARTs){
my$previous_shared=0;
for(my$i=0;$i<@{$STARTs{$chrom}}-1;$i++){
nextif($averaged_AF{$chrom}{$STARTs{$chrom}[$i]}<$min_AF_for_grouping);#ignore events with too low VAF
unless($ENDs{$chrom}[$i]==$STARTs{$chrom}[$i+1]){#only consider events that are directly adjacent