Closed charlie-durant closed 4 years ago
Sorry can you clone the repo and try again? Line 66 for some reason had " instead of ' which I think is causing the problem. Not sure how that snuck in!
Hey, thanks for looking into this. I cloned the repo again and tried running the tests but got the same error:
SyntaxError in line 66 of /data/metagenomics/MAGPy-attempt3/MAGpy/MAGpy:
Command must be given as string after the shell keyword. (MAGpy, line 66)
Confirmed that " had been replaced with ' in line 66:
Opened in Sublime Text again and changed spaces to tabs and made sure the formatting lined up in that section.
I then re-ran the test and got:
Building DAG of jobs...
Creating conda environment envs/prodigal.yaml...
Downloading remote packages.
Environment for envs/prodigal.yaml created (location: .snakemake/conda/5311c41d)
Creating conda environment envs/diamond.yaml...
Downloading remote packages.
Then I started to get conda environment errors.
But it looks like the update & formatting changes solved this SyntaxError issue.
Thanks!
Hello,
I've been trying to install MAGpy using the 10 minute install instructions. I installed in
/data/metagenomics/MAGPy-attempt3/
and then created a new directory where I cloned the repo to test it,/data/metagenomics/MAGpy_test/
. I changed the json.config file accordingly, to point to theMAGPy-attempt3
directory where all the installed files are located. When I tested usingsnakemake --use-conda -s MAGpy test
I got the following error:SyntaxError in line 66 of /data/metagenomics/MAGpy_test/MAGpy/MAGpy: Command must be given as string after the shell keyword. (MAGpy, line 66).
I tried the following:
echo -e "name\tnprots\tnhits\tnfull\tgenus\tngenus\tspecies\tnspecies\tavgpid" >> {output} && find diamond_report/ -name "bin*.tsv" | xargs -I {{}} cat {{}} >> {output}
However then I got a syntax error:
I verified that I had modified the config.json file to point to checkm_data. My config.json looks like:
I am using a linux HPC cluster, Python 3.6.7.
Do you have any suggestions about what could be going wrong?
Many thanks