Package cgh. R topics documented: February 19, 2015

Similar documents
Package cumseg. February 19, 2015

Package TilePlot. February 15, 2013

Package texteffect. November 27, 2017

Package SCVA. June 1, 2017

Package genelistpie. February 19, 2015

Package cwm. R topics documented: February 19, 2015

Package SMAP. R topics documented: June 19, 2018

Package hbm. February 20, 2015

Package polyphemus. February 15, 2013

Package gibbs.met. February 19, 2015

Package GenSA. R topics documented: January 17, Type Package Title Generalized Simulated Annealing Version 1.1.

Package ssd. February 20, Index 5

Package CINID. February 19, 2015

Package gsalib. R topics documented: February 20, Type Package. Title Utility Functions For GATK. Version 2.1.

Package clusterrepro

Package Mondrian. R topics documented: March 4, Type Package

Package mrm. December 27, 2016

Package HMRFBayesHiC

Package areaplot. October 18, 2017

Package kirby21.base

Package reval. May 26, 2015

Package RankAggreg. May 15, 2018

Package datasets.load

Package TilePlot. April 8, 2011

Package subtype. February 20, 2015

Package madsim. December 7, 2016

Package sglr. February 20, 2015

Package rplotengine. R topics documented: August 8, 2018

Package qicharts. October 7, 2014

Package readmzxmldata

Package MTLR. March 9, 2019

Package ArrayBin. February 19, 2015

Package Rramas. November 25, 2017

Package mixphm. July 23, 2015

Package rocc. February 20, 2015

Package RAPIDR. R topics documented: February 19, 2015

Package Numero. November 24, 2018

Package preprosim. July 26, 2016

Package NormalGamma. February 19, 2015

Package condir. R topics documented: February 15, 2017

Package Combine. R topics documented: September 4, Type Package Title Game-Theoretic Probability Combination Version 1.

Package InPosition. R topics documented: February 19, 2015

Package GLDreg. February 28, 2017

Package JOP. February 19, 2015

Package panelview. April 24, 2018

Package EMDomics. November 11, 2018

Package Hotelling. February 15, 2013

The supclust Package

Package gains. September 12, 2017

Package RYoudaoTranslate

The crosshybdetector Package

Package nplr. August 1, 2015

The bcp Package. February 8, 2009

Package DPBBM. September 29, 2016

Package MIICD. May 27, 2017

Package longitudinal

Package ICSOutlier. February 3, 2018

Package ebdbnet. February 15, 2013

Package CuCubes. December 9, 2016

Package superbiclust

Package anesrake. April 28, 2018

Package CSclone. November 12, 2016

Package RobustRankAggreg

Package esabcv. May 29, 2015

Package EFS. R topics documented:

Package compeir. February 19, 2015

Package NetCluster. R topics documented: February 19, Type Package Version 0.2 Date Title Clustering for networks

Package mpm. February 20, 2015

Package sciplot. February 15, 2013

Package detectruns. February 6, 2018

Package rgcvpack. February 20, Index 6. Fitting Thin Plate Smoothing Spline. Fit thin plate splines of any order with user specified knots

Package arulesnbminer

Package imgur. R topics documented: December 20, Type Package. Title Share plots using the imgur.com image hosting service. Version 0.1.

Package marqlevalg. February 20, 2015

Package RTConnect. R topics documented: February 19, 2015

Package lga. R topics documented: February 20, 2015

Package saascnv. May 18, 2016

Package ScoreGGUM. February 19, 2015

Package beast. March 16, 2018

Package CMPControl. February 19, 2015

Package nscancor. February 15, 2018

Package pca3d. February 17, 2017

Package hiernet. March 18, 2018

Package munfold. R topics documented: February 8, Type Package. Title Metric Unfolding. Version Date Author Martin Elff

Package dyncorr. R topics documented: December 10, Title Dynamic Correlation Package Version Date

Package EMC. February 19, 2015

Package EnQuireR. R topics documented: February 19, Type Package Title A package dedicated to questionnaires Version 0.

Package MmgraphR. R topics documented: September 14, Type Package

Package eulerian. February 19, Index 5

Package bdots. March 12, 2018

Package optimus. March 24, 2017

Package IntNMF. R topics documented: July 19, 2018

Package rococo. August 29, 2013

Package robustreg. R topics documented: April 27, Version Date Title Robust Regression Functions

Package robets. March 6, Type Package

Package emma. February 15, 2013

Package Rcsdp. April 25, 2016

Package CorrectOverloadedPeaks

Package hsiccca. February 20, 2015

Package parfossil. February 20, 2015

Transcription:

Package cgh February 19, 2015 Version 1.0-7.1 Date 2009-11-20 Title Microarray CGH analysis using the Smith-Waterman algorithm Author Tom Price <t0mpr1c3@gmail.com> Maintainer Tom Price <t0mpr1c3@gmail.com> Depends R (>= 2.6.0) Functions to analyze microarray comparative genome hybridization data using the Smith-Waterman algorithm LazyLoad Yes License GPL (>= 2) URL http://sgdp.iop.kcl.ac.uk/tprice/software.html Repository CRAN Date/Publication 2010-05-07 16:10:28 NeedsCompilation yes R topics documented: sw.............................................. 2 sw.perm.test......................................... 3 sw.plot............................................ 4 sw.rob............................................ 6 sw.threshold......................................... 7 Index 9 1

2 sw sw Perform the Smith-Waterman Algorithm Perform the Smith-Waterman algorithm on a vector of real values. sw(x, max.nislands = NULL, trace = FALSE) x max.nislands trace a vector of real values the number of iterations of the algorithm performed. Each iteration finds the next highest-scoring island of positive values. Set to NULL to find all islands print verbose output if TRUE Details Value The Smith-Waterman algorithm detects islands of positive scores in a vector of real values. The input values should have a negative mean. The algorithm can be used to identify regions of copy number change in microarray fluorescence logratios, once the logratios have been adjusted for sign and a suitable threshold value subtracted to ensure a negative mean: see sw.threshold x s score start length the input vector a numeric vector containing the partial sums after one iteration of the Smith- Waterman algorithm a numeric vector of island scores a numeric vector of indices identifying the start of each island a numeric vector of island lengths Smith TF, Waterman MS. Identification of common molecular subsequences. J Mol Biol. 1981;147(1):195-7.

sw.perm.test 3 sw.threshold sw.perm.test sw.rob sw.plot x <- sw.threshold(logratio, function(x) median(x) +.2 * mad(x), sign = -1) ## perform Smith-Waterman algorithm sw(x, trace = TRUE) sw.perm.test Permutation Test for Smith-Waterman Algorithm Perform a permutation test of island scores from the Smith-Waterman algorithm. sw.perm.test(x, max.nislands = 1, niter = 1000, seed = NULL, trace = FALSE) x max.nislands niter seed trace a vector of real values number of iterations of the algorithm, each iteration finding the next highestscoring island of positive values, or NULL to find all islands number of permutations of the input data used in the test seed for the random number generator, or NULL to use a faster random number generator that cannot be seeded print verbose output if TRUE Value A vector of probability values, calculated as the proportion of instances for which performing the Smith-Waterman algorithm on random permutations of the data identifies a higher-scoring island than the islands identified when the algorithm is performed on the original data

4 sw.plot sw x <- sw.threshold(logratio, function(x) median(x) +.2 * mad(x), -1) ## perform Smith-Waterman sw(x) ## perform permutation test on the islands identified sw.perm.test(x, max.nislands = NULL, niter= 1e4) sw.plot Plot Results of Smith-Waterman Algorithm This function plots the sign-adjusted logratios by their chromosomal location. It can superimpose the location of the highest-scoring island found by the Smith-Waterman algorithm, the results of a robustness analysis, and the expected logratios based on known copy numbers in the test DNA. sw.plot(logratio, location = seq(length(logratio)), threshold.func = function(x) median(x) +.2 * mad(x), sign = -1, highest = TRUE, expected = NULL, rob = NULL, legend = TRUE, xlab = "Chromosomal location", ylab = "Intensity log ratio",...) logratio a vector of logratios, not adjusted for sign or threshold location a vector of chromosomal locations corresponding to the log ratios threshold.func threshold function: see sw.threshold

sw.plot 5 sign sign of logratio adjustment: see sw.threshold highest plot location of highest-scoring island if TRUE expected a vector of expected copy numbers, or NULL rob a vector of robustness scores, or NULL legend plot legend if TRUE xlab X axis label ylab Y axis label... other arguments passed to the plot function sw sw.threshold sw.perm.test sw.rob x <- sw.threshold(logratio, function(x) median(x) +.2 * mad(x), -1) ## perform permuation test for islands identified p <- sw.perm.test(x, max.nislands = NULL, niter = 1e4) ## calculate robustness scores r <- sw.rob(x) ## plot results sw.plot(logratio, seq(length(logratio)), function(x) median(x) +.2 * mad(x), sign = -1, rob = r, main = paste("toy dataset, highest-scoring island p =", p[1]))

6 sw.rob sw.rob Robustness Calculation for Smith-Waterman Algorithm Calculate robustness scores to evaluate how sensitive to the threshold value is the localisation of the highest-scoring island identified by the Smith-Waterman algorithm sw.rob(x, lo.func = function(x) median(x), hi.func = function(x) median(x) +.4 * mad(x), prec = 100) x lo.func hi.func prec a vector of real values a function for the lowest threshold value a function for the highest threshold value the precision of the calculation. Details Value This function performs a sensitivity analysis to determine the robustness the localisation of the highest-scoring island obtained by the Smith-Waterman algorithm to different values of the threshold. The Smith-Waterman algorithm is run repeatedly, each time using a different threshold value. The range of threshold values used is that obtained by dividing ( lo.func(x), hi.func(x) ) into prec equal intervals. The robustness is calculated as the proportion of times that a particular chromosomal location falls within the highest-scoring island. A vector of robustness values equal in length to the input vector. sw

sw.threshold 7 x <- sw.threshold(logratio, function(x) median(x) +.2 * mad(x), -1) ## calculate robustness values sw.rob(x) sw.threshold Threshold function Function to adjust intensity logratios for sign and threshold before performing the Smith-Waterman Algorithm. sw.threshold(logratio, threshold.func = function(x) median(x) +.2 * mad(x), sign = +1) logratio a vector of real values, corresponding to fluorescence intensity logratios threshold.func function for calculating threshold sign Details Value sign of logratio adjustment The purpose of this function is to adjust the microarray fluorescence intensity logratios to ensure that they have the appropriate sign and a mean that is less than zero. sign = +1 is used to detect polysomy (regions of copy number change increase) in test:control logratios. Conversely, sign = -1 is used inverting the sign of the logratios to detect deletions (regions of copy number decrease). A threshold, calculated using the threshold function, is subtracted from the sign-adjusted logratios to ensure that they have a negative mean. The default threshold function is equal to the median, plus a small contant multiplied by a robust estimator of the standard deviation. A numeric vector equal to sign * logratio - threshold.func( sign * logratio )

8 sw.threshold sw x <- sw.threshold(logratio, function(x) median(x) +.2 * mad(x), sign = -1) ## perform Smith-Waterman algorithm sw(x, trace = TRUE)

Index Topic misc sw, 2 sw.perm.test, 3 sw.plot, 4 sw.rob, 6 sw.threshold, 7 sw, 2, 4 6, 8 sw.perm.test, 3, 3, 5 sw.plot, 3, 4 sw.rob, 3, 5, 6 sw.threshold, 2 5, 7 9