Bioinformatics ReviewBioinformatics Review
Notification Show More
Font ResizerAa
  •  Home
  • Docking
  • MD Simulation
  • Tools
  • More Topics
    • Softwares
    • Sequence Analysis
    • Algorithms
    • Bioinformatics Programming
    • Bioinformatics Research Updates
    • Drug Discovery
    • Phylogenetics
    • Structural Bioinformatics
    • Editorials
    • Tips & Tricks
    • Bioinformatics News
    • Featured
    • Genomics
    • Bioinformatics Infographics
  • Community
    • BiR-Research Group
    • Community Q&A
    • Ask a question
    • Join Telegram Channel
    • Join Facebook Group
    • Join Reddit Group
    • Subscription Options
    • Become a Patron
    • Write for us
  • About Us
    • About BiR
    • BiR Scope
    • The Team
    • Guidelines for Research Collaboration
    • Feedback
    • Contact Us
    • Recent @ BiR
  • Subscription
  • Account
    • Visit Dashboard
    • Login
Font ResizerAa
Bioinformatics ReviewBioinformatics Review
Search
Have an existing account? Sign In
Follow US
Bioinformatics ProgrammingPython

How to get secondary structure of multiple PDB files using DSSP in Python?

Dr. Muniba Faiza
Last updated: December 5, 2022 10:22 pm
Dr. Muniba Faiza
Share
1 Min Read
How to get secondary structure of multiple PDB files using DSSP in Python?
SHARE

In this article, we will obtain the secondary structure of multiple PDB files present in a directory using DSSP [1]. You need to have DSSP installed on your system.

If not, then you can install it using the following command:

$ sudo apt-get install dssp

Now, let’s obtain dssp files from PDBs.

Keep all your PDB files in a directory, here named pdb_files, and make a directory for your output dssp files, here named dssp_files.

Save the following Python script and run it in the terminal as

$ python3 dssp-to-pdb.py

#!/usr/bin/env python3

import os
import os.path
import pathlib
import sys

pdb_path = os.getcwd()+"/pdb_files"

pdb_files = os.listdir(pdb_path)

dssp_path = os.getcwd()+"/dssp_files"

for pdb in pdb_files:

    dssp_filename = pdb.split('.')[0]

    cmd = os.system("dssp -i "+" "+pdb_path+"/"+pdb+" "+"-o "+" "+dssp_path+"/"+dssp_filename+".dssp")

    print(cmd)

References

  1. Frishman, D., & Argos, P. (1995). Knowledge-based protein secondary structure assignment. Proteins: Structure, Function, and Bioinformatics , 23 (4), 566-579.
TAGGED:dssp assignmentmultiple pdb filespdb to dssp
Share This Article
Facebook Copy Link Print
ByDr. Muniba Faiza
Follow:
Dr. Muniba is a Bioinformatician based in New Delhi, India. She has completed her PhD in Bioinformatics from South China University of Technology, Guangzhou, China. She has cutting edge knowledge of bioinformatics tools, algorithms, and drug designing. When she is not reading she is found enjoying with the family. Know more about Muniba
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Starting in Bioinformatics? Do This First!
Starting in Bioinformatics? Do This First!
Tips & Tricks
[Editorial] Is it ethical to change the order of authors’ names in a manuscript?
Editorial Opinion
Installing bbtools on Ubuntu
[Tutorial] Installing BBTools on Ubuntu (Linux).
Sequence Analysis Software Tools
wes_data_analysis Whole Exome Sequencing (WES) Data visualization Toolkit
wes_data_analysis: Whole Exome Sequencing (WES) Data visualization Toolkit
Bioinformatics Programming GitHub Python

You Might Also Like

extact fasta sequences using perl
Bioinformatics Programming

Extract FASTA sequences based on sequence length using Perl

July 30, 2020
How to calculate center of mass of a protein structure using Python script?
Bioinformatics ProgrammingPython

How to calculate center of mass of a protein structure using Python script?

April 24, 2022
smitostr.py: Python script to convert SMILES to structures.
Bioinformatics ProgrammingCheminformaticsPython

smitostr.py: Python script to convert SMILES to structures.

November 19, 2022
vs_interaction_analysis.py: Python script to perform post-virtual screening analysis
Bioinformatics ProgrammingDockingSoftwareToolsVirtual Screening

vs_interaction_analysis.py: Python script to perform post-virtual screening analysis

February 27, 2025
Copyright 2024 IQL Technologies
  • Journal
  • Customer Support
  • Contact Us
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Sitemap
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?

Not a member? Sign Up