Title: | Microarray Analysis tool |
---|---|
Description: | genArise is an easy to use tool for dual color microarray data. Its GUI-Tk based environment let any non-experienced user performs a basic, but not simple, data analysis just following a wizard. In addition it provides some tools for the developer. |
Authors: | Ana Patricia Gomez Mayen <[email protected]>,\\ Gustavo Corral Guille <[email protected]>, \\ Lina Riego Ruiz <[email protected]>,\\ Gerardo Coello Coutino <[email protected]> |
Maintainer: | IFC Development Team <[email protected]> |
License: | file LICENSE |
Version: | 1.83.0 |
Built: | 2024-10-30 07:58:30 UTC |
Source: | https://github.com/bioc/genArise |
Extract A values from a Spot.
a.arise(mySpot)
a.arise(mySpot)
mySpot |
Spot object for one microarray. |
List of A-values. (log(cy3, 2) + log(cy5, 2))/2
## read the spot from a file and save it in spot data(Simon) ## Extract A from spot and save in a a <- a.arise(mySpot = Simon)
## read the spot from a file and save it in spot data(Simon) ## Extract A from spot and save in a a <- a.arise(mySpot = Simon)
This function allows to remove from the spot repeated Id's. Before moving one of the repeated Id's the function compute the log ratio of both values with the same Id and delete the least absolute value if both of them are positive or negative. In other case delete both observations.
alter.unique(mySpot)
alter.unique(mySpot)
mySpot |
Spot object for one microarray. |
Spot object without duplicates.
data(Simon) ## filter the spot and save it in f.spot f.spot <- filter.spot(Simon) ## remove duplicates and save it in u.spot u.spot <- alter.unique(f.spot)
data(Simon) ## filter the spot and save it in f.spot f.spot <- filter.spot(Simon) ## remove duplicates and save it in u.spot u.spot <- alter.unique(f.spot)
Auxiliar function of genArise GUI, in this window you can apply operations to original data.
analysis.window(texto, follow.wizard = FALSE, envir, swap)
analysis.window(texto, follow.wizard = FALSE, envir, swap)
texto |
Historial project string |
follow.wizard |
Boolean value, if this argument is TRUE, an data analysis are performed |
envir |
Environment where are the project variables |
swap |
Is this a swap analysis or an individual analysis |
tkwidget
Performed an HTML file
annotations(specie.data, specie, column, symbol, output.file = "annotations.html")
annotations(specie.data, specie, column, symbol, output.file = "annotations.html")
specie.data |
A data frame |
specie |
Name of specie |
column |
Number of column where are the gene name in the data frame |
symbol |
An optional symbol besides GenBank ID |
output.file |
Name of output file |
HTML file with link for each spot in data frame
Auxiliar function of genArise GUI.
back.gui(envir)
back.gui(envir)
envir |
Environment where are the project variables |
tkwidget
This function use the background data to eliminate unwanted effects in signal. The background correction establish the new Cy3 signal as Cy3 - BgCy3 and the new Cy5 as Cy5 - BgCy5.
bg.correct(mySpot)
bg.correct(mySpot)
mySpot |
Spot object for one microarray. |
Spot object with the background correction done.
data(Simon) ## background correction and save it in c.spot c.spot <- bg.correct(Simon)
data(Simon) ## background correction and save it in c.spot c.spot <- bg.correct(Simon)
This package defines the following data classes.
Spot
A class used to store spot data with the following attributes:
Cy3, Cy5, BgCy3, BgCy5, Ids as they are read by read.spot
or obtained from a function that return a spot object.
DataSet
A class used to store spot data with the following attributes: Cy3, Cy5, Ids, Z-score.
Auxiliar function for genAriseGUI. Create the directory's hierarchy of the project.
create.project(project.name, results.file = "Results", graphics.file = "Graphics")
create.project(project.name, results.file = "Results", graphics.file = "Graphics")
project.name |
Project directory name. |
results.file |
Filename of the project result. |
graphics.file |
Filename of the project graphics. |
This function shows the plot of the values from the log Cy3 against log Cy5 intensities that belongs to an object of the Spot class.
cys.plot(mySpot, col = "green")
cys.plot(mySpot, col = "green")
mySpot |
An Spot object |
col |
Color in which the points of the plot will be shown. This argument must be quoted and the possible values it can take are the same from the color funcion in the R base. |
data(Simon) cys.plot(Simon)
data(Simon) cys.plot(Simon)
A simple list-based class for storing red and green channel foreground, z-scores and the Ids.
Objects can be created by calls of the form new("DataSet",sets, type)
where sets
is a list containing Cy3, Cy5, Id and Zscore and
type
is "ri" or "ma".
Objects are normally created by read.spot
.
This class contains no slots (other than .Data
), but objects should contain the following list components:
Cy5 : |
numeric matrix containing the red (cy5) foreground intensities. Rows correspond to spots and columns to arrays. |
Cy3 : |
numeric matrix containing the green (cy3) foreground intensities. |
Id : |
Ids from all the observations. |
Zscore : |
The result of (R - mean) / sd that define an intensity-dependent Z-score threshold to identify differential expression. |
All of these matrices should have the same dimensions.
This class inherits directly from class list
so any operation appropriate for lists will work on objects of this class.
This function keep only array elements with intensities that are 2 standard deviation above background.
filter.spot(mySpot)
filter.spot(mySpot)
mySpot |
Spot object for one microarray. |
Array elements with intensities that are 2 standard deviation above background.
John Quackenbush "Microarray data normalization and transformation". Nature Genetics. Vol.32 supplement pp496-501 (2002)
data(Simon) ## background correction and save it in c.spot c.spot <- bg.correct(Simon) ## normalize spot n.spot <- grid.norm(c.spot, nr = 23, nc = 24) ## filtering the spot filter.spot(n.spot)
data(Simon) ## background correction and save it in c.spot c.spot <- bg.correct(Simon) ## normalize spot n.spot <- grid.norm(c.spot, nr = 23, nc = 24) ## filtering the spot filter.spot(n.spot)
This is the main function and display the GUI of genArise.
genArise()
genArise()
Auxiliar function of genArise GUI, this function show a principal menu of genAriseGUI
genArise.init(envir)
genArise.init(envir)
envir |
Environment where are the project variables |
tkwidget
After we finished our slice analysis we get a up-regulated and down-regulated set. This will be the set of study genes for genMege. Given this set, genMerge retrieves functional genomic data for each gene and provides statistical rank scores for over-representation of particular functions in the dataset.
genMerge(gene.association, description, population.genes, study.genes, output.file = "GenMerge.txt")
genMerge(gene.association, description, population.genes, study.genes, output.file = "GenMerge.txt")
gene.association |
The gene-association file links gene names with a particular datum of information using a shorthand of gene-association IDS |
description |
The description file contains human-readable description of gene-association IDS |
population.genes |
Set of all genes detected on a array |
study.genes |
Set of genes may be those that are up-regulated or down-regulated or both of them. |
output.file |
The name of output file that includes all results obtained after this analisys. |
This function is completly based on GeneMerge from Cristian I. Castillo-Davis and Daniel L. Hartl
Cristian I. Castillo-Davis Department of Statistics Harvard University http://www.oeb.harvard.edu/hartl/lab/publications/GeneMerge
This function get values from an DataSet object.
This is just a function for the GUI, and can not be used in the command line.
get.values(list.values, genes.values, up.down, min.val, max.val)
get.values(list.values, genes.values, up.down, min.val, max.val)
list.values |
Zscore values from DataSet object |
genes.values |
Ids values from DataSet object |
up.down |
If the analysis will be done with "up" or "down" regulated |
min.val |
Minimal value of the range |
max.val |
Maximal value of the range |
An Ids list
Read both files, but only extract the interested columns and create a Spot object.
get.Zscore( spot, name, Zscore.min=NULL, Zscore.max=NULL, all=FALSE, envir)
get.Zscore( spot, name, Zscore.min=NULL, Zscore.max=NULL, all=FALSE, envir)
spot |
a connection or a character string giving the name of the file to read where each column represent the spot components. |
name |
a connection or a character string giving the name of the file to read where each column represent the spot components. |
Zscore.min |
column that represent Cy3. |
Zscore.max |
column that represent Cy5. |
all |
column that represent BgCy3. |
envir |
Environment where are the genArise variables. |
This function normalize R and I values and fit the value of Cy5 from his argument. In this function the normalize algorithm will be applied to all observations to get the lowess factor and then fit Cy5 with this factor. The observations. The observations with values R = 0 are deleted because they have no change in their expression levels.
global.norm(mySpot)
global.norm(mySpot)
mySpot |
A spot object |
A new spot object but normalized, It means with a different Cy5 that is the result of the fit with the lowess factor.
data(Simon) # Background Correction c.spot <- bg.correct(Simon) #Normalized data n.spot <- global.norm(c.spot)
data(Simon) # Background Correction c.spot <- bg.correct(Simon) #Normalized data n.spot <- global.norm(c.spot)
This function show the plot of an spot sobject. This plot are identify with the graphic.type.value
graphic.choose(spot.object, graphic.type)
graphic.choose(spot.object, graphic.type)
spot.object |
An object ob Spot class |
graphic.type |
representative integer of type graphic will be plot |
Plot device
This function normalize R and I values and fit the value of Cy5 for each grid in the spot that it receives as argument. In this function the dimension of grid is (meta-row * meta-column).
grid.norm(mySpot, nr, nc)
grid.norm(mySpot, nr, nc)
mySpot |
Spot object for one microarray. |
nr |
Total of meta-row. |
nc |
Total of meta-column. |
Spot object with the grid normalization done.
data(Simon) ## background correction and save it in c.spot c.spot <- bg.correct(Simon) ## normalization and save it in n.spot n.spot <- grid.norm(c.spot, 23, 24)
data(Simon) ## background correction and save it in c.spot c.spot <- bg.correct(Simon) ## normalization and save it in n.spot n.spot <- grid.norm(c.spot, 23, 24)
Display the help of genArise in the GUI. This is just a function for the GUI, and can not be used in the command line.
help()
help()
Extract I from a Spot.
i.arise(mySpot)
i.arise(mySpot)
mySpot |
Spot object for one microarray. |
List of I-values
data(Simon) ## Extract I from spot and save in i i.arise(Simon)
data(Simon) ## Extract I from spot and save in i i.arise(Simon)
Plot an image of colours representing the log intensity ratio for each spot on the array. This function can be used to explore whether there are any spatial effects in the data.
imageLimma(z, row, column, meta.row, meta.column, low = NULL, high = NULL)
imageLimma(z, row, column, meta.row, meta.column, low = NULL, high = NULL)
z |
numeric vector or array. This vector can contain any spot statistics, such as log intensity ratios, spot sizes or shapes, or t-statistics. Missing values are allowed and will result in blank spots on the image |
row |
rows in the microarray |
column |
columns in the microarray |
meta.row |
metarows in the microarray |
meta.column |
metacolumns in the microarray |
low |
color associated with low values of 'z'. May be specified as a character string such as '"green"', '"white"' etc, or as a rgb vector in which 'c(1,0,0)' is red, 'c(0,1,0)' is green and 'c(0,0,1)' is blue. The default value is '"green"' if 'zerocenter=T' or '"white"' if 'zerocenter=F'. |
high |
color associated with high values of 'z'. The default value is '"red"' if 'zerocenter=T' or '"blue"' if 'zerocenter=F'. |
This function is based in the imageplot function from limma package.
Gordon K. Smyth (2004) "Linear Models and Empirical Bayes Methods for Assessing Differential Expression in Microarray Experiments", Statistical Applications in Genetics and Molecular Biology: Vol. 3: No. 1, Article 3. http://www.bepress.com/sagmb/vol3/iss1/art3
data(Simon) spot.data <- attr(Simon, "spotData") M <- log(spot.data$Cy5, 2) - log(spot.data$Cy3, 2) imageLimma(z = M, row = 23, column = 24, meta.row = 2, meta.column = 2, low = NULL, high = NULL)
data(Simon) spot.data <- attr(Simon, "spotData") M <- log(spot.data$Cy5, 2) - log(spot.data$Cy3, 2) imageLimma(z = M, row = 23, column = 24, meta.row = 2, meta.column = 2, low = NULL, high = NULL)
Extract M values from a Spot.
m.arise(mySpot)
m.arise(mySpot)
mySpot |
Spot object for one microarray. |
List of M-values
data(Simon) ## Extract M from spot and save in m m <- m.arise(Simon)
data(Simon) ## Extract M from spot and save in m m <- m.arise(Simon)
This function allows to plot M -vs- A in spot.
ma.plot(mySpot, col = "green")
ma.plot(mySpot, col = "green")
mySpot |
Spot for one microarray. |
col |
color of points in graphic |
data(Simon) ## plot the signals for spot. ma.plot(Simon)
data(Simon) ## plot the signals for spot. ma.plot(Simon)
Read both files, but only extract the interested columns and create a Spot object.
make.swap(spot1, spot2, Cy3, Cy5, BgCy3, BgCy5, Id, Symdesc, header = FALSE, is.ifc = FALSE,envir,nr,nc)
make.swap(spot1, spot2, Cy3, Cy5, BgCy3, BgCy5, Id, Symdesc, header = FALSE, is.ifc = FALSE,envir,nr,nc)
spot1 |
a connection or a character string giving the name of the file to read where each column represent the spot components. |
spot2 |
a connection or a character string giving the name of the file to read where each column represent the spot components. |
Cy3 |
column that represent Cy3. |
Cy5 |
column that represent Cy5. |
BgCy3 |
column that represent BgCy3. |
BgCy5 |
column that represent BgCy5. |
Id |
column that represent Id. |
Symdesc |
optional identifier besides the Id column. |
header |
the logical value of the header input file |
is.ifc |
If is.ifc = TRUE this experiment was done in the Unit of Microarray from Cellular Phisiology Institute. |
envir |
Environment where are the genArise variables. |
nr |
Total of meta-row. |
nc |
Total of meta-column. |
This function allows to remove from the spot repeated Id's. Before moving one of the repeated Id's the function compute the average of Cy3 intensity and Cy5 intensity.
meanUnique(mySpot)
meanUnique(mySpot)
mySpot |
Spot object for one microarray. |
Spot object without duplicates
data(Simon) c.spot <- bg.correct(Simon) n.spot <- global.norm(c.spot) f.spot <- filter.spot(n.spot) meanUnique(f.spot)
data(Simon) c.spot <- bg.correct(Simon) n.spot <- global.norm(c.spot) f.spot <- filter.spot(n.spot) meanUnique(f.spot)
Call a editor for note about actual experiment
note(envir)
note(envir)
envir |
Environment where are the experiment variables |
Show the information that was obtained from the analysis of a previous project. This is just an auxiliar function for genAriseGUI, and can not be used in the command line.
old.project(project.name,envir, parent)
old.project(project.name,envir, parent)
project.name |
path of project file (PRJ) |
envir |
Environment where are the genArise variables |
parent |
The parent widget |
tkwidget
This function allows you to perform a set combinatorial analysis
between the results previously obtained in different projects.
This function is called post.analysis and it is mandatory that
you have done the Zscore operation in all the selected projects. It is
important to clarify that this function receives a list of files with
extension prj
as argument and for this reason you can't use
it if the results to compare was not obtained by the genArise GUI.
post.analysis(values, min.val, max.val, up.down, output)
post.analysis(values, min.val, max.val, up.down, output)
values |
A list of projects to compare |
min.val |
The minimal value of the range |
max.val |
The maximal value of the range |
up.down |
If the analysis will be done with "up" or "down" regulated |
output |
The directory that will contain all the output files |
Once obtained the ids list for each project a number of files with extension set are created in a directory. The name of this files consists in a sequence of 0 and 1. The number of digits in the file names is the same to the number of projects in the list passed as argument to the function. There is then, a relation between the number of digits in the file names and the projects. This relation is defined by the position specified in the file order.txt in the same directory you have passed as another argument in the function.
This function show a window with the information of experiment like name and dimensions, too plot an image of colours representing the log intensity ratio for each spot on the array. This is just an auxiliar function for genAriseGUI, and can not beused in the command line.
principal(envir, swap)
principal(envir, swap)
envir |
Environment where are the genArise variables |
swap |
Is this a swap analysis or an individual analysis |
tkwidget
Previous window to post-analysis. In this window you can select one or several files (projects) and arguments to be used by post analisis function.
This is just an auxiliar function for genAriseGUI, and can not be used in the command line.
projects.select(envir, nombre)
projects.select(envir, nombre)
envir |
Environment where are the genArise variables |
nombre |
Name of directory where the post-analysis results will be placed. |
tkwidget
Get the R values from an object of the Spot class.
r.arise(mySpot)
r.arise(mySpot)
mySpot |
An object of the Spot class |
A vector containing the R value ( log(Cy5/Cy3)) for each observation of the spot object.
data(Simon) #Get R-value from an object of the Spot class and save the result R <- r.arise(Simon) #Show the R-values
data(Simon) #Get R-value from an object of the Spot class and save the result R <- r.arise(Simon) #Show the R-values
Read all file and extract the interested columns to create a DataSet object (this file contain the zscore with all the genes after the duplicates filtering and makes not distinction between up-regulated and down-regulated. If you want to make this distinction you must write the data with the function write.dataSet, but there is no way to read this files with this function).
read.dataset(file.name, cy3 = 1, cy5 = 2, ids = 3, symdesc = NULL, zscore = 4, type = 6, header = FALSE, sep = "\t")
read.dataset(file.name, cy3 = 1, cy5 = 2, ids = 3, symdesc = NULL, zscore = 4, type = 6, header = FALSE, sep = "\t")
file.name |
a connection or a character string giving the name of the file to read where each column represent the dataset components. |
cy3 |
column that represent Cy3. |
cy5 |
column that represent Cy5. |
ids |
column that represent Id. |
symdesc |
optional identifier besides Id column. |
zscore |
column that represent the zscore value. |
type |
column that represent if the experiment was performed as R vs I or M vs A. |
header |
the logical value of the header input file |
sep |
the separator in the inputfile |
Read all file, but only extract the interested columns and create a Spot object.
read.spot(file.name, cy3, cy5, bg.cy3, bg.cy5, ids, symdesc, header = FALSE, sep = "\t", is.ifc = FALSE, envir)
read.spot(file.name, cy3, cy5, bg.cy3, bg.cy5, ids, symdesc, header = FALSE, sep = "\t", is.ifc = FALSE, envir)
file.name |
a connection or a character string giving the name of the file to read where each column represent the spot components. |
cy3 |
column that represent Cy3. |
cy5 |
column that represent Cy5. |
bg.cy3 |
column that represent BgCy3. |
bg.cy5 |
column that represent BgCy5. |
ids |
column that represent Id. |
symdesc |
(optional) identifier besides Id column. |
header |
the logical value of the header input file |
sep |
the separator in the inputfile |
is.ifc |
If is.ifc = TRUE this experiment was done in the Unit of Microarray from Cellular Phisiology Institute. |
envir |
Environment where are the genArise variables. You don't need to specify this argument. |
Clean all the operations saved in the prj history file.
reset.history(history.file, text)
reset.history(history.file, text)
history.file |
The name of the prj history file. |
text |
The new content of the prj history file. |
The history file without operations.
This function allows to plot R-values vs I-values I-value from a Spot object
ri.plot(mySpot, col = "green")
ri.plot(mySpot, col = "green")
mySpot |
Spot Object |
col |
Color in which the pioints of the plot will be shown. This argment must be quoted and the possible values it can ake ares the same from the colors funcion in the R base package. |
colors()
data(Simon) ri.plot(Simon)
data(Simon) ri.plot(Simon)
Auxiliary function for genAriseGUI
set.grid.properties(envir, name, nr, nc, nmr, nmc)
set.grid.properties(envir, name, nr, nc, nmr, nmc)
envir |
Environment where the variables are stored |
name |
The name of the experiment |
nr |
Total rows in the array (each row represent a spot) |
nc |
Total columns in the array |
nmr |
Total of meta-rows |
nmc |
Total of meta-columns |
Save in the history file each operation performed while the analysis. This is just to get the open this particular project in the future. This is just an auxiliary function for the GUI, and can not be used in the command line.
set.history.project(history.file, id.name, data.file)
set.history.project(history.file, id.name, data.file)
history.file |
The name of the prj history file. |
id.name |
The name of the operation. |
data.file |
The file with the results of the operation. |
The history file with the new performed operation.
Auxiliar function for genAriseGUI
set.path.project(path, results.file, graphics.file, envir)
set.path.project(path, results.file, graphics.file, envir)
path |
Project path value |
results.file |
Name of directory where results file will be |
graphics.file |
Name of directory where pdf graphics will be |
envir |
Environment where are the experiment variables |
Auxiliar function for genAriseGUI
set.project.properties(envir)
set.project.properties(envir)
envir |
Environment where are the experiment variables |
This structure is a data fragment of a yeast microarray from the Microarrays Unit in IFC UNAM. The original microarray contains 6 meta-rows and 4 meta-columns, however this data just belongs to the first meta-row order in a way of 2 meta-rows and 2 meta-columns.
data(Simon)
data(Simon)
A list that contains 1104 observations, because the dimensions of this example are: 2 meta-rows, 2 meta-columns, 23 rows, 24 columns.
data(Simon) #A preview from the chip datos <- attr(Simon, "spotData") M <- log(datos$Cy3, 2) - log(datos$Cy5, 2) imageLimma(M, 23, 24, 2, 2)
data(Simon) #A preview from the chip datos <- attr(Simon, "spotData") M <- log(datos$Cy3, 2) - log(datos$Cy5, 2) imageLimma(M, 23, 24, 2, 2)
Read both files, but only extract the interested columns and create a Spot object.
single.norm(envir)
single.norm(envir)
envir |
Environment where are the genArise variables. |
A simple list-based class for storing red and green channel foreground and background intensities for a batch of spotted microarrays and the Ids.
Objects can be created by calls of the form new("Spot",spot)
where spot
is a list.
Objects are normally created by read.spot
.
This class contains no slots (other than .Data
), but objects should contain the following list components:
Cy5 : |
numeric matrix containing the red (cy5) foreground intensities. Rows correspond to spots and columns to arrays. |
Cy3 : |
numeric matrix containing the green (cy3) foreground intensities. |
BgCy5 : |
numeric matrix containing the red (cy5) background intensities. |
BgCy3 : |
numeric matrix containing the green background intensities. |
Id : |
Ids from all the observations. |
All of these matrices should have the same dimensions.
This class inherits directly from class list
so any operation appropriate for lists will work on objects of this class.
We consider replicate measures of two samples and adjust the
log(ratio,2) measures for each gene so that the transformed values are
equal. To do this we take the geometric mean.\
This procedure can be extended to averaging over n
replicates.
spotUnique(mySpot)
spotUnique(mySpot)
mySpot |
Spot object for one microarray. |
Spot object without duplicates
data(Simon) c.spot <- bg.correct(Simon) f.spot <- filter.spot(c.spot) spotUnique(mySpot = f.spot)
data(Simon) c.spot <- bg.correct(Simon) f.spot <- filter.spot(c.spot) spotUnique(mySpot = f.spot)
This is just an auxiliar function for genAriseGUI, and can not be used in the command line.
swap.select(envir)
swap.select(envir)
envir |
Environment where are the genArise variables |
tkwidget
Extract white spaces at the begining or end of a word.
trim(word)
trim(word)
word |
A string of characters posibly with white spaces at the beging or end of the string. |
Returns a string of characters, with leading and trailing whitespace omitted.
trim(" This is a String ") ## return [1] "This is a String"
trim(" This is a String ") ## return [1] "This is a String"
Write the values for observations of an object of DataSet class in an output file. This values are writen in columns with the follow order: Cy3, Cy5, Cy3 Background, Cy5 Background, Ids and finally the Zscore value. By default this output file has no header.
write.dataSet(dataSet.spot, fileName, quote = FALSE, col.names = FALSE, row.names = FALSE, Zscore.min = NULL, Zscore.max = NULL, sep = "\t")
write.dataSet(dataSet.spot, fileName, quote = FALSE, col.names = FALSE, row.names = FALSE, Zscore.min = NULL, Zscore.max = NULL, sep = "\t")
dataSet.spot |
An object of DataSet class |
fileName |
The name of the output file where the data will be writen. This argument must be quoted. |
quote |
If quote = TRUE, all values in the file will be quoted. |
col.names |
If col.names = TRUE, an integer is writen in every column as header. By default col.names = FALSE. |
row.names |
If row.names = TRUE will be an extra column that numerates every rows in the file. |
Zscore.min |
The lower value in a range, if Zscore.min = NULL then the file will contain all values bellow Zscore.max |
Zscore.max |
The greater value in a range, if Zscore.max = NULL then file will be contain all values above Zscore.min. Both values, Zscore.min and Zscore.max can not be NULL |
sep |
Character to separate the columns in file. By default sep = "\t". |
data(WT.dataset) write.dataSet(dataSet.spot = WT.dataset, fileName = "Example.csv", Zscore.min = 1, Zscore.max = 1.5, sep = "\t")
data(WT.dataset) write.dataSet(dataSet.spot = WT.dataset, fileName = "Example.csv", Zscore.min = 1, Zscore.max = 1.5, sep = "\t")
Write the values for observations of an object of Spot class in an output file. This values are writen in columns with the follow order: Cy3, Cy5, Cy3 Background, Cy5 Background and finally Ids. By default this file has no header.
write.spot(spot, fileName, quote = FALSE,sep = "\t", col.names = FALSE, row.names = FALSE)
write.spot(spot, fileName, quote = FALSE,sep = "\t", col.names = FALSE, row.names = FALSE)
spot |
An object of Spot class |
fileName |
The name of the output file where the data will be writen. This argument must be quoted. |
quote |
If quote = TRUE, all values in the file will be quoted. |
sep |
Character to separate the columns in file. By default sep = "\t". |
col.names |
If col.names = TRUE, an integer is writen in every column as header. By default col.names = FALSE. |
row.names |
If row.names = TRUE will be an extra column that numerates every rows in the file. |
data(Simon) write.spot(spot = Simon, fileName = "Example.csv", quote = FALSE, sep = "\t", col.names = FALSE, row.names = FALSE)
data(Simon) write.spot(spot = Simon, fileName = "Example.csv", quote = FALSE, sep = "\t", col.names = FALSE, row.names = FALSE)
Write the values for observations of an object of DataSet class in an output file. This values are writen in columns tab separated with the follow order: Cy3, Cy5, Cy3 Background, Cy5 Background, Ids and finally the z-score value. The header of the output file is the selected type for the z-score (ri or ma).
write.zscore(dataSet.spot, fileName, sep = "\t")
write.zscore(dataSet.spot, fileName, sep = "\t")
dataSet.spot |
An object of DataSet class |
fileName |
The name of the output file where the data will be writen. This argument must be quoted. |
sep |
Character to separate the columns in file. By default sep = "\t". |
data(WT.dataset) write.zscore(dataSet.spot = WT.dataset, fileName = "Zscore.csv", sep = "\t")
data(WT.dataset) write.zscore(dataSet.spot = WT.dataset, fileName = "Zscore.csv", sep = "\t")
This data set is a Microarray from the IFC.
data(WT.dataset)
data(WT.dataset)
A vector containing 4036 observations.
data(WT.dataset) Zscore.plot(WT.dataset)
data(WT.dataset) Zscore.plot(WT.dataset)
This function identify differential expressed genes by calculating an intensity-dependent Z-score. This function use a sliding window to calculate the mean and standard deviation within a window surrounding each data point, and define a Z-score where Z measures the number of standard deviations a data point is from the mean.
Zscore(spot.object,type,window.size)
Zscore(spot.object,type,window.size)
spot.object |
A spot object |
type |
Type of analysis: "ri" is for a R-I analysis and "ma" is for M-A analysis |
window.size |
Size of the sliding window |
A dataSet object with attributes Cy3, Cy5, Id, Z-score.
data(Simon) # Background Correction c.spot <- bg.correct(Simon) #Normalized data n.spot <- grid.norm(c.spot,23,24) #Filter spot f.spot <- filter.spot(n.spot) #Replicate filtering u.spot <- spotUnique(f.spot) #Zscore analysis s.spot <- Zscore(u.spot)
data(Simon) # Background Correction c.spot <- bg.correct(Simon) #Normalized data n.spot <- grid.norm(c.spot,23,24) #Filter spot f.spot <- filter.spot(n.spot) #Replicate filtering u.spot <- spotUnique(f.spot) #Zscore analysis s.spot <- Zscore(u.spot)
This function allows to plot R-values vs I-values or M-values vs A-values for identifying differential expression.
Zscore.plot(dataSet.spot, Zscore.min, Zscore.max, all, col)
Zscore.plot(dataSet.spot, Zscore.min, Zscore.max, all, col)
dataSet.spot |
Spot Object |
Zscore.min |
The lower value in a range, if Zscore.min = NULL then the file will contain all values bellow Zscore.max |
Zscore.max |
The greater value in a range, if Zscore.max = NULL then file will be contain all values above Zscore.min. Both values, Zscore.min and Zscore.max can not be NULL |
all |
Plot all the observations in four sets: Z < 1, 1 < Z < 1.5, 1.5 < Z < 2, Z > 2 |
col |
Color in which the pioints of the plot will be shown where only the points from center are plot. This argument must be quoted and the possible values it can take are the same from the colors function in the R base package. |
colors()
data(WT.dataset) Zscore.plot(WT.dataset, Zscore.min = 1, Zscore.max = 2)
data(WT.dataset) Zscore.plot(WT.dataset, Zscore.min = 1, Zscore.max = 2)
This function display the window that show the results after the Z-score. This window allow:
1. Show the plots of the up and down generated with the function Zscore.plot regulated spots in: Zscore < 1 sd 1 sd < Zscore < 1.5 sd 1.5 sd < Zscore < 2 sd Zscore > 2 sd and All the points
2. Save the plots in pdf and save the results in an output file
3. Gene annotations. Denote any gene information beyond the expression level data.
This is just a function for the GUI, and can not be used in the command line.
Zscore.points(type,text,envir, swap)
Zscore.points(type,text,envir, swap)
type |
Type of analysis done: "ri" is for a R-I analysis and "ma" is for M-A analysis |
text |
The text for the text area of the history of the project |
envir |
Environment where the variables are stored |
swap |
Is this a swap analysis or an individual analysis |