Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Finding distance from superimposed PDBs

    Hi Members,
    How do I get distance between pdb atoms of 2 files, after they are super imposed?
    Code:
    def alignPDB_file(refPDB, samplePDB): # function to align pdb file
         ref_atoms,sample_atoms=[],[]
         sam_str=PDBParser(QUIET=True).get_structure("sample",samplePDB) # create sampple structure
         ref_model=PDBParser(QUIET=True).get_structure("reference",refPDB)[0] # get the 0th model
    
         sam_model=sam_str[0] # get the 0th model
    
         for ref_chain in ref_model:
              for ref_res in ref_chain:
                   if not "CA" in ref_res:continue
                   else:  ref_atoms.append(ref_res['CA']) 
    
         for sam_chain in sam_model:
              for sam_res in sam_chain:
                   if not "CA" in sam_res: continue
                   else: sample_atoms.append(sam_res['CA'])
    
         sup=Superimposer()
         sup.set_atoms(ref_atoms, sample_atoms)
    
         print sup.rms
         sup.apply(sample_atoms)
    
         io = PDBIO() #PDBParser(QUIET=True).get_structure("reference",refPDB)
         io.set_structure(sam_str)
         io.save('out.pdb')
    After superimposition, I want distance between atoms of file1, and file2.

    Any suggestion(s)?
    Bioinformaticscally calm

  • #2
    You are using Biopython (although you didn't say so). This might help: http://www.warwick.ac.uk/go/peter_co...n_contact_map/

    Comment


    • #3
      @maubp
      Yes, I'm using Biopython and biopdb package from it.
      Thanks for the very informative URL.

      But, I wish to calculate distances after super imposition.
      Bioinformaticscally calm

      Comment


      • #4
        While not the answer you are looking for, I know that you are able to determine these distances using PyMOL. You can certainly do it interactively but I am not sure if you can do so programmatically.

        If your institution does not have a license for PyMOL then you can try the education version here: http://pymol.org/educational/

        Comment


        • #5
          See also http://www.warwick.ac.uk/go/peter_co...superposition/ for doing superposition of PDB files in Biopython.

          But calculating the distances should be the same idea in either case.

          Comment


          • #6
            @maubp
            I used the same concept, line(s) of code.
            I guess, after super imposition, if I print sample pdb's new coordinates and then read through it, that might solve the purpose.

            Any thoughts over it?
            Bioinformaticscally calm

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin




              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
              04-22-2024, 07:01 AM
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Yesterday, 11:49 AM
            0 responses
            15 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-24-2024, 08:47 AM
            0 responses
            16 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            61 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            60 views
            0 likes
            Last Post seqadmin  
            Working...
            X