MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE Manual do Utilizador Página 20: Using LSIDs from MATLAB
Alternatively, to get the parameters with their default values filled in, use the
getMethodParameters
function of
the
GenePatternServer
object. This returns a MATLAB structure with named elements for each parameter,
filled in with the default value if one exists. After filling in the missing parameters and overriding defaults if desired,
this structure can then be passed on to the
runAnalysis
method.
% display the available GenePattern modules
params2 = getMethodParameters(gp, 'TransposeDataset')
params2.input_filename='http://www.broad.mit.edu/mpr/publications/projects/Leu
kemia/ALL_vs_AML_train_set_38_sorted.res'
% transpose the dataset
transposeResult = gp.TransposeDataset(params2)
The GenePattern MATLAB library also has convenience methods to read and write GenePattern files (such as res,
gct, and odf files). Even if you choose not to look in the library, you can extend the techniques shown above to
implement your own analyses.
Using LSIDs from MATLAB
As of GenePattern version 1.3, you can use Life Science Identifiers (LSIDs) to identify a task when executing
GenePattern code in MATLAB. An LSID may be submitted in place of the task name to
getMethodParameters
or
runAnalysis
. When providing an LSID to a method in addition to a task name, the LSID alone is used to
determine what task to run. When an LSID is provided that does not include a version, the latest available version of
the task identified by the LSID will be used. For more information about LSIDs, see
Understanding Version Numbers
in the
GenePattern Java Client Guide
.
% Example using LSIDs from MATLAB
params = getMethodParameters(gp,
'urn:lsid::broad.mit.edu:cancer.software.genepattern.
module.analysis:00026:0'); params.output_file_name = 'transposed.out'
params.input_filename='http://www.broad.mit.edu/mpr/publications/projects/Leuk
emia/ALL_vs_AML_train_set_38_sorted.res'
% transpose the dataset
transposeResult = runAnalysis(gp,
'urn:lsid::broad.mit.edu:cancer.software.genepattern.module.analysis:00026:0',
params)
Using GenePattern from R
Using R as a GenePattern client allows you to run GenePattern tasks and to manipulate and visualize the results in a
powerful, free statistical desktop package that works on most major platforms. Using GenePattern allows you to
invoke methods written in many other languages without having to worry about how to launch them or whether you
are passing incorrect parameters. This section describes how you can use the GenePattern R library to run
GenePattern analyses:
●
Getting Started in R
●
Accessing GenePattern from R
●
Running a Program
●
Using LSIDs from R
Getting Started in R
If you are not familiar with R, see the following resources on the
www.r-project.org
website:
●
An Introduction to R
(PDF, approx. 100 pages, 650kB), based on the former "Notes on R", gives an introduction
to the language and how to use R for doing statistical analysis and graphics.
●
A draft of
the R language definition
(PDF, approx. 60 pages, 400kB) documents the language; that is, the objects
that it works on, and the details of the expression evaluation process, which are useful to know when
programming R functions.
●
Writing R Extensions
(PDF, approx. 85 pages, 500kB) covers how to create your own packages, write R help
files, and the foreign language (C, C++, Fortran, ...) interfaces.
20
Ficheiro PDF · ·
Perguntas sobre MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE
Ainda não há perguntas sobre este manual. Faça a primeira.
Manuais e produtos relacionados com Software MATLAB APPLICATION DEPLOYMENT - WEB EXAMPLE GUIDE
- Software MATLAB CURVE FITTING TOOLBOX - RELEASE NOTES Manual do Utilizador
(54 páginas) - Software MATLAB GAUGES BLOCKSET RELEASE NOTES Guia do Utilizador
(114 páginas) - Software MATLAB EMBEDDED IDE LINK 4 - FOR USE WITH TEXAS INSTRUMENTS CODE COMPOSER STUDIO Especificações
(126 páginas) - Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Especificações
(216 páginas) - Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Guia do Utilizador
(386 páginas) - Software MATLAB BUILDER EX 1 Guia do Utilizador
(164 páginas) - Software MATLAB DATABASE TOOLBOX RELEASE NOTES Manual do Utilizador
(37 páginas) - Software MATLAB VIDEO AND IMAGE PROCESSING BLOCKSET 3 Guia do Utilizador
(252 páginas) - Software MATLAB SYSTEMTEST RELEASE NOTES Guia de Instalação
(237 páginas) - Software MATLAB TARGET SUPPORT PACKAGE - RELEASE NOTES Manual do Utilizador
(54 páginas) - Software MATLAB REAL-TIME WORKSHOP 7 - TARGET LANGUAGE COMPILER Manual de Serviço
(282 páginas) - Software MATLAB PARTIAL DIFFERENTIAL EQUATION TOOLBOX 1 Manual do Utilizador
(18 páginas) - Software MATLAB IMAGE ACQUISITION TOOLBOX - RELEASE NOTES Guia do Utilizador
(574 páginas) - Software MATLAB IMAGE ACQUISITION TOOLBOX 3 Guia do Utilizador
(408 páginas) - Software MATLAB XPC TARGET RELEASE NOTES Manual do Utilizador
(51 páginas) - Software MATLAB TARGET SUPPORT PACKAGE - RELEASE NOTES Manual do Utilizador
(42 páginas) - Software MATLAB BUILDER JA 2 Guia do Utilizador
(292 páginas) - Software MATLAB SIMULINK 7 - DEVELOPING S-FUNCTIONS Guia do Utilizador
(210 páginas) - Software MATLAB SIMULINK 7 - GRAPHICAL USER INTERFACE Guia do Utilizador
(759 páginas) - Software MATLAB CONTROL SYSTEM TOOLBOX 9 Especificações
(591 páginas)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22