The blood test gives doctors clues to the origin of the disease and helps identify the targeted treatments that are likely to work best.