Assembly of viral genomes from metagenomes