dsehnal / LiteMol

A library/plugin for handling 3D structural molecular data (not only) in the browser.
Other
155 stars 36 forks source link

How to do a custom query from a local file #58

Open Inspriatio opened 4 years ago

Inspriatio commented 4 years ago

I am reading a pdb file from a local file. Can I do a custom query? For example, querying the 3D structure of a certain residue of the sequence?

<pdb-lite-mol pdb-id="'1cbs'" custom-query="residues?seqNumber=111" hide-controls="true" load-ed-maps="true"></pdb-lite-mol> Reading the protein id can be done, but reading the local file can't be done. Is there any way to solve it? Thank you in advance <pdb-lite-mol pdb-id="'1cbs'" source-url="http://localhost/pdbFile/1cbs.pdb" source-format="pdb" custom-query="residues?seqNumber=111" hide-controls="true" load-ed-maps="true"></pdb-lite-mol>

dsehnal commented 4 years ago

Well, this custom query actually just downloads the appropriate residues from the coordinate server.

The commands example shows how to do queries on any loaded structure: Commands [ source | view live ]