Skip to content

Commit d89cd06

Browse files
authored
Merge pull request #164 from dvitale199/json
2 parents c96b100 + a1ed8bc commit d89cd06

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/json_output_overview.md

+16
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,19 @@ This documentation provides a detailed description of the keys in JSON output fo
6262
- **`related_samples`**
6363
- *Process*: `Quality Control (QC)`
6464
- *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

Comments
 (0)