This research trial studies metabolomic and other molecular profiling to identify predictive biomarkers for radiation toxicity and survival in patients with lung or brain cancers receiving radiation therapy. Studying samples of blood, urine, and tissue from patients with lung or brain cancer in the laboratory may help doctors identify and learn more about biomarkers related to cancer and predict which patients are at higher risk for developing radiation side effects and how well patients will respond to radiation treatment.