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

config-metawrap file not recognized after editing #553

Open
tga2taa opened this issue Sep 4, 2024 · 1 comment
Open

config-metawrap file not recognized after editing #553

tga2taa opened this issue Sep 4, 2024 · 1 comment

Comments

@tga2taa
Copy link

tga2taa commented Sep 4, 2024

I have Metawrap installed on a cluster by: conda install -y -c ursky metawrap-mg=1.3.2. Using which config-metawrap, I found the location of the file as: /work/myname/opt/metawrap-env/bin/config-metawrap

To start using the NCBI database option, I moved the file from the cluster to BBEdit on my local computer then edited the bottom two lines which read now, pointing to the database locations:
BLASTDB=/work/myname/2metawrap/NCBI_nt
TAXDUMP=/work/myname/2metawrap/NCBI_tax

Saved the file, then moved it back to its original location. I can see the file listed under /bin and typing cat config-metawrap shows the file contents exactly as it was edited.

However, config-metawrap is now not found by typing which config-metawrap. When trying to start Metawrap, there is an error message: cannot find config-metawrap file - something went wrong with the installation!

Previously Metawrap was working fine until CheckM in the pipeline.
I don't know if this has anything to do with the issue, but when initially downloaded and opened, the config-metawrap file showed as an executable Unix file (as interpreted by my Mac) which required admin privileges for opening. It still showed as such after saving it with the same name after editing it (this is the file uploaded back). However, after re-downloading from the cluster my local computer is opening it without an admin warning and my Mac interprets it as a regular txt file. Did something inadvertently change in the file format? Nothing else in the file was edited besides the bottom two lines of text.

Advice is greatly appreciated!

@tga2taa
Copy link
Author

tga2taa commented Sep 14, 2024

In case anyone runs into this issue: it was resolved by making the file executable by:
chmod +x config-metawrap

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

No branches or pull requests

2 participants
@tga2taa and others