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.
Unconfigured Ad
Collapse
X
-
Hi,
Open the sequencelist switch to table view (5th icon below the sequences). Select a number of sequences and press "create sequencelist".
best
Patrick
-
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
-
FWIW, there's also the split command: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)
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.Code:split -n 2 file.fa file.split.fa. # for splitting a file into two
Last edited by gringer; 11-11-2013, 08:33 PM.
Comment
Latest Articles
Collapse
-
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...-
Channel: Articles
10-14-2026, 09:55 AM -
-
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...-
Channel: Articles
-
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
by SEQadmin2
Yesterday, 10:52 AM
|
||
|
Started by SEQadmin2, 10-14-2026, 05:39 AM
|
0 responses
19 views
0 reactions
|
Last Post
by SEQadmin2
10-14-2026, 05:39 AM
|
||
|
Started by SEQadmin2, 10-13-2026, 09:56 AM
|
0 responses
16 views
0 reactions
|
Last Post
by SEQadmin2
10-13-2026, 09:56 AM
|
||
|
Started by SEQadmin2, 10-09-2026, 11:14 AM
|
0 responses
27 views
0 reactions
|
Last Post
by SEQadmin2
10-09-2026, 11:14 AM
|
Comment