Thank you for your reply I tried to used feature count after using ID = bin1_00001, bin1_00002...so on but its not generating any counts The output is
//========================== featureCounts setting ===========================\\
|| ||
|| Input files : 1 BAM file ||
|| S J2.bam.sorted.bam ||
|| ||
|| Annotation : R data.frame ||
|| Dir for temp files : . ||
|| Threads : 1 ||
|| Level : meta-feature level ||
|| Paired-end : no ||
|| Multimapping reads : counted ||
|| Multi-overlapping reads : not counted ||
|| Min overlapping bases : 1 ||
|| ||
\\===================== http://subread.sourceforge.net/ ======================//
//================================= Running ==================================\\
|| ||
|| Load annotation file .Rsubread_UserProvidedAnnotation_pid29252 ... ||
Error: Line 5332 contains a format error. The expected annotation format is SAF.
Error in featureCounts(bamFiles, annot.ext = smgff) :
No counts were generated.
I can see that my sorted Bam file also has same ID. I am able to pull some mid lines of bam file.
@SQ SN:bin1_05318 LN:47
@SQ SN:bin1_05319 LN:180
@SQ SN:bin1_05320 LN:293
@SQ SN:bin1_05321 LN:217
@SQ SN:bin1_05322 LN:62
@SQ SN:bin1_05323 LN:213
@SQ SN:bin1_05324 LN:77
@SQ SN:bin1_05325 LN:465
@SQ SN:bin1_05326 LN:573
The head of my gff file is
Chr Start End Strand GeneID
1 k141_1006 920 2257 + bin1_00002
2 k141_5512 154 1296 + bin1_00003
3 k141_5512 1350 1523 - bin1_00004
4 k141_5512 1769 3526 + bin1_00005
5 k141_5512 3590 4270 - bin1_00006
6 k141_5512 4360 5346 + bin1_00007
I am not sure where I am going wrong. I tried many times. Any help highly appreciated.