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
              Understanding Genetic Influence on Infectious Disease
              by seqadmin




              During the COVID-19 pandemic, scientists observed that while some individuals experienced severe illness when infected with SARS-CoV-2, others were barely affected. These disparities left researchers and clinicians wondering what causes the wide variations in response to viral infections and what role genetics plays.

              Jean-Laurent Casanova, M.D., Ph.D., Professor at Rockefeller University, is a leading expert in this crossover between genetics and infectious...
              09-09-2024, 10:59 AM
            • seqadmin
              Addressing Off-Target Effects in CRISPR Technologies
              by seqadmin






              The first FDA-approved CRISPR-based therapy marked the transition of therapeutic gene editing from a dream to reality1. CRISPR technologies have streamlined gene editing, and CRISPR screens have become an important approach for identifying genes involved in disease processes2. This technique introduces targeted mutations across numerous genes, enabling large-scale identification of gene functions, interactions, and pathways3. Identifying the full range...
              08-27-2024, 04:44 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Today, 06:25 AM
            0 responses
            13 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, Yesterday, 01:02 PM
            0 responses
            12 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 09-18-2024, 06:39 AM
            0 responses
            14 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 09-11-2024, 02:44 PM
            0 responses
            14 views
            0 likes
            Last Post seqadmin  
            Working...
            X