ribokit / RiboDraw

Semiautomated layout of RNA tertiary structure diagrams
MIT License
8 stars 4 forks source link

Automated refinement of helix label positions & tick rotations #26

Open rhiju opened 6 years ago

rhiju commented 6 years ago

Still takes a long time to move everything. Should be solvable with enumeration of all possible label positions (only 8 for tick rotations), a precomputed RGB array of all elements besides the one optimized (for 'sterics') and a good loss function.

Goes with #11, but probably do this first.

rhiju commented 6 years ago

The tick part is solved (kind of ) by #28.

To fix helix & helixgroup labels, let's just take starting position, and enumerate over all positions sliding along the same 'side' of the helix at a distance of, e.g., plot.spacing from the helix, and pick the position with least clutter.