-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
py3dmol.view takes format argument can pass selection for volumetricrender/isosurfaces gradient documentation onesided surface option custom linear builtin
- Loading branch information
Showing
12 changed files
with
137 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$3Dmol.get('../test_structs/af.pdb', function(data){ | ||
viewer.addModel(data); | ||
viewer.setStyle({cartoon:{colorscheme:{prop: 'b', | ||
gradient:'linear_red_orange_yellow_white', min: 70, max: 100}}}); | ||
viewer.zoomTo(); | ||
viewer.render(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
$3Dmol.download('pdb:3erk', viewer, {}, function() { | ||
viewer.addSurface('MS',{'colorscheme':'whiteCarbon','onesided':true}, | ||
{'byres':true, 'hetflag':false, 'within':{'distance':5,'sel':{'resn':'SB4'}}}, | ||
{'hetflag':false}); | ||
viewer.setStyle({'resn':'SB4'},{'stick':{'colorscheme':'chartreuseCarbon'}}); | ||
viewer.setStyle({'bonds':0},{'sphere':{'radius':0.35}}); | ||
viewer.zoomTo({'resn':'SB4'}); | ||
viewer.render(); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
|
||
$.get('data/1lo6.pdb', function(data) { | ||
viewer.addModel(data,'pdb'); | ||
viewer.setStyle({cartoon:{},stick:{}}); | ||
|
||
//can't use jquery with binary data | ||
$3Dmol.getbin('data/1lo6_2FOFC.ccp4', function(data) { | ||
var voldata = new $3Dmol.VolumeData(data, 'ccp4'); | ||
viewer.addVolumetricRender(voldata, { transferfn:[ | ||
{ color: "#ffffff", opacity: 0.0, value: 0 }, | ||
{ color: "#00ffff", opacity: .1, value: .5 } | ||
], | ||
selection: {resi: 18}, | ||
seldist: 4.0 | ||
}); | ||
viewer.addIsosurface(voldata, {isoval: 0.3, | ||
color: "blue", | ||
wireframe: true, | ||
selection: {resi: 18}, | ||
seldist: 3.0 | ||
}); | ||
viewer.zoomTo({resi: 18}); | ||
viewer.render(); | ||
}); | ||
}); |
Binary file added
BIN
+92.6 KB
tests/glcheck/reference-images/tests-glcheck-render-tests-customlinear.html.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+322 KB
tests/glcheck/reference-images/tests-glcheck-render-tests-onesidedsurf.html.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+590 KB
...s/glcheck/reference-images/tests-glcheck-render-tests-test_ccp4_volsel.html.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.