The San Diego drug designer lands a large pharma partner days before asking public investors to fund its pipeline.