Giter VIP home page Giter VIP logo

tcl-tk-vmd-pdb's Introduction

TCL-TK-VMD-PDB

TCL-TK for VMD Processing PDB files.

Main Program:

A Tcl program that starts with displaying a menu for the user to choose a specific action and based on his/her action start to call the appropriate answer e.g.

Hello User, Choose your action with number from 1 to 6 :

  1. Load File

  2. Select a residue

  3. Save Selection

  4. Analyze

  5. Process Residues

  6. Align Molecules

Detailed Description:

  1. Load File :

1.1. Implement a function that asks the user for the file name/path to load the file.

1.2. If user entered a directory print a list with all pdb files in this directory.

1.3. If user entered a file name, make sure it exists and accessible (print proper error message if not)

  1. Select a residue :

2.1. Implement a function which asks the user for the residue name/range.

2.2. Draw a box surrounding the selected atoms.

2.3. Make sure that user has already loaded a file

  1. Save Selection :

3.1. Implement a function that saves a selection

3.2. Make sure that user has already selected atoms before

3.3. Ask the user for a folder/path to save data in

3.4. Make sure that the path exist (print proper error message if not)

3.5. Make sure user have access to save in the path (print proper error message if not)

3.6. Ask user for file name

3.7. Save the file as pdb

  1. Analyze :

4.1. Implement a function which prints all information for a selection

• Number of atoms

• Number of bonds

• Number of residues

4.2. Make sure that output is formatted well (Hint: Use string format)

Number of atoms: 660

Number of bonds: 608

Number of residues: 134

  1. Process Residues :

5.1. Implement a function that gets all residues

5.2. Print number of atoms in each residue

5.3. Draw each residue with different color (e.g. first residue with beta 0 second with beta 10 etc.)

5.4. Output formatted (Hint: use format string function)

  1. Align molecules

Implement a function that do the following functions

6.1. Make sure that the openGL menu have no drawing (clear window)

6.2. Ask user to enter 2 file names

6.3. Load files

6.4. Move the molecules to be aligned on top of each other

This video is compressed, for better resolution, check out this video link.

https://drive.google.com/file/d/1a9EzV06cvcGel4q1DdU5ckduJXD5SWJ9/view?usp=sharing

TCL_VMD_Demo.mp4

tcl-tk-vmd-pdb's People

Contributors

sarah-hesham-2022 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

bioacademy

tcl-tk-vmd-pdb's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.