
Hi Boris, Glad the REST interface is proving useful for you! I'm not 100% sure if you want the entire sequence of a chain, or instead a selected fragment. There's no good way to get the latter through the REST interface. However, you can use "info chains" to get the entire sequence of chains. In particular, "info chains attribute characters" will report the sequences of all chains in all models. In current builds, you cannot get just the sequence of a single chain, but starting with tomorrow's release candidate and daily build you will be able to get the sequence of a particular chain (e.g. V) with: "info chains /V attribute characters". --Eric Eric Pettersen UCSF Computer Graphics Lab
On Nov 21, 2023, at 10:00 AM, Boris Steipe via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:
Hi all -
I am using the fantastic remotecontrol REST interface in teaching, and I have hit a surprising snag: is it not possible to return the sequence of a selection through the interface? What I need to do is align fragments of sequence I have obtained from external annotations (RADAR in this case), with the SEQRES derived sequence to match the sequence numbers to each other - generally they are not the same.
I think I could write FASTA to a file with "save" and process that, and I think I could capture the output of "info" and parse that through a function, but I am wondering if there is not a way to get the sequence directly as a return value?
Thanks! Kind regards,
Boris
_______________________________________________ ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu Archives: https://mail.cgl.ucsf.edu/mailman/archives/list/chimerax-users@cgl.ucsf.edu/