Unconfigured Ad

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

    #1

    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
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 10-22-2026, 11:13 AM
            0 responses
            23 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-22-2026, 10:48 AM
            0 responses
            20 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-15-2026, 10:52 AM
            0 responses
            36 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            42 views
            0 reactions
            Last Post SEQadmin2  
            Working...