![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to merge two vcf files. | cardillox | Bioinformatics | 3 | 11-27-2019 10:25 PM |
merge gbk files | krispy | Bioinformatics | 14 | 08-29-2016 03:48 AM |
Merge two gff3 files? | BobFreemanMA | Bioinformatics | 3 | 02-05-2013 05:53 AM |
Merge Fasq Files | yagoubali | Illumina/Solexa | 0 | 12-13-2012 06:45 PM |
Can we merge 2 csfasta files ? | tdm | SOLiD | 9 | 12-10-2010 10:10 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: Istanbul, Turkey Join Date: Oct 2012
Posts: 28
|
![]()
Hello all,
I got my fastq files after sequencing, but they sent them in 5 pieces for 1 sample. Do you know a way to merge them? Thanks! |
![]() |
![]() |
![]() |
#2 |
Senior Member
Location: uk Join Date: Mar 2009
Posts: 667
|
![]()
Use 'cat' from the command line;
In the directory containing your fastq files: $ cat *.fastq > merged.fastq |
![]() |
![]() |
![]() |
#3 |
Member
Location: Istanbul, Turkey Join Date: Oct 2012
Posts: 28
|
![]()
I keep getting "-bash: *.fastq: Permission denied" even though I have read - write and execute permissions (-rwxrwxrwx) :/ But thanks for the command, I will try to make it work.
|
![]() |
![]() |
![]() |
#4 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,087
|
![]()
Are your files are in the *.fastq.gz format? Is so, you need to amend mastal's command as follows:
Code:
$ cat *.fastq.gz > merged_file.fastq.gz Code:
cat Sample_ATCACG_L002_R1_001.fastq.gz Sample_ATCACG_L002_R1_002.fastq.gz > Sample_ATCACG_L002_R1_combined.fastq.gz Last edited by GenoMax; 07-03-2013 at 04:32 AM. |
![]() |
![]() |
![]() |
#5 |
Senior Member
Location: uk Join Date: Mar 2009
Posts: 667
|
![]()
Maybe your system has a problem with using the wildcard * ?
Since you just have 5 files, try listing the individual file names, $ cat file1.fastq file2.fastq file3.fastq file4.fastq file5.fastq > merged.fastq |
![]() |
![]() |
![]() |
#6 | ||
Member
Location: Istanbul, Turkey Join Date: Oct 2012
Posts: 28
|
![]()
I have unpacked them before and they are all in .fastq format. I tried like you wrote, in the long form as:
Quote:
Quote:
|
||
![]() |
![]() |
![]() |
#7 |
Senior Member
Location: East Coast USA Join Date: Feb 2008
Posts: 7,087
|
![]()
Hmm. You should not have to "sudo" to "cat" files. It looks to me like you do not have write permissions on the directory where these files are residing.
See if this works. This will put the merged file in your $HOME where you should have write permissions. Code:
cat I-1_ATCACG_L002_R1_001.fastq I-1_ATCACG_L002_R1_002.fastq I-1_ATCACG_L002_R1_003.fastq I-1_ATCACG_L002_R1_004.fastq I-1_ATCACG_L002_R1_005.fastq > ~/I-1.fastq |
![]() |
![]() |
![]() |
#8 |
Member
Location: Istanbul, Turkey Join Date: Oct 2012
Posts: 28
|
![]()
Worked like a dream !
![]() |
![]() |
![]() |
![]() |
Thread Tools | |
|
|