jazdrv / dnaTools

GNU General Public License v3.0
1 stars 4 forks source link

an "explode" format feature for the matrix so can see all clade mates #16

Open jazdrv opened 6 years ago

jazdrv commented 6 years ago

Is this necessary thought? Redundant to what Jef's doing with the csv out?

jazdrv commented 6 years ago

This should be extremely implement with the numpy matrix. We already know the matrix values for the missing variants -- since they are clade-mates of those variants already in the matrix.

All that's needed:

(1) go through mx_dupe_variants -- and append additional rows to a temporary cut of the matrix based on the live copy, and those variants they're clade-mades to.

(2) something similar would need to be done for the sort.VARIANTS and sort.KITS vars ... so the axes print ok. (if using BeautifulTable)

(3) if it's a csv matter, ... then some additional work would be needed to format this output too. I'm guessing another way would be to push sort.VARIANTS, sort.KITS, and the extended matrix to panda. Panda works well with axes labels. And there's a nice CSV output scheme the provide out of box.