A full-term male neonate develops respiratory distress with tachypnea and oxygen requirement within hours of birth. A chest radiograph shows right middle and upper lobe atelectasis and dextrocardia. There is no history of meconium aspiration. Which diagnostic test would be most specific to investigate the likely underlying genetic disorder?