DRAM
DRAM copied to clipboard
DRAM error while annotation
5 fastas found
2022-07-15 15:49:14.912901: Annotation started
0:00:00.045806: Retrieved database locations and descriptions
0:00:00.045894: Annotating MEGAHIT-group-0.5
0:00:21.937310: Turning genes from prodigal to mmseqs2 db
0:00:23.980066: Getting hits from kofam
0:21:38.160079: Getting forward best hits from peptidase
0:22:06.199097: Getting reverse best hits from peptidase
0:22:07.549270: Getting descriptions of hits from peptidase
/home/alifchebbi/anaconda3/envs/DRAM/lib/python3.10/site-packages/mag_annotator/database_handler.py:81: UserWarning: No descriptions were found for your id's. Does this MER0151453 look like an id from peptidase_description
warnings.warn("No descriptions were found for your id's. Does this %s look like an id from %s" % (list(ids)[0],
Traceback (most recent call last):
File "/home/alifchebbi/anaconda3/envs/DRAM/bin/DRAM.py", line 189, in
Try DRAM-setup.py --update_description_db and see if that fixes the issue, let me know if not.
Thanks for answering me I have executed DRAM-setup.py --update_description_db this code and after 30 minutes it gives an output KILLED. Does this mean the updating of database is finished?
No, It most likely means that the memory is not sufficient. How much memory do you have/did you give dram? This should take 3 hours or more.
The workstation we are using has 256GB RAM and at the moment we have almost 1TB HDD space free for DRAM. But still we are facing problems in updating the database correctly.
That should be enough if it is all available, but try free and see how much is available. If it is over 200GB then try running the same command with /usr/bin/time -v as a prefix. Look for Maximum resident set size (kbytes) in the output. It may be killed by an early OOM system of some sort, if it uses up all the memory. Something is killing it for sure.
Thank you so much for your suggestions I will try these commands tomorrow and I will get back to you ASAP I really appreciate your help.
Hello again, I was checking the memory by using command free the output I get I am pasting them here -
total used free shared buff/cache available
Mem: 263839512 3070700 206545060 133464 54223752 258786668
Swap: 2097148 1169668 927480
and after this I used /usr/bin/time -v free command as you told me to do and the output is -
total used free shared buff/cache available
Mem: 263839512 3134952 206461260 140804 54243300 258715056
Swap: 2097148 1169644 927504
Command being timed: "free"
User time (seconds): 0.00
System time (seconds): 0.00
Percent of CPU this job got: 100%
Elapsed (wall clock) time (h:mm:ss or m:ss): 0:00.00
Average shared text size (kbytes): 0
Average unshared data size (kbytes): 0
Average stack size (kbytes): 0
Average total size (kbytes): 0
Maximum resident set size (kbytes): 3056
Average resident set size (kbytes): 0
Major (requiring I/O) page faults: 0
Minor (reclaiming a frame) page faults: 138
Voluntary context switches: 1
Involuntary context switches: 0
Swaps: 0
File system inputs: 0
File system outputs: 0
Socket messages sent: 0
Socket messages received: 0
Signals delivered: 0
Page size (bytes): 4096
Exit status: 0
maximum resident size memory is very low. Could you please suggest me what should I do so the it can work. Thanks in advance.
Oh sorry I was unclear, run /usr/bin/time -v DRAM-setup.py --update_description_db that should give you an idea of the memory usage of the DRAM command the above is just the time command.
You can also try adding the --skip_uniref argument to improve results.
/usr/bin/time -v DRAM-setup.py --update_description_db usage: DRAM-setup.py [-h] {version,prepare_databases,set_database_locations,update_description_db,update_dram_forms,print_config,import_config,export_config} ... DRAM-setup.py: error: unrecognized arguments: --update_description_db Command exited with non-zero status 2 Command being timed: "DRAM-setup.py --update_description_db" User time (seconds): 3.13 System time (seconds): 2.88 Percent of CPU this job got: 407% Elapsed (wall clock) time (h:mm:ss or m:ss): 0:01.47 Average shared text size (kbytes): 0 Average unshared data size (kbytes): 0 Average stack size (kbytes): 0 Average total size (kbytes): 0 Maximum resident set size (kbytes): 157952 Average resident set size (kbytes): 0 Major (requiring I/O) page faults: 0 Minor (reclaiming a frame) page faults: 29626 Voluntary context switches: 140 Involuntary context switches: 108483 Swaps: 0 File system inputs: 0 File system outputs: 8 Socket messages sent: 0 Socket messages received: 0 Signals delivered: 0 Page size (bytes): 4096 Exit status: 2 Good evening again, Sorry for answering you late I couldn't run the codes finally I have managed to execute the codes and I am attaching outputs with this message could please check them. Many thanks.
second run---
/usr/bin/time -v DRAM-setup.py update_description_db
Traceback (most recent call last):
File "/home/alifchebbi/anaconda3/envs/DRAM/bin/DRAM-setup.py", line 158, in
The last error is a result of a failed setup, you will want to reinstall DRAM from Conda before your next attempt. There could also be something in your server environment that is preventing dram from setting up in multiple ways. This problem will be difficult to solve without your IT department's help and could be the memory still for which there is no solution. Your best bet it to use a prebuilt db. There is a secrete pre-made database here: https://zenodo.org/record/3827510 it is smaller, and should be faster, but it is way out of date. Also, I can't promise it will work. This is discussed in more depth in issue 30. Good Luck!