Pranavkhade / PACKMAN

PACKMAN: PACKing and Motion ANalysis
Other
33 stars 7 forks source link

alpha shape #9

Closed unverciftci closed 4 years ago

unverciftci commented 4 years ago

This is not an issue but a question. I just need the alpha shape, how can I extract it? Thank you in advance.

Pranavkhade commented 4 years ago

Hello @unverciftci. Thanks for your question. The answer depends on the nature of the data you want in return.

  1. If you want just the alpha shape of the given protein (edges and faces) you can use the --generateobj option in the code and you get the alpha shape in .obj file format.

  2. If you need the alpha shape along with the residue information, you read [https://github.com/Pranavkhade/PACKMAN/blob/master/packman/apps/predict_hinge.py] The 'SelectedTesselations' object has all the information about the alpha shape. Steps: 1. 'import predict_hinge from packman.apps' 2. provide appropriate parameters, including alpha 3. Access the alpha shape stored in 'SelectedTesselations' object.

unverciftci commented 4 years ago

Hi Pranavkhade, Thank you for your reply. I try but get an empty file. I think this is the case for the web server as well. Could you please check it and tell me your example command?

Pranavkhade commented 4 years ago

I tested it and it is giving me the output file. The reason you are getting an empty file might because you are choosing the alpha value which is too low or not specifying the chain.

My trial parameters:

  1. PDBID: 6LU7 (or any other PDBID)
  2. Chain: A
  3. Alpha: 4.2
unverciftci commented 4 years ago

Many thanks, it works!