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

issue when running kofamscan to annotate many .faa files at the same time #40

Open
Kangda384 opened this issue Nov 6, 2024 · 0 comments

Comments

@Kangda384
Copy link

I have many .faa files for protein sequence, and I tried to use "for loop", rush, and parafly to annotate all files automatically, but all failed with Error: Unknown KO: , but for one file annotation, the exec_annotation can work. I don't know how to fix to annotate if I have many files.
Here is my code:
time tail -n+2 result/metadataS.txt|cut -f1|rush -j 10
"exec_annotation -p /home/data/db/KEGG/profiles/
-k /home/data/db/KEGG/ko_list
--cpu 4
-E 1e-5
-f mapper
-o result/kegg_bin/{1}.txt
temp/prodigal_bin/{1}.faa"
or
for i in tail -n+2 result/metadataS.txt|cut -f1
do
echo "exec_annotation -o result/kegg_bin/parafly/$i.txt --cpu 4 --format mapper -E 1e-5 -p /home/data/db/KEGG/profiles/ -k /home/data/db/KEGG/ko_list temp/prodigal_bin/$i.faa"
done > command.exec_annotation.list
ParaFly -c command.exec_annotation.list -CPU 16

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

1 participant