convert covermatrix file from pangenome analysis to binary for rarefaction curve generation in r