Package geneslope. October 26, 2016

Similar documents
Package ECctmc. May 1, 2018

Package datasets.load

Package weco. May 4, 2018

Package fastdummies. January 8, 2018

Package quickreg. R topics documented:

Package barcoder. October 26, 2018

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package benchmarkme. R topics documented: February 26, Type Package Title Crowd Sourced System Benchmarks Version 0.2.

Package PedCNV. February 19, 2015

Package canvasxpress

Package CorporaCoCo. R topics documented: November 23, 2017

Package svalues. July 15, 2018

Package lumberjack. R topics documented: July 20, 2018

Package validara. October 19, 2017

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package gtrendsr. October 19, 2017

Package robotstxt. November 12, 2017

Package RNAseqNet. May 16, 2017

Package balance. October 12, 2018

Package detectruns. February 6, 2018

Package bisect. April 16, 2018

Package SNPediaR. April 9, 2019

Package profvis. R topics documented:

Package snplist. December 11, 2017

Package edfreader. R topics documented: May 21, 2017

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package preprosim. July 26, 2016

Package projector. February 27, 2018

Package vinereg. August 10, 2018

Package geogrid. August 19, 2018

Package sfc. August 29, 2016

Package signalhsmm. August 29, 2016

Package semisup. March 10, Version Title Semi-Supervised Mixture Model

Package ClusterSignificance

Package lodgwas. R topics documented: November 30, Type Package

Package queuecomputer

Package ASICS. January 23, 2018

Package mgc. April 13, 2018

Package fastqcr. April 11, 2017

Package GetITRData. October 22, 2017

Package gtrendsr. August 4, 2018

Package cregulome. September 13, 2018

Package fusionclust. September 19, 2017

Package docxtools. July 6, 2018

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package widyr. August 14, 2017

Package ridge. R topics documented: February 15, Title Ridge Regression with automatic selection of the penalty parameter. Version 2.

Package rtext. January 23, 2019

Package OLScurve. August 29, 2016

Package ggseas. June 12, 2018

Package clipr. June 23, 2018

Package effectr. January 17, 2018

Package modmarg. R topics documented:

Package editdata. October 7, 2017

Package colf. October 9, 2017

Package pairsd3. R topics documented: August 29, Title D3 Scatterplot Matrices Version 0.1.0

Package reval. May 26, 2015

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package GetHFData. November 28, 2017

Package strat. November 23, 2016

Package FitHiC. October 16, 2018

Package kirby21.base

Package rnn. R topics documented: June 21, Title Recurrent Neural Network Version 0.8.1

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package qualmap. R topics documented: September 12, Type Package

Package calpassapi. August 25, 2018

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package catenary. May 4, 2018

Package mdftracks. February 6, 2017

Package gppm. July 5, 2018

Package manet. September 19, 2017

Package pdfsearch. July 10, 2018

Package fitbitscraper

Package cosinor. February 19, 2015

Package WordR. September 7, 2017

Package epitab. July 4, 2018

Package linkspotter. July 22, Type Package

Package SMAT. January 29, 2013

Package QCAtools. January 3, 2017

Package messaging. May 27, 2018

Package GEM. R topics documented: January 31, Type Package

Package climber. R topics documented:

Package optimus. March 24, 2017

Package RODBCext. July 31, 2017

Package bayesdp. July 10, 2018

Package milr. June 8, 2017

Package dalmatian. January 29, 2018

Package pcr. November 20, 2017

Package splithalf. March 17, 2018

Package omu. August 2, 2018

Package rollply. R topics documented: August 29, Title Moving-Window Add-on for 'plyr' Version 0.5.0

Package jstree. October 24, 2017

Package marinespeed. February 17, 2017

Package jpmesh. December 4, 2017

Package gifti. February 1, 2018

Package deductive. June 2, 2017

Package ClusterBootstrap

Package MEAL. August 16, 2018

Package internetarchive

Package facerec. May 14, 2018

Transcription:

Type Package Package geneslope October 26, 2016 Title Genome-Wide Association Study with SLOPE Version 0.37.0 Date 2016-10-26 Genome-wide association study (GWAS) performed with SLOPE, short for Sorted L-One Penalized Estimation, a method for estimating the vector of coefficients in linear model. In the first step of GWAS, SNPs are clumped according to their correlations and distances. Then, SLOPE is performed on data where each clump has one representative. License GPL-3 URL https://github.com/psobczyk/geneslope BugReports https://github.com/psobczyk/geneslope/issues LazyData TRUE Depends R (>= 3.1.3), SLOPE Imports ggplot2, bigmemory, grid, utils, stats Suggests shiny, knitr, rmarkdown, testthat VignetteBuilder knitr Repository CRAN RoxygenNote 5.0.1 NeedsCompilation no Author Damian Brzyski [aut], Christine Peterson [aut], Emmanuel J. Candes [aut], Malgorzata Bogdan [aut], Chiara Sabatti [aut], Piotr Sobczyk [cre, aut] Maintainer Piotr Sobczyk <piotr.sobczyk@pwr.edu.pl> Date/Publication 2016-10-26 15:43:08 1

2 clumpingresult R topics documented: clumpingresult....................................... 2 clump_snps......................................... 3 geneslope......................................... 4 gui_geneslope...................................... 5 identify_clump....................................... 5 identify_clump.clumpingresult............................... 6 identify_clump.selectionresult............................... 6 phenotypedata....................................... 7 plot.selectionresult..................................... 7 print.clumpingresult.................................... 8 print.phenotypedata..................................... 8 print.screeningresult.................................... 9 print.selectionresult.................................... 9 read_phenotype....................................... 10 screeningresult....................................... 10 screen_snps......................................... 11 selectionresult....................................... 12 select_snps......................................... 13 summary.clumpingresult.................................. 14 summary.phenotypedata.................................. 14 summary.screeningresult.................................. 15 summary.selectionresult.................................. 15 Index 16 clumpingresult clumpingresult class A result of procedure for snp clumping produced by clump_snps Details Always a named list of eleven elements 1. X numeric matrix, consists of one snp representative for each clump 2. y numeric vector, phenotype 3. SNPnumber numeric vector, which columns in SNP matrix X_all are related to clumps representatives 4. SNPclumps list of numeric vectors, which columns in SNP matrix X_all are related to clump members 5. X_info data.frame, mapping information about SNPs from.map file. Copied from the result of screening procedure.

clump_snps 3 6. selectedsnpsnumbers numeric vector, which rows of X_info matrix are related to selected clump representatives 7. X_all numeric matrix, all the snps that passed screening procedure 8. numberofsnps numeric, total number of SNPs before screening procedure 9. selectedsnpsnumbersscreening numeric vector, which rows of X_info data.frame are related to snps that passed screening 10. pvals numeric vector, p-values from marginal tests for each snp 11. pvalmax numeric, p-value used in screening procedure See Also screeningresult clump_snps clump_snps Clumping procedure for SLOPE Clumping procedure performed on SNPs, columns of matrix X, from object of class screeningresult, which is an output of function screen_snps. SNPs are clustered based on their correlations. For details see package vignette. clump_snps(screenresult, rho = 0.5, pvalues = NULL, verbose = TRUE) screenresult rho pvalues verbose object of class screeningresult numeric, minimal correlation between two SNPs to be assigned to one clump numeric vector, p-values for SNPs computed outside geneslope, eg. with EM- MAX logical, if TRUE (default) progress bar is shown Value object of class clumpingresult

4 geneslope geneslope Genome-Wide Association Study with SLOPE Details Package geneslope performes genome-wide association study (GWAS) with SLOPE, short for Sorted L-One Penalized Estimation. SLOPE is a method for estimating the vector of coefficients in linear model. For details about it see references. GWAS is splitted into three steps. In the first step data is read using bigmemory package and immediatly screened using marginal tests for each SNP SNPs are clumped based on their correlations SLOPE is performed on data where each clump has one representative (therefore we ensure that variables in linear model are not strognly correlated) Version: 0.37.0 Author(s) Malgorzata Bogdan, Damian Brzyski, Emmanuel J. Candes, Christine Peterson, Chiara Sabatti, Piotr Sobczyk Maintainer: Piotr Sobczyk <Piotr.Sobczyk@pwr.edu.pl> References SLOPE Adaptive Variable Selection via Convex Optimization, Malgorzata Bogdan, Ewout van den Berg, Chiara Sabatti, Weijie Su and Emmanuel Candes Examples famfile <- system.file("extdata", "plinkphenotypeexample.fam", package = "geneslope") mapfile <- system.file("extdata", "plinkmapexample.map", package = "geneslope") snpsfile <- system.file("extdata", "plinkdataexample.raw", package = "geneslope") phe <- read_phenotype(filename = famfile) screening.result <- screen_snps(snpsfile, mapfile, phe, pvalmax = 0.05, chunksize = 1e2) clumping.result <- clump_snps(screening.result, rho = 0.3, verbose = TRUE) slope.result <- select_snps(clumping.result, fdr=0.1) ## Not run: gui_geneslope() ## End(Not run)

gui_geneslope 5 gui_geneslope GUI for GWAS with SLOPE A graphical user interface for performing Genome-wide Association Study with SLOPE gui_geneslope() Details requires installing shiny package Value null identify_clump identify_clump identify_clump identify_clump(x,...) x appropiate class object... other arguments Details Enable interactive selection of snps in plot. Return clump number.

6 identify_clump.selectionresult identify_clump.clumpingresult Identify clump number in clumpingresult class plot Identify clump number in clumpingresult class plot ## S3 method for class 'clumpingresult' identify_clump(x,...) x clumpingresult class object identify_clump.selectionresult Identify clump number in selectionresult class plot Identify clump number in selectionresult class plot ## S3 method for class 'selectionresult' identify_clump(x,...) x selectionresult class object

phenotypedata 7 phenotypedata phenotypedata class Phenotype data Details Always a named list of two elements 1. y numeric vector, phenotype 2. yinfo data.frame, additional information about observations provied in.fam file See Also read_phenotype plot.selectionresult Plot selectionresult class object Plot selectionresult class object ## S3 method for class 'selectionresult' plot(x, chromosomenumber = NULL, clumpnumber = NULL,...) x selectionresult class object chromosomenumber optional parameter, only selected chromosome will be plotted clumpnumber optional parameter, only SNPs from selected clump will be plotted

8 print.phenotypedata print.clumpingresult Print clumpingresult class object Print clumpingresult class object ## S3 method for class 'clumpingresult' print(x,...) x clumpingresult class object print.phenotypedata Print phenotypedata class object Print phenotypedata class object ## S3 method for class 'phenotypedata' print(x,...) x phenotypedata class object

print.screeningresult 9 print.screeningresult Print function for class screeningresult class Print function for class screeningresult class ## S3 method for class 'screeningresult' print(x,...) x screeningresult class object print.selectionresult Print selectionresult class object Print selectionresult class object ## S3 method for class 'selectionresult' print(x,...) x selectionresult class object Value Nothing.

10 screeningresult read_phenotype Read phenotype from.fam file Reading phenotype data from file. It is assumed, that data is given in.fam file. In this format, first column is family id (FID), second is individual id (IID), third is Paternal individual ID (PAT), fourth is Maternal individual ID (MAT), fifth is SEX and sixth and last is PHENOTYPE. If file has only four columns, then it is assumed that PAT and MAT columns are missing. If there is only one column, then it is assumed that only phenotype is provided. read_phenotype(filename, sep = " ", header = FALSE, stringasfactors = FALSE) Value filename sep character, name of file with phenotype character, field seperator in file header logical, does first row of file contain variables names stringasfactors logical, should character vectors be converted to factors? object of class phenotypedata screeningresult screeningresult class A result of procedure for snp clumping produced by screen_snps Details Always a named list of eight elements 1. X numeric matrix, consists of snps that passed screening 2. y numeric vector, phenotype 3. X_info data.frame, SNP info from.map file 4. pvals numeric vector, p-values from marginal tests for each snp 5. numberofsnps numeric, total number of SNPs in.raw file

screen_snps 11 See Also 6. selectedsnpsnumbers numeric vector, which rows of X_info data.frame are related to snps that passed screening 7. pvalmax numeric, p-value used in screening procedure 8. phenotypeinfo data.frame, additional information about observations provied in phenotypedata object phenotypedata screen_snps screen_snps Reading and screening SNPs from.raw file and Reading.raw file that was previously exported from PLINK - see details. Additional information about SNP mapping is read from.map file. screen_snps(rawfile, mapfile = "", phenotype, pvalmax = 0.05, chunksize = 100, verbose = TRUE) rawfile mapfile phenotype pvalmax chunksize verbose character, name of.raw file character, name of.map file numeric vector or an object of class phenotypedata numeric, p-value threshold value used for screening integer, number of snps that will be processed together. The bigger chunksize is, the faster function works but computer might run out of RAM if TRUE (default) information about progress is printed Details Exporting data from PLINK To import data to R, it needs to be exported from PLINK using the option " recodead" The PLINK command should therefore look like plink --file input --recodead --out output. For more information, please refer to: http://pngu.mgh.harvard.edu/~purcell/plink/dataman. shtml Value object of class screeningresult

12 selectionresult selectionresult selectionresult class Details A result of applying SLOPE to matrix of SNPs obtained by clumping produced. Result of function select_snps See Also Always a named list of eighteen elements 1. X numeric matrix, consists of one snp representative for each clump selected by SLOPE 2. effects numeric vector, coefficients in linear model build on snps selected by SLOPE 3. R2 numeric, value of R-squared in linear model build on snps selected by SLOPE 4. selectedsnps which columns in matrix X_all are related to snps selected by SLOPE 5. y selectedclumps list of numeric vectors, which columns in SNP matrix X_all are related to clump members selected by SLOPE 6. lambda numeric vector, lambda values used by SLOPE procedure 7. y numeric vector, phenotype 8. clumprepresentatives numeric vector, which columns in SNP matrix X_all are related to clumps representatives 9. clumps list of numeric vectors, which columns in SNP matrix X_all are related to clump members 10. X_info data.frame, mapping information about SNPs from.map file. Copied from the result of clumping procedure 11. X_clumps numeric matrix, consists of one snp representative for each clump 12. X_all numeric matrix, all the snps that passed screening procedure 13. selectedsnpsnumbers numeric vector, which rows of X_info data.frame are related to snps that were selected by SLOPE 14. clumpingrepresentativesnumbers numeric vector, which rows of X_info data.frame are related to snps that are clump represenatives 15. screenedsnpsnumbers numeric vector, which rows of X_info data.frame are related to snps that passed screening 16. numberofsnps numeric, total number of SNPs before screening procedure 17. pvalmax numeric, p-value used in screening procedure 18. fdr numeric, false discovery rate used by SLOPE screeningresult clumpingresult select_snps SLOPE

select_snps 13 select_snps GWAS with SLOPE Performs GWAS with SLOPE on given snp matrix and phenotype. At first clumping procedure is performed. Highly correlated (that is stronger than parameter rho) snps are clustered. Then SLOPE is used on snp matrix which contains one representative for each clump. select_snps(clumpingresult, fdr = 0.1, type = c("slope", "smt"), lambda = "gaussian", sigma = NULL, verbose = TRUE) clumpingresult clumpprocedure output fdr, type lambda sigma verbose numeric, False Discovery Rate for SLOPE method for snp selection. slope (default value) is SLOPE on clump representatives, smt is Benjamini-Hochberg procedure on single marker test p-values for clump representatives lambda for SLOPE. See create_lambda numeric, sigma for SLOPE logical, if TRUE progress bar is printed Value object of class selectionresult Examples ## Not run: slope.result <- select_snps(clumping.result, fdr=0.1) ## End(Not run)

14 summary.phenotypedata summary.clumpingresult Summary clumpingresult class object Summary clumpingresult class object ## S3 method for class 'clumpingresult' summary(object,...) object clumpingresult class object summary.phenotypedata Summary phenotypedata class object Summary phenotypedata class object ## S3 method for class 'phenotypedata' summary(object,...) object phenotypedata class object

summary.screeningresult 15 summary.screeningresult Summary function for class screeningresult Summary function for class screeningresult ## S3 method for class 'screeningresult' summary(object,...) object screeningresult class object summary.selectionresult Summary selectionresult class object Summary selectionresult class object ## S3 method for class 'selectionresult' summary(object, clumpnumber = NULL,...) object clumpnumber selectionresult class object number of clump to be summarized

Index bigmemory, 4 clump_snps, 2, 3, 3 clumpingresult, 2, 3, 12 create_lambda, 13 geneslope, 4 geneslope-package (geneslope), 4 gui_geneslope, 5 identify_clump, 5 identify_clump.clumpingresult, 6 identify_clump.selectionresult, 6 phenotypedata, 7, 11 plot.selectionresult, 7 print.clumpingresult, 8 print.phenotypedata, 8 print.screeningresult, 9 print.selectionresult, 9 read_phenotype, 7, 10 screen_snps, 3, 10, 11, 11 screeningresult, 3, 10, 11, 12 select_snps, 12, 13 selectionresult, 12, 13 shiny, 5 SLOPE, 4, 12 summary.clumpingresult, 14 summary.phenotypedata, 14 summary.screeningresult, 15 summary.selectionresult, 15 16