Multi-sample Heatmap from GRange
1
0
Entering edit mode
Danny • 0
@danny-18782
Last seen 6.0 years ago

I have a file comprised of with multiple (thousands) of single-molecule reads, and a score for multiple k-mers in each of these reads.

chr start end read score

1 500 505 read1 5

1 5010 515 read1 8

1 501 506 read2 2

1 520 525 read2 -3

I would like to make a heatmap where each read is a row and the position along the chromosome is the column. I've imported it into a GRange object, and can easily split it by read-name in a loop, but is there an easy way to make a heatmap or a matrix from it? All the reads cover different (sometimes overlapping) parts of the same genomic region.

Thanks

Danny

 

 

GRange • 708 views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 1 day ago
United States

You should probably use Gviz for that. See the vignette and help page for DataTrack.

ADD COMMENT

Login before adding your answer.

Traffic: 446 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