[Swift-devel] suspected error in simple mapper

Mihael Hategan hategan at mcs.anl.gov
Wed Nov 11 13:26:21 CST 2009


On Wed, 2009-11-11 at 13:22 -0600, Michael Wilde wrote:
> When I use this mapper:
> 
>    Phylip keggfiles[] <simple_mapper; prefix="K", suffix=".phylip">;
> 
> and have files in the dir like this: K00123.phylip
> 
> I seem to get mapped filenames of K0123.phylip. Its loosing the leading 
> "0". Its as if the mapper is assuming there is a separator character 
> after the "K".

By default, indices are 4-digit. You could add padding=5 to the mapper
parameters to get what you want.

> 
> Yet if I use a 2-character prefix "K0":
> 
>    Phylip keggfiles[] <simple_mapper; prefix="K0", suffix=".phylip">;
> 
> then I get the desired mapping of "K00123.phylip".
> 
> I will try to create a test case for this later. Anyone seen anything 
> similar?
> 
> - Mike
> 
> 
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel




More information about the Swift-devel mailing list