Entering edit mode
9.7 years ago
Crystal
▴
70
Hi All,
I want to check if there are alternative alignments in my results via BWA alignment.
I have both bam and sam files, but I don't want to download the complete sam files to my computer.
I know there is a way to just view the results with alternative alignments.
Should I use samtools or should I create a vcd file to view the alternatives?
Can I just use
vcftools view -A input.file > output.file
Any ideas?
Thanks
You can extract alternative (non-primary) alignments from the bam file using:
samtools view -f 100 input.bam
Thank you.
I did
samtools view -f input.bam > output
. It seems the output is a txt file. It provides information, but I'm confused with the format. So I'm wondering if I can get the output as a bam or sam file and then I can convert it to a readable txt file.for the sam format with the header OR
for the bam file.