elkebir-group / derna

RNA sequence design for a target protein sequence
BSD 3-Clause "New" or "Revised" License
8 stars 2 forks source link

DERNA consistently crashes on certain amino acid sequences #1

Closed h-ahl closed 2 weeks ago

h-ahl commented 4 months ago

Thanks for an excellent package.

My issue is as above. Certain amino acid sequences simply crash with an error of type [1] 132848 segmentation fault (core dumped) ./derna -i ~/test.fasta -o out.txt -m 1 -s 1

A partial output is written, e.g.

protein sequence: <my-sequence>

I have noticed that other amino acid sequences also crash, but only occasionally.

I have tried building from source, as well as using DERNA through bioconda.

xinyu-g commented 1 month ago

Hi, sorry for the delayed response. Could you provide me the sequences that caused the issue?

xinyu-g commented 1 month ago

@h-ahl HI, I wanted to follow up on the issue. I understand that you may not be able to share the specific sequences due to data sensitivity, but could you provide some information on the length of the sequences you are using and the hardware (CPU/GPU) you are running derna on? It seems the crash might be related to an out-of-memory error.

h-ahl commented 1 month ago

Hi, @xinyu-g - thanks for following up on this. This was for very short sequences, about 10-30 amino acids in length. I ran on CPU. For such short sequences, I wouldn't expect any memory issues

abegue-instadeep commented 3 weeks ago

Hello! Thanks for looking into this. Here is a random example sequence I encountered this with: MPEPNKLDKHGARPGLWPVHVYML

xinyu-g commented 2 weeks ago

Would you mind sharing the crash message with me? I tested the sequence on my end and didn’t encounter a crash. I’ve attached my running log for reference—please let me know if you notice anything I may have overlooked. (The highlighted section at the send is running with the sequence you provided.) Also, please double-check that your repository is up to date. @abegue-instadeep

derna_debug_log.pdf

xinyu-g commented 2 weeks ago

Hi, another user noted that the error doesn’t occur on a Mac, which is the system I was using as well. I’m switching to a different system now to investigate the issue further and locate the error. @abegue-instadeep

xinyu-g commented 2 weeks ago

Hi, I just pushed a commit to address the issue. Could you give it a test and let me know if it works on your end? (You may want to directly reclone the repository, as no new release has been created yet.) @h-ahl @abegue-instadeep

abegue-instadeep commented 2 weeks ago

It works for my toy example. I will let @h-ahl close the issue if it works for him too.

h-ahl commented 2 weeks ago

Thank you kindly!