Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • #bases & # reads

    Hi,

    I am new to bioinformatics and appreciate your help answering this question.

    I have a reads file [a sample is attached] and want to count the number of #bases and number of reads in this file, how do I do this? Is there a relation between the #bases and # reads in a reads file? i,e if the #bases information is available for a particular reads file, can I immediately calculate the number of reads?


    Thanks.
    Attached Files

  • #2
    Assuming that all the reads are of a uniform length and have not been modified in some way (trimmed), then each read will be the same number of bases.

    In your sample fastq file:
    HTML Code:
    @SRR019388.1.1 SLXA-EAS1_126_FC20H6L_0_7_1_490_23.1 length=35
    GTCAAATATAGTGAGTACAGGAAAATAGGTGGAGA
    +SRR019388.1.1 SLXA-EAS1_126_FC20H6L_0_7_1_490_23.1 length=35
    <<<<<<<<<<<<;<<<<<<<<<<<<<<9<<;;7<;
    So your reads are 35bps long. If you know the number of reads just multiple by 35 and that equals the number of bases.

    Comment


    • #3
      Originally posted by CS Student View Post
      Hi,

      I am new to bioinformatics and appreciate your help answering this question.

      I have a reads file [a sample is attached] and want to count the number of #bases and number of reads in this file, how do I do this? Is there a relation between the #bases and # reads in a reads file? i,e if the #bases information is available for a particular reads file, can I immediately calculate the number of reads?


      Thanks.
      There are several programs (e.g., get_fasta_stats -- search the forum for them) that will calculate read/base stats. You could also 'wc -l' the fastQ file and divide by 4 for the number of reads. Bases are bit more difficult to find via simple unix tools. Basically I suggest you do more reading and searching in the forum. Always a good way to find out information.

      There is no relation between #bases and #reads.

      Comment


      • #4
        Originally posted by chadn737 View Post
        Assuming that all the reads are of a uniform length and have not been modified in some way (trimmed), then each read will be the same number of bases.
        And that is a big assumption. Sure, you could look at the start of the file and at the end of the file and see reads being 35 bases in length ... but are all? I wouldn't want to guarantee this on an unknown file.

        Actually from the sample file, 'CS student' should be able to figure out how many reads and the length of the reads (since this is given) via simple unix tools --- which any CS student should know. I'd use 'grep', 'cut', 'sort', and 'uniq'.

        Comment


        • #5
          Originally posted by westerman View Post

          Actually from the sample file, 'CS student' should be able to figure out how many reads and the length of the reads (since this is given) via simple unix tools --- which any CS student should know. I'd use 'grep', 'cut', 'sort', and 'uniq'.
          Perhaps "CS Student" needs help understanding the "fastq" file format to follow your suggestion. May be a true beginner (can't tell from looking at "CS Student's" posting history).

          Comment


          • #6
            Thank you very much for your explainations. This is all what I wanted to know about # reads and #bases.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Latest Developments in Precision Medicine
              by seqadmin



              Technological advances have led to drastic improvements in the field of precision medicine, enabling more personalized approaches to treatment. This article explores four leading groups that are overcoming many of the challenges of genomic profiling and precision medicine through their innovative platforms and technologies.

              Somatic Genomics
              “We have such a tremendous amount of genetic diversity that exists within each of us, and not just between us as individuals,”...
              Yesterday, 01:16 PM
            • seqadmin
              Recent Advances in Sequencing Analysis Tools
              by seqadmin


              The sequencing world is rapidly changing due to declining costs, enhanced accuracies, and the advent of newer, cutting-edge instruments. Equally important to these developments are improvements in sequencing analysis, a process that converts vast amounts of raw data into a comprehensible and meaningful form. This complex task requires expertise and the right analysis tools. In this article, we highlight the progress and innovation in sequencing analysis by reviewing several of the...
              05-06-2024, 07:48 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, Yesterday, 07:15 AM
            0 responses
            13 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-23-2024, 10:28 AM
            0 responses
            17 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-23-2024, 07:35 AM
            0 responses
            20 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 05-22-2024, 02:06 PM
            0 responses
            10 views
            0 likes
            Last Post seqadmin  
            Working...
            X