Convert a GTF file to a comma seperated file (CSV) with the original order of fields and attributes.
Extract source files to a directory.
python2.7+ or python3.5+
pip install future
From your installation folder,
python gtf_to_csv.py test_gtf.gtf > test_gtf.csv
The attribute names are extracted from the first 100 GTF lines. The place holder for a missing attribute is '.'. Please see the test_gtf.gtf and test_gtf.csv for an example input and output.
- Zongzhi Liu - Associate Research Scientist, Dept. of Pathology, Yale University
You are welcome to contact me by email: {firstname}.{lastname}@yale.edu.
Enjoy!