Inference of viral strains using metagenomics data