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

Set secondary structure #57

Open
suyang-nju opened this issue Nov 19, 2019 · 5 comments
Open

Set secondary structure #57

suyang-nju opened this issue Nov 19, 2019 · 5 comments

Comments

@suyang-nju
Copy link

Is there a way to explicitly set/change secondary structures after loading a molecule?

@dsehnal
Copy link
Owner

dsehnal commented Nov 19, 2019

It is possible, albeit a bit tricky.

Basically you would create a transform that maps Model -> Model and then create rest of the state tree same way as you would without applying the transform.

The transform would look similar to

export const ModelTransform3D = Tree.Transformer.create<Entity.Molecule.Model, Entity.Molecule.Model, ModelTransform3DParams>({
, but you would need to replace secondaryStructure property (https://github.com/dsehnal/LiteMol/blob/master/src/lib/Core/Structure/Molecule.ts#L473) in the data and secondaryStructureIndex in the residue table (https://github.com/dsehnal/LiteMol/blob/master/src/lib/Core/Structure/Molecule.ts#L350). This is how you would apply your new transform https://github.com/dsehnal/LiteMol/blob/master/examples/Transforms/src/Process.ts#L109.

Alternatively, you can use the new Mol* viewer (https://molstar.org ; basically a merge of LiteMol and NGL). and I would include an example for you how to do this. When do you need it?

@suyang-nju
Copy link
Author

Not urgent. How does Mol* compare to LiteMol in setting/changing the secondary structures? Much simpler? I use LiteMol to show structures and highlight (change color) regions of interest based on user input. Would switching to Mol* fairly straightforward?

@dsehnal
Copy link
Owner

dsehnal commented Nov 28, 2019

Well, currently the sec scruct modification is about the same amount of work as in LiteMol. But if we write the code I would rather do it for the new software.

How do you imagine the workflow for changing the secondary structure?

Mol* code is very similar to LiteMol as far as state management goes. Tho we are now working on simplifying that somewhat.

@suyang-nju
Copy link
Author

User uploads a pdb/cif file. We display its amino acid sequence with secondary structure annotations and the 3D structure. Secondary structures are initially determined by DSSP or PyMol on the server after uploading the file. Ideally, the 3D structure showed would use this info. User then is able to change/set secondary structures using the sequence view, and the 3D view will automatically reflect those changes.

@dsehnal
Copy link
Owner

dsehnal commented Nov 29, 2019

Ok, I will see what I can do.

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

2 participants