We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c96b100 + a1ed8bc commit d89cd06Copy full SHA for d89cd06
docs/json_output_overview.md
@@ -62,3 +62,19 @@ This documentation provides a detailed description of the keys in JSON output fo
62
- **`related_samples`**
63
- *Process*: `Quality Control (QC)`
64
- *Description*: DataFrame containing relatedness information output by PLINK/KING from completed relatedness pruning.
65
+
66
+---
67
68
+### Loading JSON Components into a Pandas DataFrame in Python
69
70
+```
71
+import json
72
+import pandas as pd
73
74
+json_path = /path/to/output.json
75
76
+f = open(json_path)
77
+json_file = json.load(f)
78
79
+input_samples = pd.DataFrame(json_file['input_samples']) # replace 'input_samples' with any JSON key!
80
0 commit comments