Hi Roland, On 28/05/2020 18:07, Roland Dunbrack wrote: > Is there a way in Jalview to select some columns and then left-justify > all the sequences in those columns, while leaving the rest of the > alignment that follows the selected region alone? I started implementing functionality for this some years ago - you've just given me a reason to finish it !
I've created a groovy script that you can download and run on a selected region via Jalview's groovy console: 1. Download the script here: https://source.jalview.org/crucible/browse/~raw,r=cfba86992cd64bb0df6105bbf5dfc076ba8a93b2/jalview/examples/groovy/justifyRegionQuick.groovy 2. Open Jalview's Groovy Console (Tools->Groovy Console) 3. Load the script into the groovy console (second icon on the left of the toolbar) 4. In Jalview, select the region you want to Left Justify 5. Cross your fingers for luck and execute the script via the Calculate menu's 'Run Groovy Script' option. If all goes well, you can undo/redo the left-justify in the normal way. I'll also be keeping my limbs crossed in the hope this quick and dirty script works for you ! (I tested on Jalview 2.11.1, it may not work on earlier versions). Have a great weekend, Jim. -- -- ------------------------------------------------------------------- Dr JB Procter, Jalview Coordinator, The Barton Group Division of Computational Biology, School of Life Sciences University of Dundee, Dundee DD1 5EH, UK. +44 1382 388734 | www.jalview.org | www.compbio.dundee.ac.uk _______________________________________________ Jalview-discuss mailing list [email protected] http://www.compbio.dundee.ac.uk/mailman/listinfo/jalview-discuss
