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
        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
      • seqadmin
        Current Approaches to Protein Sequencing
        by seqadmin


        Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
        04-04-2024, 04:25 PM

      ad_right_rmr

      Collapse

      News

      Collapse

      Topics Statistics Last Post
      Started by seqadmin, 04-25-2024, 11:49 AM
      0 responses
      19 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-24-2024, 08:47 AM
      0 responses
      17 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-11-2024, 12:08 PM
      0 responses
      62 views
      0 likes
      Last Post seqadmin  
      Started by seqadmin, 04-10-2024, 10:19 PM
      0 responses
      60 views
      0 likes
      Last Post seqadmin  
      Working...
      X