16 |
17 | `LDheatmap()` is used to produce a graphical display, as a heat map, of pairwise linkage disequilibrium (LD)
18 | measurements for SNPs.
19 | The heat map is a false color image in the upper-left
20 | diagonal of a square plot. A line parallel to
21 | the diagonal of the image indicating
22 | the physical or genetic map positions of the SNPs
23 | may be added, along
24 | with text reporting the total length of the genomic
25 | region considered. Users may also display the heatmap
26 | "flipped" below a horizontal line indicating the map
27 | positions of the SNPs. In this orientation,
28 | tracks may be added above the genetic map.
29 |
30 | ## Installation
31 |
32 | ```{r,eval=FALSE}
33 | # Install the latest release version from CRAN and the
34 | # imported/suggested BioConductor packages with
35 | install.packages("LDheatmap")
36 | source("https://bioconductor.org/biocLite.R")
37 | biocLite(c("snpStats","rtracklayer","GenomicRanges","GenomInfoDb","IRanges"))
38 |
39 | # Install the latest development version from GitHub with
40 | devtools::install_github("SFUStatgen/LDheatmap")
41 | ```
42 |
43 |
44 | ## Homepage
45 |
46 | https://sfustatgen.github.io/LDheatmap/index.html
47 |
48 |
--------------------------------------------------------------------------------
/man/CEUSNP.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/CEUDataRd.R
3 | \docType{data}
4 | \name{CEUSNP}
5 | \alias{CEUSNP}
6 | \alias{CEUDist}
7 | \alias{hapmapCEU}
8 | \title{Example data set for LDheatmap}
9 | \format{
10 | CEUSNP: A dataframe of SNP genotypes.
11 | Each row represents an individual.
12 | Each column represents a SNP.
13 |
14 | CEUDist: A vector of integers, representing SNP physical map locations on the chromosome.
15 | }
16 | \source{
17 | International HapMap Project \url{ftp://ftp.ncbi.nlm.nih.gov/hapmap/}
18 | }
19 | \usage{
20 | data(CEUSNP); data(CEUDist)
21 | }
22 | \description{
23 | CEUSNP: Genotypes on 15 SNPs for 60 people
24 |
25 | CEUDist: Physical map positions of the 15 SNPs in CEUSNP
26 | }
27 | \details{
28 | Data on SNPs with minor allele frequency greater
29 | than 5\% from a 9kb region of chromosome 7 (base positions 126273659
30 | through 126282556 from release 7 of the International HapMap Project).
31 | Genotypes from 30 parent-offspring trios (both
32 | parents, one offspring) were obtained.
33 | The 30 trios are taken from the so-called CEPH families, a set of
34 | multi-generational families from Utah with ancestry from northern and
35 | western Europe. From this set of 90 people, 60 parents were extracted.
36 | }
37 | \examples{
38 | data(CEUData)
39 | }
40 | \references{
41 | The International HapMap Consortium. A haplotype map of
42 | the human genome. Nature 437, 1299-1320. 2005.
43 | }
44 | \keyword{datasets}
45 |
--------------------------------------------------------------------------------
/man/recombRate.Rd:
--------------------------------------------------------------------------------
1 | % Generated by roxygen2: do not edit by hand
2 | % Please edit documentation in R/recombRate.R
3 | \name{recombRate}
4 | \alias{recombRate}
5 | \title{Produce recombination rate plot.}
6 | \usage{
7 | recombRate(minRange, maxRange, chromosome, genome = "hg19", vp = viewport(x = 0,
8 | y = 0.99, height = 0.04, just = c("left", "top")), view = "dense")
9 | }
10 | \arguments{
11 | \item{minRange}{The sequence minimum range in base pairs.}
12 |
13 | \item{maxRange}{The sequence maximum range in base pairs.}
14 |
15 | \item{chromosome}{A character string identifying the chromosome.}
16 |
17 | \item{genome}{The genome assembly to use. The default is hg19, the most recent human genome assembly on
18 | the UCSC genome browser.}
19 |
20 | \item{vp}{A \code{viewport}.}
21 |
22 | \item{view}{Display mode. Possible values are \code{"dense"} (the default), \code{"squish"},
23 | \code{"pack"} and \code{"full"}.}
24 | }
25 | \value{
26 | A \code{grob} representing recombination rates.
27 | }
28 | \description{
29 | Plot average rates of recombination from the deCODE genetic map for a specified genetic sequence.
30 | }
31 | \examples{
32 | \donttest{
33 | grid::grid.newpage()
34 | recombRate(129000000, 140000000, "chr7", "hg18")
35 | grid::grid.newpage()
36 | grid::pushViewport(grid::viewport(width=0.8, x=0.2, just="left"))
37 | recombRate(129000000, 140000000, "chr7", "hg18", view="full")
38 | grid::popViewport()
39 | }
40 | }
41 | \references{
42 | \url{http://genome.ucsc.edu/cgi-bin/hgTrackUi?g=recombRate}
43 | }
44 | \author{
45 | Sigal Blay GIMAP5CEU.RdSNP genotypes on HapMap founders from the CEU population 101 | for SNPs spanning the GIMAP5 gene.
102 | 103 |data(GIMAP5.CEU)106 | 107 |
GIMAP5.CEU is a list with two elements: snp.data and snp.support.
110 | snp.data is a snp.matrix
111 | object containing the SNP genotypes. Rows correspond to
112 | subjects and columns correspond to SNPs.
113 | snp.support is a data frame with the following columns:
| [,1] | dbSNPalleles | character | alleles at each SNP |
| [,2] | Assignment | character | same as dbSNPalleles |
| [,3] | Chromosome | character | chromosome (chr7 for all) |
| [,4] | Position | numeric | physical position |
SNP genotypes from HapMap release 27 123 | for SNPs in a 10KB region spanning 124 | the GIMAP5 gene. Data are on founders from the CEU population, 125 | described as Utah residents with Northern and Western European ancestry 126 | from the CEPH collection. 127 | Only those SNPs with minor allele frequency greater 128 | than 5% in all populations were retained. 129 | The base positions are from NCBI build 36 130 | (UCSC genome hg18).
131 | 132 |International HapMap Project www.hapmap.org
135 | 136 |The International HapMap Consortium. A haplotype map of 139 | the human genome. Nature 437, 1299-1320. 2005.
140 | 141 |150 |require(snpStats) # for the SnpMatrix data structure 148 | data(GIMAP5.CEU) 149 | LDheatmap(GIMAP5.CEU$snp.data,GIMAP5.CEU$snp.support$Position)
CEUData.RdCEUSNP: Genotypes on 15 SNPs for 60 people
136 |CEUDist: Physical map positions of the 15 SNPs in CEUSNP
137 | 138 |data(CEUData)141 | 142 |
CEUSNP: A dataframe of SNP genotypes. 145 | Each row represents an individual. 146 | Each column represents a SNP.
147 |CEUDist: A vector of integers, representing SNP physical map locations on the chromosome.
148 | 149 |International HapMap Project www.hapmap.org
152 | 153 |Data on SNPs with minor allele frequency greater 156 | than 5% from a 9kb region of chromosome 7 (base positions 126273659 157 | through 126282556 from release 7 of the International HapMap Project). 158 | Genotypes from 30 parent-offspring trios (both 159 | parents, one offspring) were obtained. 160 | The 30 trios are taken from the so-called CEPH families, a set of 161 | multi-generational families from Utah with ancestry from northern and 162 | western Europe. From this set of 90 people, 60 parents were extracted.
163 | 164 |The International HapMap Consortium. A haplotype map of 167 | the human genome. Nature 437, 1299-1320. 2005.
168 | 169 | 170 |172 |data(CEUData)
LDheatmap.addGrob.RdAdd a graphical object to an LDheatmap plot such that the x-axis corresponds 136 | to the physical map on the heatmap.
137 | 138 |LDheatmap.addGrob(LDheatmap, grob, height = 0.2)141 | 142 |
| LDheatmap | 147 |An object of class LDheatmap. |
148 |
|---|---|
| grob | 151 |A graphical object of class |
152 |
| height | 155 |The height of the viewport in which the grob will be placed. |
156 |
An object of class LDheatmap given as an argument, with the grob
162 | LDheatmapGrob modified to inclue the new child grob.
173 |# Add an empty rectangle frame 171 | data(GIMAP5.CEU) 172 | ll<-LDheatmap(GIMAP5.CEU$snp.data,GIMAP5.CEU$snp.support$Position,flip=TRUE)
105 | LDheatmap() is used to produce a graphical display, as a heat map, of pairwise linkage disequilibrium (LD) measurements for SNPs. The heat map is a false color image in the upper-left diagonal of a square plot. A line parallel to the diagonal of the image indicating the physical or genetic map positions of the SNPs may be added, along with text reporting the total length of the genomic region considered. Users may also display the heatmap “flipped” below a horizontal line indicating the map positions of the SNPs. In this orientation, tracks may be added above the genetic map.
# Install the latest release version from CRAN and the
112 | # imported/suggested BioConductor packages with
113 | install.packages("LDheatmap")
114 | source("https://bioconductor.org/biocLite.R")
115 | biocLite(c("snpStats","rtracklayer","GenomicRanges","GenomInfoDb","IRanges"))
116 |
117 | # Install the latest development version from GitHub with
118 | devtools::install_github("SFUStatgen/LDheatmap")recombRate.RdPlot average rates of recombination from the deCODE genetic map for a specified genetic sequence.
135 | 136 |recombRate(minRange, maxRange, chromosome, genome = "hg19", vp = viewport(x = 0, 139 | y = 0.99, height = 0.04, just = c("left", "top")), view = "dense")140 | 141 |
| minRange | 146 |The sequence minimum range in base pairs. |
147 |
|---|---|
| maxRange | 150 |The sequence maximum range in base pairs. |
151 |
| chromosome | 154 |A character string identifying the chromosome. |
155 |
| genome | 158 |The genome assembly to use. The default is hg19, the most recent human genome assembly on 159 | the UCSC genome browser. |
160 |
| vp | 163 |A |
164 |
| view | 167 |Display mode. Possible values are |
169 |
A grob representing recombination rates.
http://genome.ucsc.edu/cgi-bin/hgTrackUi?g=recombRate
179 | 180 | 181 |# NOT RUN { 183 | grid.newpage() 184 | recombRate(129000000, 140000000, "chr7", "hg18") 185 | grid.newpage() 186 | pushViewport(viewport(width=0.8, x=0.2, just="left")) 187 | recombRate(129000000, 140000000, "chr7", "hg18", view="full") 188 | popViewport() 189 | # }190 |