featureCounts problem in reading Gff
0
0
Entering edit mode
13 months ago
Beatrice • 0

Hi,

I am performing RNA-seq analysis on 12 samples. After mapping the reads with Hisat2, I want to count the number of reads using feaureCounts, but I reencountered a problem in reading the gff file downloaded from TAIR. (I also tried downloading it from Ensmbl, but no difference).

featureCounts -p -t exon \
  -a TAIR10_GGF3_genes.gff \
  -o feature.txt \
  erf_2H_A_2.sam erf_2H_A_3.sam \
  erf_2H_A_4.sam erf_2H_H_1.sam \
  erf_2H_H_2.sam erf_2H_H_3.sam \
  WT_2H_A_2.sam WT_2H_A_3.sam \
  WT_2H_A_4.sam WT_2H_H_2.sam \
  WT_2H_H_3.sam  WT_2H_H_4.sam

Running this code results in this error:

Load annotation file TAIR10_GGF3_genes.gff ...  ||
    Failed to open the annotation file TAIR10_GGF3_genes.gff, or its format is incorrect, or it contains no 'exon' features.

So I tried to specify "no exon" in the feature type section:

featureCounts -p -t noexon \
  -a TAIR10_GGF3_genes.gff \
  -o feature.txt \
  erf_2H_A_2.sam erf_2H_A_3.sam \
  erf_2H_A_4.sam erf_2H_H_1.sam \
  erf_2H_H_2.sam erf_2H_H_3.sam \
  WT_2H_A_2.sam WT_2H_A_3.sam \
  WT_2H_A_4.sam  WT_2H_H_2.sam \
  WT_2H_H_3.sam  WT_2H_H_4.sam

Same error:

 Load annotation file TAIR10_GGF3_genes.gff ... |
    Failed to open the annotation file TAIR10_GGF3_genes.gff, or its format is incorrect, or it contains no 'noexon' features.

Of course, my first attempts were without any parameters in the feature type section, but still the same error :___(

featureCounts GFF RNA-seq • 1.1k views
ADD COMMENT
0
Entering edit mode

what is the output of

grep exon -m10 TAIR10_GGF3_genes.gff

?

ADD REPLY
0
Entering edit mode

That's the output, so apparently I have the exon. Anyway, after running grep command the featureCounts worked, even though I didn't change a thing.

THANK YOU

Chr1    TAIR10  exon    3631    3913    .   +   .   Parent=AT1G01010.1
Chr1    TAIR10  exon    3996    4276    .   +   .   Parent=AT1G01010.1
Chr1    TAIR10  exon    4486    4605    .   +   .   Parent=AT1G01010.1
Chr1    TAIR10  exon    4706    5095    .   +   .   Parent=AT1G01010.1
Chr1    TAIR10  exon    5174    5326    .   +   .   Parent=AT1G01010.1
Chr1    TAIR10  exon    5439    5899    .   +   .   Parent=AT1G01010.1
Chr1    TAIR10  exon    8571    8737    .   -   .   Parent=AT1G01020.1
Chr1    TAIR10  exon    8417    8464    .   -   .   Parent=AT1G01020.1
Chr1    TAIR10  exon    8236    8325    .   -   .   Parent=AT1G01020.1
Chr1    TAIR10  exon    7942    7987    .   -   .   Parent=AT1G01020.1
ADD REPLY
0
Entering edit mode

Did you download and open the file on a windows machine first?

ADD REPLY
0
Entering edit mode

By the way, if you type the beginning of a file or directory and then use the tab key then linux will (try to) complete the rest of the name - you don't have to type filenames all by hand.

ADD REPLY

Login before adding your answer.

Traffic: 3254 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