![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installed bwa, but there are no bwa files produced in Galaxy | Anek | Bioinformatics | 4 | 03-14-2014 04:23 AM |
weird output with BWA paired end alignment | jmt | Bioinformatics | 2 | 08-13-2013 07:05 PM |
BWA alignment of multiple read files, the order of processing matters? | gene_x | Bioinformatics | 8 | 07-12-2013 01:20 PM |
too small output .sai file created by bwa aln? ..leads to bwa sampe hanging? | Stina | Bioinformatics | 12 | 12-05-2012 08:32 AM |
sam output from bwa colorspace alignment | Mr Mutundes | Bioinformatics | 0 | 12-15-2009 04:02 AM |
![]() |
|
Thread Tools |
![]() |
#1 |
Member
Location: UK Join Date: Feb 2014
Posts: 60
|
![]()
Hi,
I have been using Bowtie for the last few months for alignment but now have a file for indexing which is 6Gb and Bowtie cannot deal with so I have moved onto using BWA, the indexing went fine and I got my files. When reading the documentation is seemed as though "bwa mem" was the best option for the actual alignment however all the output is being sent to the screen and now an actual file (determined as iy is going to the output file from the cluster we have and no new files have been created). Basically was this the correct choice and did I miss something which has caused the output of aligned and unaligned files to not be created? here is the code I used: bwa index -p 50Gb_index -a bwtsw contigs.fa bwa mem -t 20 50Gb_index ../../NZ_bowtie_nonaligned_hungate_thread.done.gz THANKS! |
![]() |
![]() |
![]() |
#2 |
Super Moderator
Location: Walnut Creek, CA Join Date: Jan 2014
Posts: 2,707
|
![]()
Use the redirect operator ">" to pipe to a file:
bwa mem -t 20 50Gb_index ../../NZ_bowtie_nonaligned_hungate_thread.done.gz > mapped.sam |
![]() |
![]() |
![]() |
#3 | |
Member
Location: UK Join Date: Feb 2014
Posts: 60
|
![]() Quote:
This would work if I wanted a SAM file output but I am aiming for a similar output to that provided with bowtie where you get a file of the reads that align to the indexed file and a seperate file for reads that dont align to the indexed file. Is there a way to do this with BWA? |
|
![]() |
![]() |
![]() |
#4 |
Super Moderator
Location: Walnut Creek, CA Join Date: Jan 2014
Posts: 2,707
|
![]()
I don't see an option for it, though you can split the output with samtools into mapped and unmapped reads.
Alternatively, BBMap supports unlimited reference size and also separate files for mapped and unmapped reads, using the "outm=" and "outu=" flags. The output can be in sam or other formats, depending on the file extension. |
![]() |
![]() |
![]() |
#5 | |
Senior Member
Location: Cambridge, UK Join Date: May 2010
Posts: 311
|
![]() Quote:
Code:
bwa mem myIndex myReads.fq.gz \ | tee >(samtools view -Sh -f4 - > unmapped.sam) \ | tee >(samtools view -Sh -F4 - > mapped.sam) > /dev/null Dario |
|
![]() |
![]() |
![]() |
Tags |
bwa 0.7.10 |
Thread Tools | |
|
|