Thank you for your suggestion. After running the first command that you mentioned, the resulting saf file didnot have gene_ids in it. Few lines from saf file:
21_43519790_43519815 21 43519790 43519815 + 15_49361981_49362009 15 49361981 49362009 - 19_39999145_39999173 19 39999145 39999173 - 2_231979486_231979511 2 231979486 231979511 - 3_199288152_199288178 3 199288152 199288178 - 11_13587875_13587903 11 13587875 13587903 + 12_131188624_131188651 12 131188624 131188651 - 17_362636_362661 17 362636 362661 + 19_19719474_19719504 19 19719474 19719504 - 11_111105815_111105840 11 111105815 111105840 - 16_34608961_34608986 16 34608961 34608986 + 19_1224098_1224128 19 1224098 1224128 - 9_81670460_81670490 9 81670460 81670490 -
I got chromosome number and co-ordinates but gene_id is still missing. Hope you will look into this. Thanking you in advance.
A little bit more info would be appreciated, but maybe you can do it re-ordering the columns. See more abour the GTF format Here