question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visualizing structures sent over gRPC

See original GitHub issue

Hi all, in NGL I had written some code which allowed me to send over gRPC a PDB string blob and visualize it in the viewer like this:

var stringBlob = new Blob([call.request.structure], { type: 'text/plain' });
stage.loadFile(stringBlob, {
    ext: "pdb",
    name: call.request.name
}).then(function (structureComponent) {
    var reqdata = call.request
    if (reqdata.repr_type) {
        if (reqdata.repr_selection) {
            structureComponent.addRepresentation(reqdata.repr_type, { sele: reqdata.repr_selection })
        } else {
            structureComponent.addRepresentation(reqdata.repr_type)
        }
    } else {
        stage.defaultFileRepresentation(structureComponent)
    }
    if (reqdata.traj && (reqdata.traj.length != 0)) {
        frames = trajToFrames(call.request.traj);
        structureComponent.addTrajectory(frames);
    }
})

I am however unable to find an equivalent for loading a structure from a PDB blob (and trajectory from an array).

What would be the correct way to do this in Mol*?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
dsehnalcommented, Oct 6, 2020

Having build-in trajectory streaming support is currently on top of my todo list so in the coming weeks both your tasks should be made easier.

If you need it now, here are some pointers:

@stefdoerr

@pschmidtke

1reaction
stefdoerrcommented, Aug 22, 2022

https://github.com/Acellera/molkitstar link to the electron application for future reference if anyone is interested in it

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visualizing gRPC Language Stacks
Each structure is slightly different based on the needs of each language implementation of gRPC.
Read more >
Reconstructing and Visualizing Distributed Traces from Log ...
Remote procedure calls (RPCs) are a foundational building block for distributed systems. RPC libraries allow developers to write a language-agnostic de-.
Read more >
Should you consider using gRPC in your data science ...
I would say a definite yes for the question in title, if you have to send large datasets across your micro services, AND...
Read more >
How to build a REST API with gRPC and get the best of two ...
Build a gRPC Service with REST support from an OpenAPI description. ... All the data structures that were generated previously are used within...
Read more >
gRPC overview | API Gateway Documentation - Google Cloud
By default, gRPC uses protocol buffers as the Interface Definition Language (IDL) for describing both the service interface and the structure of the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found