Skip to content

Instantly share code, notes, and snippets.

View vkkodali's full-sized avatar

Vamsi Kodali vkkodali

  • NCBI/NLM/NIH
  • Bethesda, MD
View GitHub Profile
@vkkodali
vkkodali / disorder_to_tbl.py
Created January 9, 2019 22:32
Script to parse MobiDB json file to generate a table
#! /usr/bin/env python3
import sys
import gzip
import json
input_json = sys.argv[1]
with gzip.open(input_json, 'rt') as f:
for line in f:
#!/usr/bin/env python
import csv
import os
import sys
import gzip
from collections import defaultdict
import argparse
# See http://stackoverflow.com/questions/14207708/ioerror-errno-32-broken-pipe-python