Hi Matthias,
There is no command for just saving the modeled sequence of a structure, so you would have to use Python scripting.  Below is the code to print the names of chains and the corresponding modeled sequences to the log.  You should be able to easily adapt it to what you want, assuming you're familiar with Python...

from chimerax.atomic import all_atomic_structures
for s in all_atomic_structures(session):
for chain in s.chains:
print(chain.name, ''.join([c for c, r in zip(chain.characters, chain.residues) if r]))

--Eric

Eric Pettersen
UCSF Computer Graphics Lab


On Jun 28, 2023, at 8:29 AM, Eric Pettersen via ChimeraX-users <chimerax-users@cgl.ucsf.edu> wrote:



Begin forwarded message:

From: Vorländer,Matthias Kopano <matthias.vorlaender@imp.ac.at>
Subject: Save only the sequence that is present in the model
Date: June 28, 2023 at 6:53:11 AM PDT


Dear ChimeraX team, 
 
I would like to save only the sequence of a chain that is actually modelled. As I would like to do this for many files it would be great if this would work via scripting. Is this possible?
 
Many thanks,
Matthias

_______________________________________________
ChimeraX-users mailing list -- chimerax-users@cgl.ucsf.edu
To unsubscribe send an email to chimerax-users-leave@cgl.ucsf.edu
Manage subscription: