Tool to automap the sample root key basing on filename