How to convert gff file to a csv file
2
0
Entering edit mode
6.3 years ago

Hello,

I wanted to know how one can convert a GFF file to CSV file. I need to compare a few genes I have found and placed in an excel sheet with the gff file. I am not able to find a code that could work. and I myself am bad at programming so..\

Any help will be appreciated, Thank you

next-gen sequencing gene • 9.7k views
ADD COMMENT
5
Entering edit mode
6.3 years ago
erwan.scaon ▴ 930

You could try this :

awk -F '\t' -v OFS=, '!/^#/ {$1=$1;print}' file.gff > file.csv;

It will ignore lines starting with '#" in your GFF and convert tab to comma

ADD COMMENT
1
Entering edit mode
5.5 years ago
-_- ★ 1.1k

I have attempted this conversion: https://github.com/zyxue/gtf2csv, may be helpful to some one.

ADD COMMENT

Login before adding your answer.

Traffic: 1719 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6