Thanks! I was able to get around this error by using feature counts. However, I ended up getting zero reads. This is odd considering that my Bam file had an alignment of about 90%. I think that my .gff3 file and bam file are somehow incompatible.
Here is some of the .bam file. AS you can see it is region CM012081.2
J00138:157:HVCVCBBXX:4:1127:4919:41036 73 CM012081.2 207 60 135M = 207 0 GGCGTCGCAGACCAAGAGCATAT
GAGTGCATTGGGGTGTTTGTCAGGCGCAATGTTAGAGCCCCATCTCCTCCCTACAGATCCTGTTCTAGTTTCAGTCACAAGGCCAGCCCCAGAGTGCCTGTGCCAGCCCCAG AAFFFJJJJJJJJJJ
JJJJJJJJJJJFJJJJJJJJJJAJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJFJJJJJJFJFJJJJJJJJJJJJJJJJJJJ7FJJF<JJJFJJJJJJJAFFJJF<JFJ<FJJJJJJFJ AS:i:0
here is the head of my gff3 file with the alias almost matching the bam file except for the .1 instead of .2
1 ensembl gene 34955 72180 . + . ID=gene:ENSTGUG00000013637;Name=DCBLD2;biotype=protein_coding;description=discoidin%2C CUB and LCCL domain containing 2 [Source:NCBI gene%3BAcc:100218192];gene_id=ENSTGUG00000013637;logic_name=ensembl;version=2
1 ensembl mRNA 34955 72180 . + . ID=transcript:ENSTGUT00000014203;Parent=gene:ENSTGUG00000013637;Name=DCBLD2-201;biotype=protein_coding;tag=Ensembl_canonical;transcript_id=ENSTGUT00000014203;version=2
1 ensembl exon 34955 35066 . + . Parent=transcript:ENSTGUT00000014203;Name=ENSTGUE00000142648;constitutive=1;ensembl_end_phase=1;ensembl_phase=0;exon_id=ENSTGUE00000142648;rank=1;version=2
Here is my output. I do not believe that the gene counts are all zero. This has been a sustained issue for 2 weeks and I am not sure what to do.
Geneid Chr Start End Strand Length /Volumes/cachannel/ZebraFinchBrain/CB-4a_genomemapping/sorted_alignmentcb4a.bam
gene:ENSTGUG00000013637 1 34955 72180 + 37226 0
gene:ENSTGUG00000013635 1 45219 302771 - 257553 0
gene:ENSTGUG00000020928 1 74112 115790 - 41679 0
gene:ENSTGUG00000013634 1 115954 334268 + 218315 0
gene:ENSTGUG00000027178 1 159330 160474 - 1145 0
gene:ENSTGUG00000013633 1 303920 334270 + 30351 0
gene:ENSTGUG00000013632 1 331197 351031 + 19835 0
gene:ENSTGUG00000013631 1 349213 372968 - 23756 0