consensus script. Lifted from the HIV pipeline