handle small files in similarity metrics
Merge pull request #1407 from ethomson/tform_small_files

handle small files in similarity metrics