Unconfigured Ad

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

    #1

    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

            • SEQadmin2
              The Factors Reshaping Genome Assembly
              by SEQadmin2



              When the Human Genome Project declared the human genome finished in 2003, portions of the sequence were still missing, including many of its most repetitive and structurally complex regions.1 Still, for the next two decades, researchers analyzed their sequencing data against the single linear reference that came out of this effort. Released in 2013 as GRCh38, that reference has powered countless discoveries, but it has gaps and cannot capture the genetic diversity of the world’s...
              11-24-2026, 07:04 AM
            • SEQadmin2
              16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
              by SEQadmin2





              NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
              10-30-2026, 06:46 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 11-23-2026, 11:11 AM
            0 responses
            39 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 11-17-2026, 06:27 AM
            0 responses
            47 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 11-12-2026, 07:59 AM
            0 responses
            68 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 11-05-2026, 09:25 AM
            0 responses
            68 views
            0 reactions
            Last Post SEQadmin2  
            Working...