Diagnosing defects of origin and determining their causes and methods of treatment