Mash icon indicating copy to clipboard operation
Mash copied to clipboard

Use basenames for input file identifiers in output

Open ondovb opened this issue 9 years ago • 1 comments

Mash output (and sketches) currently represent the input file names as given, with paths:

/path/to/input.fasta

It would probably be better to strip them to basenames:

input.fasta

We would just have to watch out for potential collisions and figure out what to do about those. Some options for resolving:

  • error out
  • rename
  • leave paths
    • strip off longest common path

ondovb avatar Oct 08 '15 18:10 ondovb

@ondovb A common layout that is used is /some/path/SEQNAME/contigs.fa for example, where the file name itself is always the same, but it's folder is the unqiue identifier.

So maybe you could also add this too the suggestions:

  • strip off common suffix

tseemann avatar Nov 08 '15 23:11 tseemann