Skip to content
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

Open
lh12565 opened this issue Sep 1, 2022 · 6 comments
Open

Display problem of structure of alphafold2 #192

lh12565 opened this issue Sep 1, 2022 · 6 comments

Comments

@lh12565
Copy link

lh12565 commented Sep 1, 2022

Hi, @biasmv When I visualize my structure of alphafold2 as cartoon, it shows like a tube as follows:
ALPHA
I don't know how to solve it. Thanks!

@awaterho
Copy link

awaterho commented Sep 1, 2022

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?

@lh12565
Copy link
Author

lh12565 commented Sep 1, 2022

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

@mizuchi3
Copy link

mizuchi3 commented Sep 1, 2022 via email

@lh12565
Copy link
Author

lh12565 commented Sep 2, 2022

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!

@awaterho
Copy link

awaterho commented Sep 2, 2022

pv.io.fetchPdb('alphafold.pdb',
function (structure)
{
mol.assignHelixSheet(structure);
viewer.cartoon('structure', structure);
viewer.autoZoom();
viewer.fitParent();
});

@lh12565
Copy link
Author

lh12565 commented Sep 2, 2022

pv.io.fetchPdb('alphafold.pdb', function (structure) { mol.assignHelixSheet(structure); viewer.cartoon('structure', structure); viewer.autoZoom(); viewer.fitParent(); });

Thanks! It works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants