Improved the logic of identifying replicates, made more generic
Merge branch 'master' of github.com:pruzanov/ME.scripts