make_prg icon indicating copy to clipboard operation
make_prg copied to clipboard

Add --update-method to make_prg update

Open leoisl opened this issue 2 years ago • 1 comments
trafficstars

Not for this next 0.4.0 release, likely for 0.5.0. Adds a new parameter to make_prg update:

  -m UPDATE_METHOD, --update-method UPDATE_METHOD
                   How to update PRGs. Valid options are (default is careful):
                         exact: update the full PRG's MSA with the new alleles and rebuilds the whole PRG. This method guarantees that the
                                resulting PRG is equivalent to redoing the MSA and rebuilding the PRG from scratch, but it is the slowest method;
                         quick: update just the leaves of the PRG with the new alleles. Alleles that cross leaves are broken into several
                                contained sub-alleles. Although this is the quickest method, it is imprecise when adding long deletions;
                         careful: if there is at least one new allele that cross leaves, then the PRG is updated following the exact method. 
                                  Otherwise, it is updated following the quick method.

Important when we want to study longer variants.

leoisl avatar Nov 30 '22 21:11 leoisl

--update-method quick is what is currently implemented

leoisl avatar Nov 30 '22 22:11 leoisl