I have mapped the fastq files with BWA tool which gave me .bam files. Further, I would like to split this bam file on the basis of forward and reverse strand. Which tool is best for doing this process. Any tool available on Galaxy? Thanks in advance.
there is no actual split tool I know of for this task, but you can run the tool Filter SAM or BAM, output SAM or BAM twice, once keeping only the reads on the forward strand, once keeping those on the reverse strand.
For the forward strand reads:
Filter on bitwise flag: yes
Skip alignments with any of these flag bits set (the second of the two multiselect panels)
check Read strand
For the reverse strand reads:
Filter on bitwise flag: yes
Only output alignments with all of these flag bits set (the first of the two multiselect panels)
check Read strand
Rationale behind this (since your question made me realize that the checkbox name Read strand (and Mate strand just below it) used in the tool interface are really not that helpful): the 5th bit in the SAM/BAM FLAG field is set to 1 if the read sequence stored in the BAM file is the reverse-complement of the originally determined sequence indicating that the read mapped to the rerverse strand (see the SAM/BAM format specification).