Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
3dmol
Advanced tools
Readme
3Dmol.js is an object-oriented, webGL based JavaScript library for online molecular visualization - No Java required!
Since 3Dmol.js is licensed under the permissive BSD open-source license, you are free to use it in any project, as long the code is properly acknowledged and cited.
With 3Dmol.js, you can add beautifully rendered molecular visualizations to your web applications. Features include:
See the documentation to learn how to use 3Dmol.js as a hosted viewer, embeddable viewer, or as a component of a larger application.
We support the use of both PDB queries as well as PDB files.
First you simply create the viewer with a div's id.
var viewer = $3Dmol.createViewer($("#div"));
Then you can download a protein data bank model (here pdb:1MO8) and display it with the styling of your choosing.
$3Dmol.download("pdb:1MO8",viewer,{multimodel:true, frames:true},function(){
viewer.setStyle({}, {cartoon:{color:"spectrum"}});
viewer.render();
});
We also support the use of surfaces that are asynchronously loaded and support different color schemes
viewer.addSurface($3Dmol.SurfaceType.VDW, {
opacity:0.85,
voldata: new $3Dmol.VolumeData(volumedata, "cube"),
volscheme: new $3Dmol.Gradient.ROYGB(range[1],range[0])
},{});
The use of different shapes and styles is supported.
viewer.addCylinder({start:{x:0.0,y:2.0,z:0.0},
end:{x:0.0,y:10.0,z:0.0},
radius:0.5,
fromCap:false,
toCap:true,
color:'teal'});
viewer.addCylinder({start:{x:15.0,y:0.0,z:0.0},
end:{x:20.0,y:0.0,z:0.0},
radius:1.0,
color:'black',
fromCap:false,
toCap:false});
Please check out our documentation at 3dmol.js. We have tutorials, as well as the stable release of the platform.
Please address any questions or concerns to dkoes@pitt.edu. You may also submit an issue on github.
If you use 3Dmol.js, please cite our Bioinformatics paper.
3DMol.js is funded through R01GM108340 from the National Institute of General Medical Sciences. The content is solely the responsibility of the authors and does not necessarily represent the official views of the National Institute of General Medical Sciences or the National Institutes of Health.
FAQs
JavaScript/TypeScript molecular visualization library
The npm package 3dmol receives a total of 1,526 weekly downloads. As such, 3dmol popularity was classified as popular.
We found that 3dmol demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.