Code Monkey home page Code Monkey logo

drop's People

Contributors

andrewsb8 avatar

Stargazers

 avatar

Watchers

 avatar

drop's Issues

Some error in large chi angle rotations between log output and VMD calculations

Below are examples of large errors showing small discrepencies between calculation of dihedral angles after rotation in this code base and with the VMD software suite (https://www.ks.uiuc.edu/Research/vmd/) when rotations are large (~50 degrees). This error does not appear to show for smaller rotations (~4 degrees). Examples are shown below with logs and visualizations with VMD.

Input with error:
./drop -f setDihedral -i example_files/ILE_conect_110.pdb -n 2 -d chi1 -a 159 -o output.pdb -e pdb

Output log:

Command Line: ./drop -f setDihedral -i example_files/ILE_conect_110.pdb -n 2 -d chi1 -a 159 -o output.pdb -e pdb

Reading structure file: example_files/ILE_conect_110.pdb

Not printing covalent bond matrix

Number of dihedrals identified in structure: 4
Calculating initial dihedral angles.
Columns: Angle, Angle Type (phi, psi, etc), Residue Name, Residue Number, Dihedral Number
-86.610730 phi ILE 2 0
165.397344 psi ILE 2 1
99.733809 chi1 ILE 2 2
-71.905838 chi2 ILE 2 3

Done reading structure file: example_files/ILE_conect_110.pdb

Found dihedral number: 2

Changing dihedral angle chi1 in residue number 2 by 59.266191 degrees.

Rotation complete. Please check the accuracy of the operation.
User input angle: 159.000000
Angle after rotation: 159.000000

VMD dihedral:
image

Input without error:
./drop -f setDihedral -i example_files/ILE_conect_110.pdb -n 2 -d chi1 -a 103 -o output.pdb -e pdb

Output log:

Command Line: ./drop -f setDihedral -i example_files/ILE_conect_110.pdb -n 2 -d chi1 -a 103 -o output.pdb -e pdb

Reading structure file: example_files/ILE_conect_110.pdb

Not printing covalent bond matrix

Number of dihedrals identified in structure: 4
Calculating initial dihedral angles.
Columns: Angle, Angle Type (phi, psi, etc), Residue Name, Residue Number, Dihedral Number
-86.610730 phi ILE 2 0
165.397344 psi ILE 2 1
99.733809 chi1 ILE 2 2
-71.905838 chi2 ILE 2 3

Done reading structure file: example_files/ILE_conect_110.pdb

Found dihedral number: 2

Changing dihedral angle chi1 in residue number 2 by 3.266191 degrees.

Rotation complete. Please check the accuracy of the operation.
User input angle: 103.000000
Angle after rotation: 103.000000

VMD dihedral:
image

Large pdb files lead to seg fault

Seg fault, with no log outputs, is the result when using -i examples/Villin-Headpiece/villin-unfolded-conect.pdb as an input file. Can be a memory leak or need to test on system with more system memory.

command line inputs are not working correctly in ```setDihedral```

Issue is related to identifying which dihedral needs to rotate (identifyDihedral). Different inputs lead to different results:

  1. ./drop -f setDihedral -a 159 -i example_files/ILE_conect_110.pdb -n 2

Output: args.res_number: 2, args.dih_type: 2
Expected output: args.res_number: 2, args.dih_type: phi

  1. ./drop -f setDihedral -a 159 -i example_files/ILE_conect_110.pdb -n 2 -d psi

Output: args.res_number: 2, args.dih_type: psi Writing single-structure xyz file. Completed XYZ structure generation. Filename: output.xyz.

In this case, from the output log file drop.log, the angle from -a is not recorded.

Number of dihedrals identified in structure: 4
Calculating initial dihedral angles.
Columns: Angle, Angle Type (phi, psi, etc), Residue Name, Residue>
-86.610730 phi ILE 2 0
165.397344 psi ILE 2 1
99.733809  ILE 2 2
-71.905838  ILE 2 3

Done reading structure file: example_files/ILE_conect_110.pdb

Found dihedral number: 1

Changing dihedral angle psi in residue number 2 by -165.397344 de>

Rotation complete. Please check the accuracy of the operation.
User input angle: 0.000000
Angle after rotation: -0.000000

In particular, some command line options are being completely overwritten.

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.