Gel electrophoresis can be used to diagnose sickle cell anemia in the following way:
1. Extract DNA from the patient's red blood cells and hemoglobin from blood.
2. Subject the DNA and hemoglobin to gel electrophoresis.
3. Analyze the results: Two bands for DNA indicates normal, one band indicates mutation; Two bands for hemoglobin indicates trait, one band heavier than normal indicates disease.
This allows diagnosis by detecting genetic mutations or abnormal hemoglobin proteins associated with sickle cell anemia.