Jump to content

PatternQuery:Command Line: Difference between revisions

From WebChemistry Wiki
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This is help for version 1.0.14.11.28 or newer. The help text for other versions can be viewed using the ''--help'' command when running the application.
This is help for version 1.0.15.4.22 or newer. The help text for other versions can be viewed using the ''--help'' command when running the application.


=Technical details=
=Technical details=
===Where to find MotiveQuery===
===Where to find PatternQuery===
'''MotiveQuery''' is freely available online since May 2014 at http://ncbr.muni.cz/MotiveQuery. There is no login requirement for accessing '''MotiveQuery'''.
'''PatternQuery''' is freely available online since May 2014 at http://ncbr.muni.cz/PatternQuery. There is no login requirement for accessing '''PatternQuery'''.


===What you need in order to run MotiveQuery===
===What you need in order to run PatternQuery===
* Up to date internet browser with WebGL support.  
* Up to date internet browser with WebGL support.  
* JavaScript enabled.
* JavaScript enabled.
Line 11: Line 11:
Check if your browser is [http://get.webgl.org WebGL] and [http://www.enable-javascript.com/ Javascript] compliant.
Check if your browser is [http://get.webgl.org WebGL] and [http://www.enable-javascript.com/ Javascript] compliant.


Note that you can run '''MotiveQuery''' and download the results even if your browser doesn't support WebGL.  
Note that you can run '''PatternQuery''' and download the results even if your browser doesn't support WebGL.  
WebGL is only necessary for the 3D visualization functionality.
WebGL is only necessary for the 3D visualization functionality.


Line 18: Line 18:
= Running the Offline Service =
= Running the Offline Service =
-----------------------
-----------------------
Just download the latest release of [http://webchem.ncbr.muni.cz/Platform/MotiveQuery/DownloadService MotiveQuery application]. The service can be executed using the command (latest .NET Framework required):  
Just download the latest release of [http://webchem.ncbr.muni.cz/Platform/PatternQuery/DownloadService PatternQuery application]. A simple [http://webchem.ncbr.muni.cz/Platform/PatternQuery/CmdExample demo] is available as well. The service can be executed using the command (latest .NET Framework required):  
<pre>WebChemistry.MotiveQuery.Service.exe workingFolder configuration.json</pre>
<pre>WebChemistry.Queries.Service.exe workingFolder configuration.json</pre>
In Linux (where available) and MacOS, the latest version the Mono Framework (http://mono-project.com/) must be used to run the application:
In Linux (where available) and MacOS, the latest version the Mono Framework (http://mono-project.com/) must be used to run the application:
<pre>mono WebChemistry.MotiveQuery.Service.exe workingFolder configuration.json</pre>
<pre>mono WebChemistry.Queries.Service.exe workingFolder configuration.json</pre>


Both of the commands immediately executes a calculation, which produces all the output into the <code>workingFolder</code>. A further description can be found when running the program with the <code>--help</code> option. e.g.
<pre>WebChemistry.Queries.Service.exe --help</pre> or <pre>mono WebChemistry.Queries.Service.exe --help</pre>


== Configuration ==
== Configuration ==
Line 86: Line 89:
* '''result''' - ''Folder with computation result''
* '''result''' - ''Folder with computation result''
:* '''query_id''' - ''Folder for each query named by its unique id.''
:* '''query_id''' - ''Folder for each query named by its unique id.''
::* '''fragments''' - ''Folder with fragments stored in PDB format.''
::* '''patterns''' - ''Folder with patterns stored in PDB format.''
:::: '''data.json''' - ''Information about the result in JSON format.''
:::: '''data.json''' - ''Information about the result in JSON format.''
:::: '''fragments.csv''' - ''Information about the fragments in CSV format.''
:::: '''patterns.csv''' - ''Information about the patterns in CSV format.''
:::: '''metadata_summary.csv''' - ''Information about the metadata (origin organism, EC number, etc.) in CSV format.''
:::: '''metadata_summary.csv''' - ''Information about the metadata (origin organism, EC number, etc.) in CSV format.''
:::: '''structures.csv''' - ''Information about structures that contain the given fragments in CSV format.''
:::: '''structures.csv''' - ''Information about structures that contain the given patterns in CSV format.''
:: '''structures.csv''' - ''Information about all structures that were queried in CSV format.''
:: '''structures.csv''' - ''Information about all structures that were queried in CSV format.''
:: '''structures.json''' - ''Information about all structures that were queried in JSON format.''
:: '''structures.json''' - ''Information about all structures that were queried in JSON format.''
:: '''summary.json''' - ''Summary information (number of found fragments, etc.) about the computation in JSON format.''
:: '''summary.json''' - ''Summary information (number of found patterns, etc.) about the computation in JSON format.''

Latest revision as of 23:26, 30 April 2015

This is help for version 1.0.15.4.22 or newer. The help text for other versions can be viewed using the --help command when running the application.

Technical details

[edit]

Where to find PatternQuery

[edit]

PatternQuery is freely available online since May 2014 at http://ncbr.muni.cz/PatternQuery. There is no login requirement for accessing PatternQuery.

What you need in order to run PatternQuery

[edit]
  • Up to date internet browser with WebGL support.
  • JavaScript enabled.

Check if your browser is WebGL and Javascript compliant.

Note that you can run PatternQuery and download the results even if your browser doesn't support WebGL. WebGL is only necessary for the 3D visualization functionality.

In some older browsers, the interactive user guide which provides help for the GUI interface does not work optimally.

Running the Offline Service

[edit]

Just download the latest release of PatternQuery application. A simple demo is available as well. The service can be executed using the command (latest .NET Framework required):

WebChemistry.Queries.Service.exe workingFolder configuration.json

In Linux (where available) and MacOS, the latest version the Mono Framework (http://mono-project.com/) must be used to run the application:

mono WebChemistry.Queries.Service.exe workingFolder configuration.json

Both of the commands immediately executes a calculation, which produces all the output into the workingFolder. A further description can be found when running the program with the --help option. e.g.

WebChemistry.Queries.Service.exe --help

or

mono WebChemistry.Queries.Service.exe --help

Configuration

[edit]

The configuration is specified using the JSON format.

Configuration Example

[edit]

This is the general shape of the JSON input configuration.

{
  "InputFolders": [
    "c:\\TestData\\PDB\\SampleSet1"
  ],
  "Queries": [
    {
      "Id": "NAGs",
      "QueryString": "Residues(\"NAG\")"
    },
    {
      "Id": "MANs",
      "QueryString": "Residues('MAN')"
    }
  ],
  "StatisticsOnly": false,
  "CSAPath": "c:\\data\\csa.dat",
  "MaxParallelism": 8
}

There has to be exactly one configuration file for each validation run. Every value, as well as settings' names, is surrounded in quotation marks (" " or ' '). Backslashes (\) have to be escaped (\\). File system paths can be absolute as well as relative (/ works as well in paths).

Attributes

[edit]
  • InputFolders [ String[] ]
A list of folders containing the input structures.
A list of queries.
  • StatisticsOnly [ Boolean ]
If `true`, the files with fragments are not exported.
  • CSAPath [ String ]
Optional path to a file with CSA database that allows the CSA() query to work. The file is a CSV file that must contain the columns `PdbID, SiteNumber, ResidueName, ChainId, ResidueNumber, ...`
  • MaxParallelism [ Int32 ], Default value = 8
The maximum number of structures that can be processed simultaneously.

Descriptions

[edit]
QueryInfo
[edit]
  • Id [ String ]
A unique identifier of the query.
  • QueryString [ String ]
The query expression.


Output Description

[edit]

General Structure

[edit]
  • [WorkingDirectory] - Working directory of the application.
  • result - Contains the result of the computation.
log.txt - Contains the console output of the application.
status.json - Contains general information of the computation (running time, version, etc.).

MotiveQuery Specific Structure

[edit]
  • result - Folder with computation result
  • query_id - Folder for each query named by its unique id.
  • patterns - Folder with patterns stored in PDB format.
data.json - Information about the result in JSON format.
patterns.csv - Information about the patterns in CSV format.
metadata_summary.csv - Information about the metadata (origin organism, EC number, etc.) in CSV format.
structures.csv - Information about structures that contain the given patterns in CSV format.
structures.csv - Information about all structures that were queried in CSV format.
structures.json - Information about all structures that were queried in JSON format.
summary.json - Summary information (number of found patterns, etc.) about the computation in JSON format.