How can I plot alignment between fastq reads and reference sequence?
1
2
Entering edit mode
6.8 years ago
MAPK ★ 2.1k

I have a fastq file and a fasta file with one sequence. I want to plot a figure to show all the reads in fastq file aligned to the fasta file as shown in the figure below. I want to plot for both plus and minus strands. How can I do this (preferably using R)? Thank you for your help. Plot I want: https://ibb.co/eV7EDx

alignment • 4.6k views
ADD COMMENT
0
Entering edit mode

qualimap (http://qualimap.bioinfo.cipf.es/ ) can be an option once you have the BAM file.

ADD REPLY
4
Entering edit mode
6.8 years ago

Just a suggestion:

  1. Align your fastq files against the fasta file, perhaps using bwa or bowtie2 outside of R.
  2. Read the resulting BAM files into R using the GenomicAlignments Bioconductor package.
  3. Visualize data using the Gviz Bioconductor package.
ADD COMMENT
0
Entering edit mode

Thank you Sean for your answer. So for the first step, should I just extract the aligned bam file from bowtie alignment?

ADD REPLY
1
Entering edit mode

You just need to align the reads and use that bam file.

ADD REPLY
0
Entering edit mode

Got it. Thank you so much.

ADD REPLY

Login before adding your answer.

Traffic: 1530 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6