Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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

      • seqadmin
        Recent Advances in Sequencing Analysis Tools
        by seqadmin


        The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
        05-06-2024, 07:48 AM
      • seqadmin
        Essential Discoveries and Tools in Epitranscriptomics
        by seqadmin




        The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist...
        04-22-2024, 07:01 AM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 05-14-2024, 07:03 AM
      0 responses
      26 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-10-2024, 06:35 AM
      0 responses
      45 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-09-2024, 02:46 PM
      0 responses
      59 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 05-07-2024, 06:57 AM
      0 responses
      46 views
      0 likes
      Last Post seqadmin  
      Working...
      X