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

"xargs: illegal option -- -" leading to "No files found with .faa suffix in input directory" #110

Closed
SvenTobias-Hunefeldt opened this issue Aug 5, 2020 · 1 comment

Comments

@SvenTobias-Hunefeldt
Copy link

SvenTobias-Hunefeldt commented Aug 5, 2020

Hi!

I've been trying to use this tool to annotate a prodigal output, and get the % of kegg module completeness.

Running this:
enrichm annotate --protein_directory Samples --ko --threads 2 --force

Leads to this:

[2020-08-06 10:54:32 AM] INFO: Command: /usr/local/bin/enrichm annotate --protein_directory Samples --ko --threads 2 --force --verbosity 5
[2020-08-06 10:54:32 AM] INFO: Running the annotate pipeline
[2020-08-06 10:54:32 AM] INFO: Running pipeline: annotate
[2020-08-06 10:54:32 AM] INFO: Setting up for genome annotation
[2020-08-06 10:54:32 AM] INFO: Using provided proteins
[2020-08-06 10:54:32 AM] INFO: Preparing genomes for annotation
[2020-08-06 10:54:32 AM] DEBUG: xargs --arg-file=/dev/stdin ln -s --target-directory=2020-08-06_10-54-enrichm_annotate_output/genome_proteins
xargs: illegal option -- -
usage: xargs [-0opt] [-E eofstr] [-I replstr [-R replacements]] [-J replstr]
             [-L number] [-n number [-x]] [-P maxprocs] [-s size]
             [utility [argument ...]]
[2020-08-06 10:54:32 AM] ERROR: No files found with .faa suffix in input directory
[2020-08-06 10:54:32 AM] INFO: Finished running EnrichM

It seems to be the annotate.py script that's running into issues recognising files within the supplied directory. Specifically I think this is the line that's failing:

cmd = "xargs --arg-file=/dev/stdin ln -s --target-directory=%s" % genome_directory
I've already made changes as suggested with Issue number #94, but it didn't seem to help.

These are the package versions I'm using on a Mac:
enrichM 0.5.0
hmmer 3.3.1
diamond 0.9.36 ( I can't seem to install version 0.9.22 as the installation instructions recommend)
prodigal 2.6.2
parallel 0200722
MMseqs2 11-e1a1c_1
R 4.0.2_1
mcl 14-137

@YoungerRen
Copy link

hello,Hunefeldt! i met the same problem, and it could not be solved by replacing 'cp' with 'ls -n'. so did u solve this problem? and how can i fix it?

best
Younger

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