Horizontal gene transfers as metagenomic gene duplications