Skip to content

Commit

Permalink
Merge branch 'master' into devel
Browse files Browse the repository at this point in the history
* master: (860 commits)
  selective ggplot2 import
  typos and spaces
  fixed typos in Rd files
  readMSnSet2 now also accepts a data.frame as input
  no empty new line
  new devel version
  Fix bug preventing to write MS1 to mgf (fixes issue #73 reported by meowcat)
  remove spurious call to browser
  note on sort(i) in pSet,[
  fix missing paren
  feature names testing
  new sampleNames<- for pSet/MSnExp objects
  new devel version
  bump version and update NEWS to document latest PRs
  change spectrum order to natural sorting (add missing MS2 level); #69
  change spectrum order to natural sorting
  upate style
  update news
  rewrite featureCV
  add colSd to calculate sd column-wise
  ...

From: Laurent <[email protected]>

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MSnbase@113063 bc3139a8-67e5-0310-9ffc-ced21a209358
  • Loading branch information
Laurent Gatto committed Jan 29, 2016
1 parent 928ab18 commit 761a004
Show file tree
Hide file tree
Showing 7 changed files with 86 additions and 33 deletions.
31 changes: 30 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,39 @@ import(Biobase)
import(mzR)
import(impute)

import(ggplot2)
import(lattice)
import(methods)

importFrom(ggplot2,
geom_histogram,
geom_text,
geom_line,
geom_point,
geom_bar,
geom_freqpoly,
geom_vline,
geom_rect,
geom_raster,
theme,
theme_gray,
element_text,
element_blank,
element_rect,
ggplot,
ggtitle,
xlab,
ylab,
labs,
aes,
annotate,
scale_colour_hue,
scale_fill_gradient2,
scale_fill_gradient,
scale_x_continuous,
scale_x_log10,
coord_cartesian,
facet_grid)

import(reshape2) ## try to reduce this

importFrom(MALDIquant, binPeaks) ## only using ::: functions
Expand Down
15 changes: 8 additions & 7 deletions man/commonFeatureNames.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion man/featureCV.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/nQuants.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

60 changes: 41 additions & 19 deletions man/readMSnSet.Rd
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@
\title{ Read 'MSnSet' }

\description{

This function reads data files to generate an
\code{\linkS4class{MSnSet}} instance. It is a wrapper around Biobase's
\code{\link{readExpressionSet}} function with an additional
\code{featureDataFile} parameter to include feature data.
\code{\linkS4class{MSnSet}} instance. It is a wrapper around
\code{Biobase}'s \code{\link{readExpressionSet}} function with an
additional \code{featureDataFile} parameter to include feature data.
See also \code{\link{readExpressionSet}} for more details.
\code{readMSnSet2} is a simple version that takes a single
text spreadsheet as input and extracts the expression data
and feature meta-data to create and \code{MSnSet}.
\code{readMSnSet2} is a simple version that takes a single text
spreadsheet as input and extracts the expression data and feature
meta-data to create and \code{MSnSet}.
}
\usage{
Expand All @@ -38,8 +40,10 @@ readMSnSet2(file, ecol, fnames, ...)
}
\arguments{
Arguments direclty passed to \code{readExpressionSet}. The description
is from the \code{readExpressionSet} documentation page.
\item{exprsFile}{(character) File or connection from which to read
expression values. The file should contain a matrix with rows as
features and columns as samples. \code{\link{read.table}} is called
Expand Down Expand Up @@ -84,19 +88,33 @@ readMSnSet2(file, ecol, fnames, ...)
data. }
Arguments for \code{readMSnSet2}:
\item{file}{A \code{character} indicating the spreadsheet
file. Default is to read the file as a comma-separated values
(csv). If different, use the additional arguments, passed to
\code{\link{read.csv}}, to parametrise file import.}
\item{file}{A \code{character} indicating the spreadsheet file or a
\code{data.frame} (new in version 1.19.8). Default, when \code{file}
is a \code{character}, is to read the file as a comma-separated
values (csv). If different, use the additional arguments, passed to
\code{\link{read.csv}}, to parametrise file import.
Passing a \code{data.frame} can be particularly useful if the
spreadsheet is in Excel format. The appropriate sheet can first be
read into R as a \code{data.frame} using, for example
\code{readxl::read_excel}, and then pass it to \code{readMSnSet2}.
}
\item{ecol}{A \code{numeric} indicating the indices of the columns to
be used as expression values. Can also be a \code{character}
indicating the names of the columns. Caution must be taken of the
column names are composed of special characters like '(' or '-' that
will be converted to a '.'. If \code{ecol} does not match, the error
message will dispay the column names are see by \code{R}.
}
indicating the names of the columns. Caution must be taken if the
column names are composed of special characters like \code{(} or
\code{-} that will be converted to a \code{.}. If \code{ecol} does
not match, the error message will dislpay the column names are see
by \code{R}. }
\item{fnames}{An optional \code{character} indicating the column to be
used as feature names. }
}
Expand All @@ -107,10 +125,12 @@ readMSnSet2(file, ecol, fnames, ...)
}
\seealso{
The \code{\link{grepEcols}} and \code{\link{getEcols}} helper
functions to identify the \code{ecol} values.
The \code{MSnbase-io} vignette illustrates these functions in
detail. It can accessed with \code{vignette("MSnbase-io")}.
functions to identify the \code{ecol} values. The \code{MSnbase-io}
vignette illustrates these functions in detail. It can be accessed
with \code{vignette("MSnbase-io")}.
}
\examples{
Expand All @@ -120,7 +140,9 @@ fdatafile <- "path_to_featuredata_file.csv"
pdatafile <- "path_to_sampledata_file.csv"
## Read ExpressionSet with appropriate parameters
res <- readMSnSet(exprsFile, pdataFile, fdataFile, sep = "\t", header=TRUE)
}}
}
}
\keyword{file}
\keyword{manip}
2 changes: 1 addition & 1 deletion man/selectFeatureData.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/writeMzTabData.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 761a004

Please sign in to comment.