Giter VIP home page Giter VIP logo

Comments (4)

harryjubb avatar harryjubb commented on July 19, 2024 1

Hi Maria,

Did you resolve your issue? I am away this week and not able to test anything out.

If you are using Ubuntu on WSL, the instructions in the README should work, though I'm not sure how it works if connecting to the Docker daemon run by Windows, particularly with respect to the file paths for the bind mount and the user/group IDs.

In the first instance, running only on Windows, did you get any output files at all?

I may be slow to reply this week but will try to help.

By the way, if you enclose your console output with three backtick (```) characters before and after, it will format them as a code block, making them easier to read 🙂 (GitHub supports most Markdown syntax).

from arpeggio.

mariaangelesjs avatar mariaangelesjs commented on July 19, 2024

Hi Harry,
I've tried the print command on python and >.text to create an output file, am I missing any command ?
This is the code I'm running :

docker run --rm -v :\directory :/file -it arpeggio python arpeggio.py /file.pdb -s RESNAME:XXX -v

As you can read above, the output files should be storing in C. Is it because I'm not making the code only readable by User? I've tried adding -u Guest:Users and docker couldn't recognise that.
Apologies for this, but is my first time using Docker and I'm translating everything for Windows.

Kind regards,
Maria

from arpeggio.

mariaangelesjs avatar mariaangelesjs commented on July 19, 2024

I've changed the code to fit with yours and I'm working on Ubuntu subsystem, but this is what happens now:

 docker  -H localhost:2375 run --rm -v c:/:/ -u xxx:xxx -it harryjubb/arpeggio python arpeggio.py /file.pdb -s RESNAME:xxx -v

INFO//09:52:23.183//Program begin.
INFO//09:52:23.221//Loaded PDB structure (BioPython)
INFO//09:52:23.222//Detected that the input structure contains hydrogens. Hydrogen addition will be skipped.
INFO//09:52:23.438//Loaded PDB structure (OpenBabel)
INFO//09:52:23.450//Mapped OB to BioPython atoms and vice-versa.
Traceback (most recent call last):
File "arpeggio.py", line 861, in
with open(pdb_filename.replace('.pdb', '.atomtypes'), 'wb') as fo:
IOError: [Errno 13] Permission denied: '/Cb2HU210_fixed6.atomtypes'

from arpeggio.

mariaangelesjs avatar mariaangelesjs commented on July 19, 2024

Hi Harry,
No worries, it is my first time working with Docker so I had a go with different commands. Yes, I was able to to run arpeggio using PowerShell in User. Ubuntu came out with the same result, but adding "$(pwd)" was not possible.

This is what worked for me:
docker run --rm -v :/<host-directory>:/<container-path> -u uid:gid -it arpeggio python arpeggio.py /container-path/file.pdb -s RESNAME:xxx -v

I've got all the output files on my container's folder 👍
Kind regards,
Maria

from arpeggio.

Related Issues (20)

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.