Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • easy way to assemble 50% of reads?

    Is there an easy way to separate a large fastq file of raw reads in half? I would imagine this should be pretty easy. I want to see how assembling half of my reads would do with some command... but I also have access to CLC and there doesn't seem to be a way to specify 50% of reads. This is a 70M+ 100 bp dataset.

  • #2
    Hi,

    Open the sequencelist switch to table view (5th icon below the sequences). Select a number of sequences and press "create sequencelist".

    best
    Patrick

    Comment


    • #3
      Use awk or grep or something to filter by the tile.

      Or use unix head to get the top half of the file.

      Comment


      • #4
        If you know how many lines are in your file you can use the split command

        $ wc -l file.fastq
        100 file.fastq

        $ split -l 50 file.fastq

        Comment


        • #5
          The head command in Linux also alllows you to extract a number of lines from the start of the file (or use the tail command for the end of the file), without splitting the whole file:

          In analogy to the above:

          $ wc -l file.fastq
          100 file.fastq

          $ head -n 50 file.fastq > halfAFile.fastq

          cheers

          Micha

          Comment


          • #6
            The head command in Linux also alllows you to extract a number of lines from the start of the file (or use the tail command for the end of the file)
            FWIW, there's also the split command:

            Code:
            split -n 2 file.fa file.split.fa. # for splitting a file into two
            But bear in mind that raw reads from NGS runs frequently have low-quality reads near the start and end of the file, so you'll get a bit of quality bias from choosing a specific half of the file.
            Last edited by gringer; 11-11-2013, 08:33 PM.

            Comment

            Latest Articles

            Collapse

            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin


              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
              Yesterday, 07:01 AM
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            49 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            50 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            43 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            55 views
            0 likes
            Last Post seqadmin  
            Working...
            X