Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • alessandra85
    Member
    • Sep 2010
    • 10

    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
  • maasha
    Senior Member
    • Apr 2009
    • 153

    #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

    • maubp
      Peter (Biopython etc)
      • Jul 2009
      • 1544

      #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

      • alessandra85
        Member
        • Sep 2010
        • 10

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

        Comment

        • maasha
          Senior Member
          • Apr 2009
          • 153

          #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

          • maubp
            Peter (Biopython etc)
            • Jul 2009
            • 1544

            #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

            • GATTACAT
              Reply to Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by GATTACAT
              Love this - good data definitely starts from good input, and poor input can only give relatively poor data. I particularly like the mention of Nanodrop/absorbance based methods for quantification. It's such a toss up if you'll get an accurate reading or what amounts to a randomly generated number, and a lot of library/sequencing related issues can be traced back to poor quant.
              07-01-2026, 11:43 AM
            • SEQadmin2
              Nine Things a Sample Prep Scientist Thinks About Before Sequencing
              by SEQadmin2


              I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

              Here are nine questions we think about, in roughly the order they matter, before...
              06-18-2026, 07:11 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-02-2026, 11:08 AM
            0 responses
            21 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-30-2026, 05:37 AM
            0 responses
            21 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-26-2026, 11:10 AM
            0 responses
            21 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 06-17-2026, 06:09 AM
            0 responses
            54 views
            0 reactions
            Last Post SEQadmin2  
            Working...