Hi,
I am trying to use featureCounts to analyse my RNA-seq data with Apis mellifera. My Code and error are as follows. r
/softwares/subread-2.0.0-source/bin/featureCounts
-T 16
-p
-s 1
-a /home/axel/arumoyc/alignment/GCF_003254395.2_Amel_HAv3.1_genomic.gtf
-t exon
-g gene_id
-o /home/axel/arumoyc/counts_all/all/count24.txt /home/axel/arumoyc/bamfiles_test/bamfiles/bamfile24/map24Aligned.sorted.out.bam
2> /home/axel/arumoyc/counts_all/all/count24.screen-output.log
ERROR:
failed to find the gene identifier attribute in the 9th column of the provided GTF file. The specified gene identifier attribute is 'geneid' An example of attributes included in your GTF annotation is 'geneid ""; transcriptid "unknowntranscript1"; anticodon "(pos:31..33)"; gbkey "tRNA"; product "tRNA-Glu"; exonnumber "1"; 'The program has to terminate.
The .gtf file was downloaded from NCBI and was not manipulated. Please help me on this error. Thanks in advance.
Have you looked at the contents of your provided GTF file? With the
-g
option on featureCounts you're telling it to look for the identifier you proided. Most likely your GTF file is either missing the identifier you provided or is using a different name.I see the "gene_id" is present. I also converted the .gtf file into an excel table also and the 9th column is indeed "gene_id". Each column of the .gtf file has 335791 entries.
I seem to be having the same issue with a .gtf file downloaded from NCBI: GCF_003339765.1_Mmul_10_genomic.gtf
I am aware from this guidance (https://mblab.wustl.edu/GTF2.html) and this biostars question (GFF3 to GTF conversion - 9th column) that gene_id and transcript_id must be at the start of the 9th column and I tried to correct my .gtf file based on recommendations in the biostar post, however, this hasn't solved the issue.
I have another annotation downloaded from Ensembl and it runs fine however it's not the annotation I want to use.
Further clarification on this would be greatly appreciated and thank you for you time reading this
I was having the same error message. I tried to manipulate my gtf file in many ways. I read someone suggesting to go to an older version of subread and that worked for me. We happened to have subread/1.5.1. Good luck.
You can try AGAT it might fix your problem