Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 MAWS.py PRGM:IndexError: list index out of range
#1
I want to use a program called MAWS written in python in the year 2015, which in short,is used to predict aptamers (nucleotides) based on a molecular target (peptide, protein,etc). Unfortunately the person who wrote the program is not available. So I am trying to get help from python programmers/users to "adjust" the MAWS script.

Important to know: MAWS uses Amber/AmberTools (now in v19).

- MAWS script was updated with a newer force field "leaprc.DNA.bsc1" matching the Amber 2019 version. Updating lines 25, 1079, 1087, 1088 it became possible to calculate 'DGN','DAN','DTN','DCN' files with the prefix '.prmtop' respectively 'inpcrd'. This was not possible before this update.

However, although the MAWS calculates this initial part, it finalizes with the error bellow.
and I don't know how to solve it as I am not familiar with python. I found some similar erros in the internet, but I don't know how handle the proposed solution.
Any help is welcome. Maybe an experienced python programmer will identify what has to be 'adjusted' in the MAWS script.

---------------
bcramer@schrodinger:~/workdir-MAWS$ python3 MAWS_rev1.py -b 0.01 -i 200 -s 200 -l 15 -t 0.01 -f mol2 -y HYBRID PATH INFILE
Output:
['DGN', 'DAN', 'DTN', 'DCN']
Choosing from candidates ...
Constructing Ligand/Aptamer complex ...
Constructing Ligand/Aptamer complex ...
Constructing Ligand/Aptamer complex ...
Constructing Ligand/Aptamer complex ...
Aptamer/Ligand complex constructed.
Aptamer/Ligand complex constructed.
Loading Aptamer/Ligand complex ...
Loading Aptamer/Ligand complex ...
Aptamer/Ligand complex constructed.
Loading Aptamer/Ligand complex ...
Aptamer/Ligand complex constructed.
Loading Aptamer/Ligand complex ...
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/home/bcramer/miniconda3/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/home/bcramer/miniconda3/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "MAWS_rev1.py", line 1090, in initial
ligand_range = get_ligand_range(aptamer_top.topology)
File "MAWS_rev1.py", line 197, in get_ligand_range
return [get_ligand(topology)[0], len(get_ligand(topology))]
IndexError: list index out of range
"""
The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "MAWS_rev1.py", line 1357, in <module>
positions_and_Ntides = loop()
File "MAWS_rev1.py", line 1237, in loop
pos_Nt_S_task = pool.map(initial, alphabet)
File "/home/bcramer/miniconda3/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/home/bcramer/miniconda3/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
IndexError: list index out of range
---------------------
MAWS.py script can be downloaded from https://github.com/igemsoftware/Heidelberg_15
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Define a range, return all numbers of range that are NOT in csv data KiNeMs 17 427 Jan-06-2020, 05:56 AM
Last Post: KiNeMs
  IndexError: index 8 is out of bounds for axis 0 with size 8 Help_me_Please 6 355 Jan-03-2020, 01:51 PM
Last Post: Help_me_Please
  How to find something in a list using its index rix 1 99 Dec-20-2019, 04:12 PM
Last Post: stullis
  item = index position - list of list RavCOder 9 250 Dec-02-2019, 05:24 PM
Last Post: ThomasL
  IndexError: List index out of range issue Adem 1 479 Nov-01-2019, 10:47 PM
Last Post: ichabod801
  IndexError: list index out of range bug? CaptainCsaba 4 813 Oct-18-2019, 12:38 PM
Last Post: CaptainCsaba
  returns index of list if contains a word zarize 0 181 Sep-09-2019, 09:29 AM
Last Post: zarize
  Select a part of an element of a list with Index BollerwagenIng 0 340 Aug-09-2019, 09:27 AM
Last Post: BollerwagenIng
  IndexError: string index out of range ? Q_Y 5 1,092 Jul-05-2019, 07:18 PM
Last Post: noisefloor
  index out of range rwahdan 3 629 Jul-04-2019, 08:11 PM
Last Post: ichabod801

Forum Jump:


Users browsing this thread: 1 Guest(s)