Giter VIP home page Giter VIP logo

oxdna_analysis_tools's People

Contributors

akodiat avatar bensonbits avatar elliotswart avatar erikpoppleton avatar jonahowns avatar mlsample avatar sulcgroup avatar zoombya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

oxdna_analysis_tools's Issues

Hydrogen Bond energy

Greetings all,

I had a general query, is there a way to calculate hydrogen bond energy for my system? I'd be very grateful if anyone could point me to a helpful resource.

Thanks!
Prateek

There is no response about temperature in output_bonds

I run oat output_bonds inputMD trajectory_trap.dat > energy2.txt.
And I find each term of energy seems no change when I increase temperature. It is strange. Then I change the Temperature in input file to 100C and run it again. And I found there is also no difference, meaning the code does not read the Temperature.
And if I change the salt concentration, the energy can change reasonably.

I have some questions about this script: generate_force.py

Thanks a lot for the help with this script!!!

but when the running structure is very large, this error occurs, how to fix it?

The error is as follows:
python generate_force.py -o external_forces.txt input 1.dat
Traceback (most recent call last):
File "generate_force.py", line 41, in
mysystem = r._get_system()
File "/home/wangyue/Software/oxdna_analysis_tools_old/UTILS/readers.py", line 177, in _get_system
return self._read(only_strand_ends=only_strand_ends, skip=False)
File "/home/wangyue/Software/oxdna_analysis_tools_old/UTILS/readers.py", line 123, in _read
bb = b
UnboundLocalError: local variable 'b' referenced before assignment

ModuleNotFoundError when invoking output_bonds.py

Greetings!

When I try to invoke output_bonds I get: ModuleNotFoundError: No module named 'UTILS'. Please help me in this matter. I have attached a picture of one such call I made.

I have added the DNAnalysis path to the config.py file and many other scripts (though not all) are working fine. For eg. compute_mean, duplex_angle_finder, & backbone_flexibility.

Thanking you,
Prateek

output_bondserror

Importing Problem with oxDNA_analysis_tools

when i am trieng to import from oxDNA_analysis_tools i get this error: ModuleNotFoundError: No module named 'oxDNA_analysis_tools.UTILS.get_confs' Note: oxdna kernal is activated, i tried to pip install oxDNA_analysis_tools but it was already there, Also, i compiled file "get_confs" again and appended its path to code but the problem persists. "oat config" output: (oxdna) [sutei081@nesh-fe3 medhi_gen_algo]$ oat config
INFO: oxDNA_analysis_tools version: 2.2.1
INFO: running config.py installed at: /gxfs_home/cau/sutei081/miniconda3/envs/oxdna/lib/python3.9/site-packages/oxDNA_analysis_tools/config.py
INFO: Python version: 3.9.17
INFO: Package Numpy found. Version: 1.25.2
INFO: Package MatPlotLib found. Version: 3.7.2
INFO: Package SciKit-Learn found. Version: 1.3.0
INFO: Package oxpy found. Version: 3.3
INFO: No dependency issues found.

INFO: Analyses will be computed in chunks of 20 configurations at a time
INFO: You can modify this number by running oat config -n , which will be persistent between analyses.
(oxdna) [sutei081@nesh-fe3 medhi_gen_algo]$

Error upon installing oxDNA analysis tools

Hello!

How do we update the tools? By re-running the pip install oxDNA-analysis-tools command? When I do that I get the following error:

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 3221225595
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for oxDNA-analysis-tools
Failed to build oxDNA-analysis-tools
ERROR: Could not build wheels for oxDNA-analysis-tools, which is required to install pyproject.toml-based projects

I couldn't find any results for this particular exit code. Please help me out with this. Thanks for your time and for the excellent tools!

Warm Regards
Prateek

forces2pairs shows UnboundLocalError

Greetings,

When I try to invoke forces2pairs script it shows UnboundLocalError. I have attached the screenshot; please have a look. Thank you for your time and consideration.

Warm Regards
Prateek
forces2pairs_error

Error in executing certain tools (possibly oxpy related?)

Hi all,
thank you in advance for considering this request. I think it is a real trivial issue, but I wasn't able to solve it yet. I successfully installed the oxdna_analysis_tools via pip. As described in https://github.com/lorenzo-rovigatti/oxDNA, I installed the oxpy package via:

git clone https://github.com/lorenzo-rovigatti/oxDNA.git
cd oxDNA
git checkout oxpy --
pip install .

oxDNA was already working well, but I had troubles in using the incorporated UTILS, which gave me syntax errors by calling the python interpret. Now I'm obtaining errors if I try to execute some tools, and they seem to be linked to the oxpy package. As an example, executing oat generate_force some_input last_conf.dat gives me:

INFO: No outfile name provided, defaulting to "forces.txt"
WARNING: Overwriting key `trajectory_file' (`trajectory.dat' to `last_conf.dat')
Traceback (most recent call last):
  File "/home/simone/anaconda3/bin/oat", line 10, in <module>
    sys.exit(main())
  File "/home/simone/anaconda3/lib/python3.7/site-packages/oxDNA_analysis_tools/entry.py", line 24, in main
    to_call.main()
  File "/home/simone/anaconda3/lib/python3.7/site-packages/oxDNA_analysis_tools/generate_force.py", line 46, in main
    if (not inp["use_average_seq"] or inp.get_bool("use_average_seq")) and "RNA" in inp["interaction_type"]:
AttributeError: 'oxpy.core.InputFile' object has no attribute 'get_bool'

These errors do not occur in other tools such as mean, align, backbone_flexibility or plot_energy. Are these errors due to missing dependencies?

Thank you in advance,
best regards,

Simone

Criteria for choosing a particle pair in Output_bonds.py

Good day, all!

Regarding the output of the output_bonds script, I wanted to know on what basis two particles are chosen to display their various interacting parameters (such as Hydrogen Bonding energy).

I ask this because, in certain cases, I don't see records of a particular pair of particles' in all the given frames of a simulation even though they are closely spaced and look to me to be bonded throughout.

And even if, at certain instances they are not bonded, I'd expect a record stating HB = 0 like it happens in some cases.

So, how does the script decide which pairs of particle interactions to include in the record for each frame/configuration?

Thanks a lot for your time and consideration and for these excellent tools!

Warm Regards
Prateek

from os import O_NONBLOCK in reader.py

Hi Guys,

Great tools,

I try to run the mean structure on a windows machine but get issues with "from os import O_NONBLOCK" , I dont really understand what it does but it seems to be unix only :/

Is there some alternative solution to this ?

Cheers

Erik B

Ouput_bonds script showing an error

Hello!

I am running the output bonds script and it shows the following error:
All spawned, waiting for results

WARNING: Overwriting key `trajectory_file' (`MDJohnofTweezer_Salt1_trajectory.dat' to `MDJohnofTweezer_Salt1_trajectory.dat')
WARNING: Overwriting key `trajectory_file' (`MDJohnofTweezer_Salt1_trajectory.dat' to `MDJohnofTweezer_Salt1_trajectory.dat')
WARNING: Overwriting key `trajectory_file' (`MDJohnofTweezer_Salt1_trajectory.dat' to `MDJohnofTweezer_Salt1_trajectory.dat')
WARNING: Overwriting key `trajectory_file' (`MDJohnofTweezer_Salt1_trajectory.dat' to `MDJohnofTweezer_Salt1_trajectory.dat')
WARNING: Overwriting key `trajectory_file' (`MDJohnofTweezer_Salt1_trajectory.dat' to `MDJohnofTweezer_Salt1_trajectory.dat')
WARNING: Overwriting key `trajectory_file' (`MDJohnofTweezer_Salt1_trajectory.dat' to `MDJohnofTweezer_Salt1_trajectory.dat')
WARNING: Overwriting key `trajectory_file' (`MDJohnofTweezer_Salt1_trajectory.dat' to `MDJohnofTweezer_Salt1_trajectory.dat')
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/output_bonds.py", line 26, in compute
    if (not inp["use_average_seq"] or inp.get_bool("use_average_seq")) and "RNA" in inp["interaction_type"]:
oxpy.core.OxDNAError: Key `use_average_seq' not found
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/prateek/.local/bin/oat", line 8, in <module>
    sys.exit(main())
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/entry.py", line 24, in main
    to_call.main()
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/output_bonds.py", line 153, in main
    energies = output_bonds(traj_info, top_info, inputfile, visualize, conversion_factor, ncpus)
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/output_bonds.py", line 97, in output_bonds
    oat_multiprocesser(traj_info.nconfs, ncpus, compute, callback, ctx)
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/UTILS/oat_multiprocesser.py", line 29, in oat_multiprocesser
    callback(i, r.get())
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
oxpy.core.OxDNAError: Key `use_average_seq' not found

I added the use_average_seq = 0 parameter to my input file and then reran it. This gave a different error. (Also, what are those warnings? Should I be worried about those? )

Traceback (most recent call last):
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 125, in worker
    result = (True, func(*args, **kwds))
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/output_bonds.py", line 26, in compute
    if (not inp["use_average_seq"] or inp.get_bool("use_average_seq")) and "RNA" in inp["interaction_type"]:
AttributeError: 'oxpy.core.InputFile' object has no attribute 'get_bool'
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/home/prateek/.local/bin/oat", line 8, in <module>
    sys.exit(main())
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/entry.py", line 24, in main
    to_call.main()
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/output_bonds.py", line 153, in main
    energies = output_bonds(traj_info, top_info, inputfile, visualize, conversion_factor, ncpus)
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/output_bonds.py", line 97, in output_bonds
    oat_multiprocesser(traj_info.nconfs, ncpus, compute, callback, ctx)
  File "/home/prateek/.local/lib/python3.8/site-packages/oxDNA_analysis_tools/UTILS/oat_multiprocesser.py", line 29, in oat_multiprocesser
    callback(i, r.get())
  File "/usr/lib/python3.8/multiprocessing/pool.py", line 771, in get
    raise self._value
AttributeError: 'oxpy.core.InputFile' object has no attribute 'get_bool'

Many thanks for looking into this.

Warm Regards
Prateek

"forces" error

INFO: No outfile name provided, defaulting to "forces.txt"
INFO: Analyze the output...
Traceback (most recent call last):
File "generate_force.py", line 49, in
if i[0] == '#':
IndexError: string index out of range

How to solve!!!!
thankkkkkkks!!!!!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.