extract consensus sequence