Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Carola Berger
    Junior Member
    • Jun 2014
    • 8

    Prokka -contig name to long even after --centre command

    I want to use Prokka to annotate a Velvet alignment of a Pseudomonas aeruginosa genome. When I try to run it I get this error:

    Contig ID must <= 20 chars long: NODE_1_length_41061_cov_17.678381
    [11:20:10] Please rename your contigs or use --centre XXX to generate clean contig names.

    So I inserted the --centre XXX command in the running command. But now I become this error:

    Contig ID must <= 20 chars long: gnl|XXX|PROKKA_contig000001
    [11:22:08] Please rename your contigs or use --centre XXX to generate clean contig names.

    So what do i do now? Is there a way to get the name shorter?

    I appreciate any help
  • maubp
    Peter (Biopython etc)
    • Jul 2009
    • 1544

    #2
    I would try renaming all the contigs in the input FASTA file before calling Prokka,

    e.g. NODE_1_length_41061_cov_17.678381 --> contig000001

    Comment

    • Carola Berger
      Junior Member
      • Jun 2014
      • 8

      #3
      I also got an answer for the developer team.

      So maybe this helps other people who run into the same problem in the future:

      1) Try using the "--compliant" option (and do NOT use --centre)

      2) Or try "--compliant --prefix XX"

      3) Or try "--compliant --prefix XX --centre XX"

      Comment

      • feralBiologist
        Member
        • Jun 2011
        • 61

        #4
        I tried using "--compliant" and "--centre XX" alone and in combination and it didn't work.

        Comment

        • Brian Bushnell
          Super Moderator
          • Jan 2014
          • 2709

          #5
          Try downloading BBMap and running this command:

          rename.sh in=contigs.fa out=renamed.fa prefix=contig

          Comment

          • Markiyan
            Senior Member
            • Sep 2010
            • 126

            #6
            We use [strain#]_AS[AS#]_CO[contig#]

            It is extremely important to have both descriptive and consistent naming schema for the contigs/scaffolds for all downstream analysis.

            Unfortunately NCBI names are a bit too long and usually have white spaces before the contig#, which makes them unsuitable as human and machine readable fasta_ID...

            In our case we usually use the following contig names:

            >[strain_name]_AS[AS#]_CO[contig#] {some optional description/orig name/etc}*

            like:

            >NRRL2338_AS1006_CO1

            in case of scaffolds we put SC instead of CO,

            >NRRL2338_AS1006_SC1

            so if you has assembled DH10B and yours assembly #5 has multifasta has:
            >contig0001
            ...
            >contig0012

            you do search and replace
            >contig00
            with
            >DH10B_AS5_CO

            PS: in the case of long strain names they may need a bit of shortening.

            contigs renaming happens after assembly selection/polishing.

            For the data downloaded from the NCBI/EMBL, it is done in KATE or similar text editor supporting regexp. Also one can use perl one liners (google - perl search and replace) if you are familiar with perl regexp.

            Being consistent in sequence naming has a huge impact in all types of downstream analysis (blast, mapping, annotation).

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
              by SEQadmin2


              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

              The systematic characterization of the human proteome has
              ...
              07-20-2026, 11:48 AM
            • SEQadmin2
              Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by SEQadmin2



              Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
              ...
              07-09-2026, 11:10 AM
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              07-08-2026, 05:17 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 12:17 PM
            0 responses
            11 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-23-2026, 11:41 AM
            0 responses
            11 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-20-2026, 11:10 AM
            0 responses
            23 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            37 views
            0 reactions
            Last Post SEQadmin2  
            Working...