Biostar Beta. Not for public use.
How to convert gff file to a csv file
0
Entering edit mode
20 months 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

ADD COMMENTlink
3
Entering edit mode
12 months ago
erwan.scaon • 680
Nantes - France

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 COMMENTlink
0
Entering edit mode
11 months ago
-_- • 830
Canada

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

ADD COMMENTlink

Login before adding your answer.

Similar Posts
Loading Similar Posts
Powered by the version 2.1