-
Notifications
You must be signed in to change notification settings - Fork 85
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
Display problem of structure of alphafold2 #192
Comments
You may have to call mol.assignHelixSheet on the structure, as soon as you load it. It might also be that that structure has no secondary structure? What is the UniProt AC? |
Hi, @awaterho my uniprot AC is P48980. It seems have secondary structure in alphafold database: https://alphafold.ebi.ac.uk/entry/P48980 |
Hello,
P48980 looks to be a much larger structure than appears in your image? Do
you call assignHelixSheet after you load the structure?
…On Thu, 1 Sept 2022 at 17:23, lh12565 ***@***.***> wrote:
You may have to call mol.assignHelixSheet on the structure, as soon as you
load it. It might also be that that structure has no secondary structure?
What is the UniProt AC?
Hi, @awaterho <https://github.com/awaterho> my uniprot AC is P48980. It
seems have secondary structure in alphafold database:
https://alphafold.ebi.ac.uk/entry/P48980
—
Reply to this email directly, view it on GitHub
<#192 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCKMCHHJCRFJDTVRSTB4TLV4DDALANCNFSM6AAAAAAQCNRGLU>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Hi @mizuchi3 How to call assignHelixSheet after load the structure? My code is as below: var parent = document.getElementById('viewer');jQuery.cookie('default','cartoon',{ expires: 365, path: '/' });
var viewer = pv.Viewer(parent,
{ width : $('.viewerad').width(), height : $('.viewerad').height(), antialias : true,outline:false});
function getpvalphaViewer(pvpdb) {
// if(1){
// viewer.rm('structure'+pvpdb);
// }
// jQuery.cookie('default',litext,{ expires: 365, path: '/' });
pv.io.fetchPdb('../pl/alpha/' + pvpdb+'.pdb', function (structure) {
// put this in the viewerReady block to make sure we don't try to add the
// object before the viewer is ready. In case the viewer is completely
// loaded, the function will be immediately executed.
// if (selectpdb[pvpdb]) {
// return;
// }
selectpdb[pvpdb] = true;
if (structure && selectpdb[pvpdb]) {
viewer.on('viewerReady', function () {
switch ($.cookie('default')) {
case "trace":viewer.trace('structure' + pvpdb, structure);break
case "lines":viewer.lines('structure' + pvpdb, structure);break;
case "tube":viewer.tube('structure' + pvpdb, structure);break;
case "ballsAndSticks":viewer.ballsAndSticks('structure' + pvpdb, structure);break;
default:viewer.cartoon('structure' + pvpdb, structure);
}
});
//changeRep( $.cookie('default') );
//var go = viewer.renderAs('structure', structure, 'ballsAndSticks');
// adjust center of view and zoom such that all structures can be seen.
viewer.autoZoom();
}
viewer.fitParent();
});
} Thanks! |
pv.io.fetchPdb('alphafold.pdb', |
Thanks! It works. |
Hi, @biasmv When I visualize my structure of alphafold2 as cartoon, it shows like a tube as follows:
I don't know how to solve it. Thanks!
The text was updated successfully, but these errors were encountered: