In addition to raising venture capital and launching stock offerings, Massachusetts biotech companies are increasingly turning to another source of funding to support early drug research: nonprofit foundations dedicated to fighting serious diseases.

For instance, the Cystic Fibrosis Foundation, said it has awarded more than $300 million to for-profit companies over the past decade to help develop cutting-edge therapies for the debilitating disease, including $192 million in the Boston area. Cystic fibrosis, which ravages the lungs and digestive system, affects roughly 30,000 people in the United States.

Epix Pharmaceuticals Inc. plans to say today that the foundation will give it as much as $37.7 million, in addition to about $12 million it has already received, to help the Lexington company discover new cystic fibrosis drugs. The money is contingent on Epix's meeting certina goals.