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.
Announcement
Collapse
No announcement yet.
X
-
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
-
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)
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 seqadmin
The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
...-
Channel: Articles
11-27-2023, 01:15 PM -
-
by seqadmin
Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...-
Channel: Articles
11-09-2023, 07:02 AM -
ad_right_rmr
Collapse
News
Collapse
Topics | Statistics | Last Post | ||
---|---|---|---|---|
Started by seqadmin, Yesterday, 02:24 PM
|
0 responses
11 views
0 likes
|
Last Post
by seqadmin
Yesterday, 02:24 PM
|
||
Started by seqadmin, Yesterday, 07:37 AM
|
0 responses
21 views
0 likes
|
Last Post
by seqadmin
Yesterday, 07:37 AM
|
||
Started by seqadmin, 12-04-2023, 08:23 AM
|
0 responses
8 views
0 likes
|
Last Post
by seqadmin
12-04-2023, 08:23 AM
|
||
Started by seqadmin, 12-01-2023, 09:55 AM
|
0 responses
24 views
0 likes
|
Last Post
by seqadmin
12-01-2023, 09:55 AM
|
Comment