Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: findBHcloseAtomsInNode: result array too small error #19

Open
1 task done
vcsuja opened this issue Apr 18, 2024 · 1 comment
Open
1 task done

[Bug]: findBHcloseAtomsInNode: result array too small error #19

vcsuja opened this issue Apr 18, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vcsuja
Copy link

vcsuja commented Apr 18, 2024

Operating System

Windows

Version

2.1.0

Python Version (optional)

3.10.12

Python Virtual Environment

Not using a virtual environment

Execution Environment

Local environment after installation of all external dependencies

Bug Description

Hi team,

First of all hats off for putting together such an useful program. It was great for most proteins however I'm encountering issues when working with certain small proteins. Eg.

Unable to use surfmap for hydrophobins. For example the code fails with an error for the attached protein when running the command below.
2fmc.zip

The same pdb file can be accessed here - https://www.rcsb.org/structure/2fmc

Is there a workaround for this?

Best,
Vinny

Steps to Reproduce

Command: surfmap -pdb 2fmc.pdb -tomap kyte_doolittle --keep

Relevant Log Output

findBHcloseAtomsInNode: result array too small\nERROR:(Multiple times) followed by

findBHcloseAtomsInNo', stderr=b'third atom not found\n'

Additional context (optional)

No response

Confirmation

  • I confirm I have searched for duplicates and reviewed the relevant documentation.
@vcsuja vcsuja added bug Something isn't working needs-triage Review is required to valid the label labels Apr 18, 2024
@nchenche
Copy link
Collaborator

Dear vcsuja,

First of all, thank you for using SURFMAP and we are glad you find it useful for your research. Thanks also for the clear description of the issue which is very helpful. After downloading your input file, I have been able to reproduce your error.

I have noticed that your pdb file is actually a NMR pdb file with multiple models, which is the cause of the encountered error.

To resolve this issue, all you have to do is to split each models (20) into individual pdb files from your original 2fmc.pdb, and then run surfmap on each file of your interest.

How to split models into individual pdb file

To split a multi-model pdb file, you can use pymol or the following script: split_pdb_models.zip

In order to use the script provided to split multi-model pdb files, you must:

  • have python >= 3.10
  • unzip the archive
  • run it with the following command: python split_pdb_models.py -I 2fmc.pdb
    • warning: be aware that here the split_pdb_models.py file must be located in the same directory as 2fmc.pdb

The above command will generate a default 2fmc_models directory where all individual models will be generated.

Hope this will help,

The SURFMAP team.

@nchenche nchenche removed the needs-triage Review is required to valid the label label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants