Multisample estimation of bacterial composition matrices in metagenomics data