How to convert gff file to a csv file
2
0
Entering edit mode
6.9 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 • 10k views
ADD COMMENT
5
Entering edit mode
6.9 years ago
erwan.scaon ▴ 950

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
6.1 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: 1659 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