Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
WebChemistry Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
PatternQuery:Command Line
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
= Running the Offline Service = ----------------------- 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.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: <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 == The configuration is specified using the JSON format. === Configuration Example === This is the general shape of the JSON input configuration. <pre>{ "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 }</pre> 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 === * '''InputFolders''' [ String[] ] : ''A list of folders containing the input structures.'' * '''Queries''' [ [[#QueryInfo_details|QueryInfo]] ] : ''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 === ===== <span id='QueryInfo_details'>QueryInfo</span> ===== * '''Id''' [ String ] : ''A unique identifier of the query.'' * '''QueryString''' [ String ] : ''The query expression.'' == Output Description == === General Structure === * '''[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 === * '''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.''
Summary:
Please note that all contributions to WebChemistry Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
WebChemistry Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
PatternQuery:Command Line
(section)
Add topic