Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • frequency distribution plot

    Hi!!

    I have some .sff files from a 454 sequencing proyect. I wonder if someone can help me in giving me an idea of how to plot the frequency distribution of reads lenght, like there is in a lot of papers.

    Thanks in advanced

  • #2
    You can do this with Biopieces (www.biopieces.org) using FASTA files as input:

    Code:
    read_fasta -i in.fasta | plot_lendist -k SEQ_LEN -t post -o lendist.ps -x
    You can convert sff files to FASTA format with sff_extract from the MIRA package. I think it is in this bundle: http://sourceforge.net/projects/mira...r.bz2/download


    Cheers,


    Martin

    Comment


    • #3
      Here is a Biopython solution using matplotlib for plotting, taken almost verbatim from the "Histogram of sequence lengths" example in the Biopython Tutorial, but using an SFF file as input:

      Code:
      from Bio import SeqIO
      sizes = [len(rec) for rec in SeqIO.parse("example.sff", "sff-trim")]
      
      import pylab
      pylab.hist(sizes, bins=20)
      pylab.title("%i Roche 454 reads\nLengths %i to %i" \
                  % (len(sizes),min(sizes),max(sizes)))
      pylab.xlabel("Read length (bp, trimmed)")
      pylab.ylabel("Count")
      pylab.show()

      Comment


      • #4
        Thanks a lot for your answers!! For using biopieces and make the plot Do I have to install Ruby and Phyton necessarily?

        Comment


        • #5
          Biopieces have a number of prerequisites including Ruby (and for a few Biopieces, Python as well).



          However, even if the installation of Biopieces is a bit tricky, it is worth while, IMHO!


          Martin

          Comment


          • #6
            Originally posted by maasha View Post
            You can convert sff files to FASTA format with sff_extract from the MIRA package. I think it is in this bundle: http://sourceforge.net/projects/mira...r.bz2/download
            Or from the sff_extract home page, http://bioinf.comav.upv.es/sff_extract/index.html - note this needs Python.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Strategies for Sequencing Challenging Samples
              by seqadmin


              Despite advancements in sequencing platforms and related sample preparation technologies, certain sample types continue to present significant challenges that can compromise sequencing results. Pedro Echave, Senior Manager of the Global Business Segment at Revvity, explained that the success of a sequencing experiment ultimately depends on the amount and integrity of the nucleic acid template (RNA or DNA) obtained from a sample. “The better the quality of the nucleic acid isolated...
              03-22-2024, 06:39 AM
            • seqadmin
              Techniques and Challenges in Conservation Genomics
              by seqadmin



              The field of conservation genomics centers on applying genomics technologies in support of conservation efforts and the preservation of biodiversity. This article features interviews with two researchers who showcase their innovative work and highlight the current state and future of conservation genomics.

              Avian Conservation
              Matthew DeSaix, a recent doctoral graduate from Kristen Ruegg’s lab at The University of Colorado, shared that most of his research...
              03-08-2024, 10:41 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Yesterday, 06:37 PM
            0 responses
            10 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, Yesterday, 06:07 PM
            0 responses
            9 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 03-22-2024, 10:03 AM
            0 responses
            51 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 03-21-2024, 07:32 AM
            0 responses
            67 views
            0 likes
            Last Post seqadmin  
            Working...
            X