Is an empty file a valid reference?

Issue #53 new
Jakob Nissen created an issue

I currently have an issue where I, in my workflow, collect a series of references based on how well they match the reads, and the use that reference as a KMA index. However, kma index errors when given an empty file.

Is this intentional? I can see advantages to both errorring (what if the user accidentally passed in an empty file) and not erroring (what if an empty reference is valid)

Comments (1)

  1. ptlcc

    Hi Jakob

    I see your point. I think we found somewhere that an empty file was invalid fast format. But as the index can take multiple fasta files as input, I could adjust that part to give a warning and return exit code 1 to indicate that the user should be aware of possible erroneous input.

    Best,
    Philip

  2. Log in to comment