Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gevielr
    Member
    • Oct 2013
    • 14

    #1

    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.
  • Patrick Dekker
    Junior Member
    • Oct 2008
    • 5

    #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

    • swbarnes2
      Senior Member
      • May 2008
      • 910

      #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

      • jgibbons1
        Senior Member
        • Oct 2009
        • 135

        #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

        • mbayer
          Member
          • Mar 2009
          • 31

          #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

          • gringer
            David Eccles (gringer)
            • May 2011
            • 845

            #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

            • SEQadmin2
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              10-14-2026, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 10:52 AM
            0 responses
            9 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-14-2026, 05:39 AM
            0 responses
            19 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            16 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Working...