R: Produce Smoothed Sense/Anti-sense For All Chromosomes
Makesense
R Documentation
Produce Smoothed Sense/Anti-sense For All Chromosomes
Description
'Makesense' takes either an ExpressionSet object or a matrix
of gene expressions and will produce a smoothed positive and negative strands
for all chromosomes.
Usage
Makesense(expr, lib, ...)
Arguments
expr
Either an ExpressionSet or a matrix of
gene expressions with genes as rows and columns as samples.
lib
The name of the Bioconductor annotation data package that
will be used to provide mappings from probes to chromosomal
locations, such as hgu95av2.db or hgu133a.db. If
expr is an ExpressionSet, the argument defaults to the
annotation slot of the ExpressionSet.
...
Currently, the only optional argument is f, the
smoother span to be passed to 'lowess'. Its value should
be in the interval of (0,1). This gives the proportion of points in
the plot which influence the smooth at each value. Larger values
give more smoothness. The default value for this argument is 1/10.
Details
The expr argument can either be of class ExpressionSet or
matrix, where the latter represents the matrix of gene
expressions.
If the expr argument is an ExpressionSet, the lib
argument will use the annotation slot. Users can override this
behaviour and supply their own lib argument if they wish. If
the ExpressionSet has no value associated with the annotation
slot (which should not happen, but is possible) then the user must
supply the lib argument manually or the function will throw an
error.
Value
A list of 2 components:
ans2
a list, whose components correspond to samples
in the same order as appearing in the columns of
'expr'. Each component is also a list, named by chromosomes
"1"-"22", "X" and "Y". Each named component is again a list
with two elements named "posS" and "negS", corresponding to the
positive and negative strands of a chromosome, each of which is an object returned by 'lowess'.
lib
A string giving the name of the annotation data package to
use. Optional if expr is an ExpressionSet.
R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> library(geneplotter)
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, cbind, colnames, do.call, duplicated, eval, evalq,
get, grep, grepl, intersect, is.unsorted, lapply, lengths, mapply,
match, mget, order, paste, pmax, pmax.int, pmin, pmin.int, rank,
rbind, rownames, sapply, setdiff, sort, table, tapply, union,
unique, unsplit
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Loading required package: lattice
Loading required package: annotate
Loading required package: AnnotationDbi
Loading required package: stats4
Loading required package: IRanges
Loading required package: S4Vectors
Attaching package: 'S4Vectors'
The following objects are masked from 'package:base':
colMeans, colSums, expand.grid, rowMeans, rowSums
Loading required package: XML
> png(filename="/home/ddbj/snapshot/RGM3/R_BC/result/geneplotter/Makesense.Rd_%03d_medium.png", width=480, height=480)
> ### Name: Makesense
> ### Title: Produce Smoothed Sense/Anti-sense For All Chromosomes
> ### Aliases: Makesense Makesense,matrix,character-method
> ### Makesense,ExpressionSet,missing-method
> ### Makesense,ExpressionSet,character-method
> ### Keywords: dplot
>
> ### ** Examples
>
> if (require("hgu133a.db")) {
+ data(expressionSet133a)
+ esetobj <- Makesense(exprs(expressionSet133a), "hgu133a")
+ esetobj2 <- Makesense(expressionSet133a[1:200, ])
+ }
Loading required package: hgu133a.db
Loading required package: org.Hs.eg.db
>
>
>
>
>
> dev.off()
null device
1
>