Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem trying to run metagenome_from_profile.py with docker. Is python3 update completed? #149

Open
MateDuda opened this issue Dec 13, 2022 · 2 comments

Comments

@MateDuda
Copy link

Hi,
I was trying to test run camisim using the docker image, but I ran into some problems. I tried a from profile simulation running metagenome_from_profile.py with the mini.biom file just as described in the example call, but however I tried I couldn't succeed for multiple reasons. Here are some problems I found:

  1. The docker image I pulled is most likely an outdated version using python2 that should be updated. The image built from the Dockerfile from the repository could be the up to date version, but that didn't run either
  2. The requirements.txt is was missing some dependencies, for example joblib, scipy, sklearn
  3. The shebang in metagenome_from_profile.py and other scripts had to be updated to #!/usr/bin/env python3
  4. in get_genomes_py the split_by_n function can't execute the perl scrpit with os.system. This can be solves by using:
def split_by_N(fasta_path, out_path):
    import subprocess
    subprocess.run(['perl', '/usr/local/bin/scripts/split_fasta.pl', fasta_path, out_path], check=True)
    os.remove(fasta_path)

intead of:

def split_by_N(fasta_path, out_path):
    os.system("scripts/split_fasta.pl %s %s" % (fasta_path, out_path))
    os.remove(fasta_path)
  1. It looks like part of the scripts hasn't actually been updated to python3 from python2 which might be the reason I can't get it working.

Any help and information possible updates would be really appreciated. Thank you!

@AlphaSquad
Copy link
Collaborator

Hi, yes, unfortunately the Dockerfile is not up to date. If you get it to run I would be very happy to review a pull request, but I currently do not have the capacities to update the Dockerfile to be up-to-date with the latest CAMISIM version, sorry.
For the CAMISIM 2.0 version coming up we plan on including a working Docker version

@CassandraHjo
Copy link

Is the Dockerfile still not up to date? Or has it been updated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants