Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load biological assembly by default in LiteMol #76

Open
conradshyu opened this issue Feb 16, 2022 · 3 comments
Open

load biological assembly by default in LiteMol #76

conradshyu opened this issue Feb 16, 2022 · 3 comments

Comments

@conradshyu
Copy link

Hi,
Is there a way to load biological assembly in LiteMol by default, instead of asymmetric unit? Thank you in advance for your help.

Conrad

@dsehnal
Copy link
Owner

dsehnal commented Feb 16, 2022

Hi,

yes, this is possible. You can use the Transformer.Molecule.CreateAssembly transform after the CreateModel before you create the visuals.

Alternatively, if that is an option for you, I recommend you use https://molstar.org instead which does this automatically out of the box.

@juliamakarchuk
Copy link

I think that I have the same question - I tried to turn on assembly mode by default (I want to have the same image as in the screenshot that I added to this question by default - when I open the plugin the first time) - but it always shows in 'model mode' (if it the correct way to name it)...

I added this code
{ transformer: Transformer.Molecule.CreateModel, view: Views.Transform.Molecule.CreateModel },
{ transformer: Transformer.Molecule.CreateAssembly, view: Views.Transform.Molecule.CreateAssembly },
{ transformer: Transformer.Molecule.CreateVisual, view:
Views.Transform.Molecule.CreateVisual }

    do you have any solution for that? 
    
    <img width="1043" alt="assembley" src="https://user-images.githubusercontent.com/33657533/205735392-2387e358-eac7-4d1d-80af-e1c50aa7ab15.png">

@dsehnal
Copy link
Owner

dsehnal commented Dec 5, 2022

Hi Julia,
your code looks more like a plugin spec rather than creating a state. Is using mol* an option for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants