I have also downloaded the Genbank of a reference genome and ran it using --proteins. It gives similar results...
prokka --outdir /assembly_test/mydir_genes_ref --prefix mygenome --proteins /ref.gb /assembly_test/assembly.fasta
The Genbank looks like this:
gene 162628..163530
/gene="lpxC"
/locus_tag="BAL062_00145"
CDS 162628..163530
/gene="lpxC"
/locus_tag="BAL062_00145"
/codon_start=1
/transl_table=11
/product="UDP-3-O-[3-hydroxymyristoyl] N-acetylglucosamine
deacetylase,UDP-3-O-[3-hydroxymyristoyl]
The resulting names are the product not the gene name...
I also tried using the --addgenes flag with the exact same results:
prokka --outdir assembly_test/mydir_genes_ref_genes --prefix mygenome --proteins ref.gb --addgenes assembly_test/assembly.fasta
I have checked the CSV file and this contains the right gene name. I assumed the "--addgenes" flag didn't work so tried it again with --compliant and --rawproduct
Could it be a problem with the order of flags? I went over the manual several times - if the answer is there I was not able to find it...