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

GUNC diamond output filename #42

Open
jsgounot opened this issue Feb 22, 2024 · 1 comment
Open

GUNC diamond output filename #42

jsgounot opened this issue Feb 22, 2024 · 1 comment

Comments

@jsgounot
Copy link

Hi,

for some samples I had this error:

...
15:45:52 : No genes mapped to reference: SemiBin_95
15:45:52 : No genes mapped to reference: SemiBin_96
15:45:52 : No genes mapped to reference: SemiBin_97
15:45:52 : No genes mapped to reference: SemiBin_98
15:45:52 : No genes mapped to reference: SemiBin_99
15:45:52 : No genes mapped to reference: SemiBin_9
15:45:52 : No diamond output files.

When I list my diamond output files:

SemiBin_101.diamond.out
SemiBin_100.diamond.out
SemiBin_1005.diamond.out
SemiBin_1004.diamond.out
SemiBin_0.diamond.out
...
SemiBin_101.diamond.progenomes_2.1.out
SemiBin_100.diamond.progenomes_2.1.out
SemiBin_1005.diamond.progenomes_2.1.out
SemiBin_1004.diamond.progenomes_2.1.out
SemiBin_0.diamond.progenomes_2.1.out

I checked the source code, and the issue looks like to be triggered here:

diamond_outdir, "diamond_output", f"{basename}.diamond.out"

that I guess should be changed (in my case) to:

diamond_outdir, "diamond_output", f"{basename}.diamond.progenomes_2.1.out"

that is only triggered when there is one diamond output file missing

if not args.gene_calls and len(diamond_outfiles) != len(fastas):

I don't know if this is a bug. Maybe the database name changed, modifying the output name? Not sure.

@jsgounot
Copy link
Author

jsgounot commented Feb 22, 2024

Small edit:

outfile = os.path.join(out_dir, f"{os.path.basename(infile)}.diamond.{db}.out")

Looks like a bug :)
Need to add the db name in the add_empty_diamond_output function.

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