Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yzzhang
    Member
    • Jan 2013
    • 67

    #1

    break scaffolds with many Ns to contigs

    Dear all,
    Recently I sequenced a plant genome using Hiseq 2000, 101bp paired end reads. I assembled the reads to contigs. Because I just sequenced one insert libray (size 400 bp), I got so many contigs. To build a better genome and get more genes, I aligned the contigs to a related species genome using ABACAS, and filled the gaps using Gapfiller. Maybe the two species have some different regions in chromosomes, so in the result there are many Ns in the generated scaffolds (the same as the chromosomes number). So I want to break the scaffolds to contigs if there are more than 100 Ns between two continuous sequences. Because I am only a biologist and with on knowledge on scripts. Could anyone could indicate me which software or script works for my data? Many thanks.
    Best Wishes,
    yun
  • westerman
    Rick Westerman
    • Jun 2008
    • 1104

    #2
    There are probably many ways. Using fastx toolkit plus unix should work. I think, but have not tried, the following

    1) fasta_formatter to convert the contigs into single-line sequences
    2) sed -e 's/N{100,}/>/g'
    3) fastx_renamer
    4) (optional) fasta_formatter for more sensible line breaks

    A short perl/python/ruby program would also work but that would require some level of programming.

    What I gave above is just the bare-bones -- the idea -- and not the actual implementation which is left up to you.

    Comment

    • yzzhang
      Member
      • Jan 2013
      • 67

      #3
      Thank you very much. Finally I got a perl script for this purpose. I need to learn some programming skills, I am wondering perl or python is earier to learn, and try perl first. Anyway, Thanks.

      Originally posted by westerman View Post
      There are probably many ways. Using fastx toolkit plus unix should work. I think, but have not tried, the following

      1) fasta_formatter to convert the contigs into single-line sequences
      2) sed -e 's/N{100,}/>/g'
      3) fastx_renamer
      4) (optional) fasta_formatter for more sensible line breaks

      A short perl/python/ruby program would also work but that would require some level of programming.

      What I gave above is just the bare-bones -- the idea -- and not the actual implementation which is left up to you.

      Comment

      Latest Articles

      Collapse

      • SEQadmin2
        Beyond CRISPR/Cas9: Understand, Choose, and Use the Right Genome Editing Tool
        by SEQadmin2



        CRISPR/Cas9 sparked the gene editing revolution for both research and therapeutics.1 But this system still showed severe issues that limited its applications. The most prominent were the heavy reliance on PAM sequences, delivery limitations, double-stranded breaks that prompt unintended edits and cell death, and editing inefficiency (both in targeting and in knock-in reliability).

        Despite this, “CRISPR helped turn genome editing from a specialized technique into
        ...
        07-31-2026, 11:01 AM
      • 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

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by SEQadmin2, 08-13-2026, 12:22 PM
      0 responses
      23 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-11-2026, 10:35 AM
      0 responses
      19 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-06-2026, 07:41 AM
      0 responses
      33 views
      0 reactions
      Last Post SEQadmin2  
      Started by SEQadmin2, 08-03-2026, 10:13 AM
      0 responses
      51 views
      0 reactions
      Last Post SEQadmin2  
      Working...