Multiple Samples Data And Chromosome Ideograms From Cnv Caller
1
1
Entering edit mode
12.5 years ago
madkitty ▴ 690

I have posted a similar question here : http://www.biostars.org/post/show/46740/how-to-create-such-figure-of-chromosomes/#46762

An other similar figure representing multiple samples ideograms can be found here : http://www.biostars.org/post/show/378/drawing-chromosome-ideogams-with-data/

From mouse genome mm9 I have CNV Losses and Gain from Breakdancer and CNVnator, so our data have only :

  • type of CNV
  • breakpoint start and end coordinates
  • chromosome number
  • length of the Copy Number.

Based on those data and knowing that we have 6 samples to represent on one ideogram, which software is more appropriate to have a nice ideogram of our 6 samples ?

Thanks :)

cnv chromosome • 5.0k views
ADD COMMENT
2
Entering edit mode
12.5 years ago
Michael 55k

That restricts your choice to packages that support mouse chromosomes, immediately excluding e.g. the GenomeGraphs and quantsmooth bioconductor packages because they support only human ideograms, but the Gviz Bioconductor package does support genomes in Ensembl and UCSC. From the examples, it looks like it is the most efficient way of making publication ready ideograms with your data right now. Step through the examples in the package vignettes and try them out.

Here is one example that makes such a plot, I display only two data tracks but you will manage, you need to install the Gviz package in R before:

library(IRanges)
library(Gviz)
gen <- "mm9" # mouse genome
chr <- "chr7" # chromosome 7

## make some markers
anot1 = IRanges(start=runif(100, min=1, max=152524553), width=1)
anot2 = IRanges(start=runif(100, min=1, max=152524553), width=1)
## ideogram:
itrack <- IdeogramTrack(genome = gen, chromosome = chr)
## axis:
gtrack <- GenomeAxisTrack()
## plot:
atrack1 <- AnnotationTrack(anot1, chromosome = chr,
genome = gen, name = "Sample1")
atrack2 <- AnnotationTrack(anot2, chromosome = chr,
genome = gen, name = "Sample2")
plotTracks(list(itrack, gtrack, atrack1, atrack2))

Resulting plot

ADD COMMENT
0
Entering edit mode

Thanks a lot for your helpful answer! I'm installing Gviz right now. How should I configure data for sample 1 and 2 ? And where is my input file in the code you've mentioned ? for some reason I don't see it..

ADD REPLY
0
Entering edit mode

I simply generated random data, if you want to read a GFF file, most likely the package rtracklayer will support. If it is VCF, you can use the VariantAnnotation package.

ADD REPLY
0
Entering edit mode

Oh Thanks! I have everything on an excel spreadsheet right now. So I would input my excel data as a VCF file I guess .. Does that go instead of atrack1 & atrack2 ?

ADD REPLY
0
Entering edit mode

Simply export into a tab or comma separated file in Ecxel and use read.delim in R. Actually you will only need columns chromosome and position information. A width or end column maybe, if you have variant larger than 1 bp. I guess you can figure that out?

ADD REPLY
0
Entering edit mode

God knows! I'm a R newbie but I can try to learn and see .. If that doesn't work out I will post a new thread :) I will check this out right now! Thanks a lot for your help!!

ADD REPLY

Login before adding your answer.

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