First off, this is an awesome program. I am grateful to the developers for making such a fast md analysis tool.
I just had a few issues. After some digging, it seems like there is an issue running certain modules in the older version and other modules in the newer version
When I run my .xtc and .pdb trajectories through calc_correlation.py in 3.11, I get the following error:
python /usr/local/bin/MD-TASK/calc_correlation.py --trajectory '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0to400ns-c-skip20-protein-ligand.xtc' --topology '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0ns-c-skip20-protein-ligand.pdb'
INFO::Started at: 2024-07-09 09:28:41.780377
INFO::Preparing a trajectory matrix...
INFO::Correlating...
Traceback (most recent call last):
File "/usr/local/bin/MD-TASK/calc_correlation.py", line 163, in
CLI(parser, main, log)
File "/usr/local/bin/MD-TASK/lib/cli.py", line 20, in CLI
callback(args)
File "/usr/local/bin/MD-TASK/calc_correlation.py", line 140, in main
correlation = correlate(traj_matrix)
File "/usr/local/bin/MD-TASK/calc_correlation.py", line 76, in correlate
jdelta = resJ - meanJ
ValueError: operands could not be broadcast together with shapes (2001,3) (4002,3)
When I run the same trajectories through calc_correlation.py in python 3.8 mdmtaskweb, I get no error :
python /usr/local/MD-TASK/src/calc_correlation.py '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0to400ns-c-skip20-protein-ligand.xtc' --topology '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0ns-c-skip20-protein-ligand.pdb'
INFO::Using Python 3.8.19 | packaged by conda-forge | (default, Mar 20 2024, 12:47:35)
[GCC 12.3.0]
INFO::Started at: 2024-07-09 09:52:50.262479
INFO::Preparing a trajectory matrix...
INFO::Correlating...
INFO::Plotting heat map...
INFO::Completed at: 2024-07-09 09:53:34.654892
INFO::- Total time: 0:00:44
However, when I run calc_network.py in python 3.8 mdmtaskweb, I get an error:
python /usr/local/MD-TASK/src/calc_network.py '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0to400ns-c-skip20-protein-ligand.xtc' --topology '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0ns-c-skip20-protein-ligand.pdb' --ligands NON --calc-BC --calc-L
INFO::Started at: 2024-07-09 10:09:59.395735
INFO::Calculating centralities...
Traceback (most recent call last):
File "/usr/local/MD-TASK/src/calc_network.py", line 314, in
CLI(parse_args(), main, LOG)
File "/usr/local/MD-TASK/src/lib/cli.py", line 20, in CLI
callback(args)
File "/usr/local/MD-TASK/src/calc_network.py", line 306, in main
drn = calc_centralities(traj, traj_name, total_frames, args)
File "/usr/local/MD-TASK/src/calc_network.py", line 178, in calc_centralities
atom_filter = get_selection(ligands=args.ligands)
File "/usr/local/MD-TASK/src/calc_network.py", line 43, in get_selection
atom_filter += " or (name {} and resname {})".format(arr[1], arr[0])
IndexError: list index out of range
(mdmtaskweb) [kcheng1@amylin02 Downloads]$
And when I run calc_network.py in python 3.11, i get no error:
python /usr/local/bin/MD-TASK/calc_network.py '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0to400ns-c-skip20-protein-ligand.xtc' --topology '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0ns-c-skip20-protein-ligand.pdb' --calc-BC --calc-L
INFO::Started at: 2024-07-09 09:30:25.853352
INFO::Calculating betweenness centralities...
^ZFO::Progress: 167/2001
First off, this is an awesome program. I am grateful to the developers for making such a fast md analysis tool.
I just had a few issues. After some digging, it seems like there is an issue running certain modules in the older version and other modules in the newer version
When I run my .xtc and .pdb trajectories through calc_correlation.py in 3.11, I get the following error:
python /usr/local/bin/MD-TASK/calc_correlation.py --trajectory '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0to400ns-c-skip20-protein-ligand.xtc' --topology '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0ns-c-skip20-protein-ligand.pdb'
INFO::Started at: 2024-07-09 09:28:41.780377
INFO::Preparing a trajectory matrix...
INFO::Correlating...
Traceback (most recent call last):
File "/usr/local/bin/MD-TASK/calc_correlation.py", line 163, in
CLI(parser, main, log)
File "/usr/local/bin/MD-TASK/lib/cli.py", line 20, in CLI
callback(args)
File "/usr/local/bin/MD-TASK/calc_correlation.py", line 140, in main
correlation = correlate(traj_matrix)
File "/usr/local/bin/MD-TASK/calc_correlation.py", line 76, in correlate
jdelta = resJ - meanJ
ValueError: operands could not be broadcast together with shapes (2001,3) (4002,3)
When I run the same trajectories through calc_correlation.py in python 3.8 mdmtaskweb, I get no error :
python /usr/local/MD-TASK/src/calc_correlation.py '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0to400ns-c-skip20-protein-ligand.xtc' --topology '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0ns-c-skip20-protein-ligand.pdb'
INFO::Using Python 3.8.19 | packaged by conda-forge | (default, Mar 20 2024, 12:47:35)
[GCC 12.3.0]
INFO::Started at: 2024-07-09 09:52:50.262479
INFO::Preparing a trajectory matrix...
INFO::Correlating...
INFO::Plotting heat map...
INFO::Completed at: 2024-07-09 09:53:34.654892
INFO::- Total time: 0:00:44
However, when I run calc_network.py in python 3.8 mdmtaskweb, I get an error:
python /usr/local/MD-TASK/src/calc_network.py '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0to400ns-c-skip20-protein-ligand.xtc' --topology '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0ns-c-skip20-protein-ligand.pdb' --ligands NON --calc-BC --calc-L
INFO::Started at: 2024-07-09 10:09:59.395735
INFO::Calculating centralities...
Traceback (most recent call last):
File "/usr/local/MD-TASK/src/calc_network.py", line 314, in
CLI(parse_args(), main, LOG)
File "/usr/local/MD-TASK/src/lib/cli.py", line 20, in CLI
callback(args)
File "/usr/local/MD-TASK/src/calc_network.py", line 306, in main
drn = calc_centralities(traj, traj_name, total_frames, args)
File "/usr/local/MD-TASK/src/calc_network.py", line 178, in calc_centralities
atom_filter = get_selection(ligands=args.ligands)
File "/usr/local/MD-TASK/src/calc_network.py", line 43, in get_selection
atom_filter += " or (name {} and resname {})".format(arr[1], arr[0])
IndexError: list index out of range
(mdmtaskweb) [kcheng1@amylin02 Downloads]$
And when I run calc_network.py in python 3.11, i get no error:
python /usr/local/bin/MD-TASK/calc_network.py '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0to400ns-c-skip20-protein-ligand.xtc' --topology '/run/media/kcheng1/CR2024-1/AA-MD2MD-2024/MD-with-ligand/rcg-2tam-PS-raft-e-ny-01-CNS11-BHT-2nd/0ns-c-skip20-protein-ligand.pdb' --calc-BC --calc-L
INFO::Started at: 2024-07-09 09:30:25.853352
INFO::Calculating betweenness centralities...
^ZFO::Progress: 167/2001