CNVplot

April 5, 2017 ยท View on GitHub

Plot CNV data with a genome viewer in R.

alt text

Brandler, W. M., Antaki, D., & Gujral, M. (2015). Frequency and complexity of de novo structural mutation in autism. Am J Hum Genet. doi:10.1101/030270

Installation

Install in R with devtools

install.packages("devtools")
library(devtools)
install_github("dantaki/CNVplot")

Usage

CNVplot(df,Start,End,copyNumber,genome,title,yLabel)

Arguments

ARGDescription
dfInput data frame: See Inputs for formatting requirements
StartStart position of the CNV
EndEnd position of the CNV
copyNumberCopy number state. Deletion arguments: DEL,del,<2. Duplication arguments: DUP,dup,>2
genomeReference genome build either hg19 or hg38
titleTitle of the plot
yLabelY label

Inputs

  • Single individual
CHROMPOSITIONSAMPLE_DATA
chr81000-0.56
chr810230.12
  • Trio
CHROMPOSITIONPROBANDMOTHERFATHER
chr81000-0.560.13-0.43
chr810230.12-0.630.26

Author:

Acknowledgements:

License

MIT License

Copyright (c) 2016 Danny Antaki

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.