forked from PSICQUIC/psicquic.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
HowToInstall.html
841 lines (352 loc) · 23.3 KB
/
HowToInstall.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
<!DOCTYPE HTML>
<html lang="" >
<head>
<title>Using LUCENE · GitBook</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta name="description" content="">
<meta name="generator" content="GitBook 3.1.1">
<link rel="stylesheet" href="gitbook/style.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-highlight/website.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-search/search.css">
<link rel="stylesheet" href="gitbook/gitbook-plugin-fontsettings/website.css">
<meta name="HandheldFriendly" content="true"/>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="gitbook/images/apple-touch-icon-precomposed-152.png">
<link rel="shortcut icon" href="gitbook/images/favicon.ico" type="image/x-icon">
<link rel="next" href="DataDistributionBestPractices.html" />
<link rel="prev" href="HowToInstallPsicquicLucene.html" />
</head>
<body>
<div class="book">
<div class="book-summary">
<div id="book-search-input" role="search">
<input type="text" placeholder="Type to search" />
</div>
<nav role="navigation">
<ul class="summary">
<li class="chapter " data-level="1.1" data-path="./">
<a href="./">
Introduction
</a>
<ul class="articles">
<li class="chapter " data-level="1.1.1" data-path="PsicquicSpecification.html">
<a href="PsicquicSpecification.html">
Specification
</a>
<ul class="articles">
<li class="chapter " data-level="1.1.1.1" data-path="PsicquicSpec_1_3_Soap.html">
<a href="PsicquicSpec_1_3_Soap.html">
SOAP
</a>
</li>
<li class="chapter " data-level="1.1.1.2" data-path="PsicquicSpec_1_3_Rest.html">
<a href="PsicquicSpec_1_3_Rest.html">
REST
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.1.2" data-path="Registry.html">
<a href="Registry.html">
Registry
</a>
<ul class="articles">
<li class="chapter " data-level="1.1.2.1" data-path="PsicquicServiceTags.html">
<a href="PsicquicServiceTags.html">
Registry Service Tags
</a>
</li>
<li class="chapter " data-level="1.1.2.2" data-path="RegistryJavaClient.html">
<a href="RegistryJavaClient.html">
Java client
</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="chapter " data-level="1.2" data-path="MiqlDefinition.html">
<a href="MiqlDefinition.html">
Usage MIQL
</a>
<ul class="articles">
<li class="chapter " data-level="1.2.1" data-path="MiqlReference.html">
<a href="MiqlReference.html">
MIQL Reference 2.5
</a>
</li>
<li class="chapter " data-level="1.2.2" data-path="MiqlReference27.html">
<a href="MiqlReference27.html">
MIQL Extension 2.7
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.3" data-path="Clients.html">
<a href="Clients.html">
Clients
</a>
<ul class="articles">
<li class="chapter " data-level="1.3.1" >
<a target="_blank" href="http://www.bioconductor.org/packages/release/bioc/html/PSICQUIC.html">
R Bioconductor package
</a>
</li>
<li class="chapter " data-level="1.3.2" data-path="JavaClient.html">
<a href="JavaClient.html">
Java
</a>
</li>
<li class="chapter " data-level="1.3.3" data-path="PerlCodeSamples.html">
<a href="PerlCodeSamples.html">
Perl
</a>
</li>
<li class="chapter " data-level="1.3.4" data-path="PythonCodeSamples.html">
<a href="PythonCodeSamples.html">
Python
</a>
</li>
<li class="chapter " data-level="1.3.5" data-path="CytoscapeClient.html">
<a href="CytoscapeClient.html">
Cytoscape
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4" data-path="formats.html">
<a href="formats.html">
Formats
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.1" data-path="psi-mitab.html">
<a href="psi-mitab.html">
PSI MITAB
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.1.1" data-path="MITAB25Format.html">
<a href="MITAB25Format.html">
MITAB 2.5
</a>
</li>
<li class="chapter " data-level="1.4.1.2" data-path="MITAB26Format.html">
<a href="MITAB26Format.html">
MITAB 2.6
</a>
</li>
<li class="chapter " data-level="1.4.1.3" data-path="MITAB27Format.html">
<a href="MITAB27Format.html">
MITAB 2.7
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="1.4.2" data-path="psi-mi-xml.html">
<a href="psi-mi-xml.html">
PSI-MI XML
</a>
<ul class="articles">
<li class="chapter " data-level="1.4.2.1" >
<a target="_blank" href="http://psidev.sourceforge.net/molecular_interactions/rel25/doc/">
Schema documentation
</a>
</li>
<li class="chapter " data-level="1.4.2.2" >
<a target="_blank" href="http://psidev.cvs.sourceforge.net/viewvc/psidev/psi/mi/rel25/src/MIF254.xsd">
MIF254.xsd
</a>
</li>
<li class="chapter " data-level="1.4.2.3" >
<a target="_blank" href="http://code.google.com/p/psimi/wiki/PsimiXMLSpecifications">
XML Specifications
</a>
</li>
<li class="chapter " data-level="1.4.2.4" >
<a target="_blank" href="http://code.google.com/p/psimi/wiki/PsimiExamples">
Java Examples
</a>
</li>
</ul>
</li>
</ul>
</li>
<li class="divider"></li>
<li class="chapter " data-level="2.1" data-path="service-providers.html">
<a href="service-providers.html">
Service providers
</a>
<ul class="articles">
<li class="chapter " data-level="2.1.1" data-path="HowToInstallPsicquicSolr.html">
<a href="HowToInstallPsicquicSolr.html">
How to install PSICQUIC Solr (recommened)
</a>
<ul class="articles">
<li class="chapter " data-level="2.1.1.1" data-path="HowToInstallPsicquicAndSolrJetty.html">
<a href="HowToInstallPsicquicAndSolrJetty.html">
Single jetty server
</a>
</li>
<li class="chapter " data-level="2.1.1.2" data-path="HowToInstallPsicquicSolrDifferentServers.html">
<a href="HowToInstallPsicquicSolrDifferentServers.html">
Using a solr server independent from the PSICQUIC server
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.1.2" data-path="HowToInstallPsicquicLucene.html">
<a href="HowToInstallPsicquicLucene.html">
How to install PSICQUIC using LUCENE
</a>
<ul class="articles">
<li class="chapter active" data-level="2.1.2.1" data-path="HowToInstall.html">
<a href="HowToInstall.html">
Using LUCENE
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.1.3" data-path="DataDistributionBestPractices.html">
<a href="DataDistributionBestPractices.html">
Data Distribution Best Practices
</a>
</li>
<li class="chapter " data-level="2.1.4" data-path="DataEnricher.html">
<a href="DataEnricher.html">
Data Enricher
</a>
</li>
<li class="chapter " data-level="2.1.5" data-path="Faq.html">
<a href="Faq.html">
FAQ
</a>
</li>
<li class="chapter " data-level="2.1.6" data-path="ReleaseNotes.html">
<a href="ReleaseNotes.html">
Release notes
</a>
</li>
</ul>
</li>
<li class="chapter " data-level="2.2" data-path="WhoUsesPsicquic.html">
<a href="WhoUsesPsicquic.html">
Who uses PSICQUIC?
</a>
</li>
<li class="chapter " data-level="2.3" data-path="project-management.html">
<a href="project-management.html">
Project Management
</a>
<ul class="articles">
<li class="chapter " data-level="2.3.1" data-path="PreparingARelease.html">
<a href="PreparingARelease.html">
How to release the project
</a>
</li>
</ul>
</li>
<li class="divider"></li>
<li>
<a href="https://www.gitbook.com" target="blank" class="gitbook-link">
Published with GitBook
</a>
</li>
</ul>
</nav>
</div>
<div class="book-body">
<div class="body-inner">
<div class="book-header" role="navigation">
<!-- Title -->
<h1>
<i class="fa fa-circle-o-notch fa-spin"></i>
<a href="." >Using LUCENE</a>
</h1>
</div>
<div class="page-wrapper" tabindex="-1" role="main">
<div class="page-inner">
<div id="book-search-results">
<div class="search-noresults">
<section class="normal markdown-section">
<h1 id="installation">Installation</h1>
<p>This instructions are aimed to those who want to have its local instance of the PSICQUIC web service.</p>
<h2 id="requirements">Requirements</h2>
<ul>
<li>JAVA (<a href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">JDK 6</a>)</li>
<li><a href="http://maven.apache.org" target="_blank">Maven 2</a></li>
</ul>
<h2 id="obtaining-the-reference-implementation-source-code">Obtaining the Reference Implementation source code</h2>
<p>There are two ways to obtain the source code:</p>
<ul>
<li>From the download section, downloading <a href="https://github.com/PSICQUIC/psicquic-webservice/releases/tag/psicquic-ws-1.2.7" target="_blank">psicquic-ws-1.2.7 (.zip/.tar.gz)</a> containing the sources</li>
<li><p>Using a git client, clone the code</p>
<p><code>git clone --branch psicquic-ws-1.2.7 https://github.com/PSICQUIC/psicquic-webservice.git psicquic-ws-1.2.7</code></p>
</li>
</ul>
<h1 id="creating-an-index">Creating an index</h1>
<p>The Reference Implementation uses a Lucene index to store the data. This index can be generated in many ways but for your convenience, a class to create it from a PSIMITAB file is included as part of the web service. The PSIMITAB format is described here and we recommend data providers to read the <a href="DataDistributionBestPractices.html">Data Distribution Best Practices</a> as well as the <a href="Faq.html">PSICQUIC FAQ</a> before starting to generate a PSIMITAB dataset.</p>
<p>This class can be executed using Maven:</p>
<pre><code>cd psicquic-webservice
mvn clean compile -P createIndex -D psicquic.index=/path/to/new.index -D mitabFile=/path/to/mitab.txt -D hasHeader=true
</code></pre><p>Replace the <strong>psicquic.index</strong> (where the index will be created), <strong>mitabFile</strong> (mitab file to index) and <strong>hasHeader</strong> (whether the file has a header) values accordingly.</p>
<p>If for whatever reason this is not working to you, you can execute directly the class <code>uk.ac.ebi.intact.psicquic.ws.utils.MitabIndexer</code> that can be found in the psicquic-webservice project.</p>
<h1 id="running-the-service">Running the service</h1>
<p>You have two choices here:</p>
<h2 id="starting-the-service-locally-using-jetty">Starting the service locally, using Jetty</h2>
<p>The web service project can be started with jetty directly. This is extremely useful when testing but can be used as well for production instances.</p>
<pre><code>mvn clean jetty:run -D psicquic.index=/path/to/new.index
</code></pre><p>Use the <strong>psicquic.index</strong> created in the previous step.</p>
<p>From PSICQUIC Spec 1.1 it is possible to define and expose <strong>properties</strong> about the service. You can set which properties your service is going to show by passing the <code>psicquic.properties</code> variable. Properties are defined using <code>key=value</code> pairs, comma-separated and all the expression is quoted.</p>
<pre><code>mvn clean jetty:run -D psicquic.index=/path/to/new.index -D psicquic.properties="owner=John Smith, contactinfo=My Address"
</code></pre><p>Here is a sample query listing a limited number of available interactions in your local service:</p>
<pre><code>http://localhost:9090/psicquic/webservices/current/search/query/*?firstResult=0&maxResults=10
</code></pre><h2 id="using-tomcat-or-any-other-server">Using tomcat, or any other server</h2>
<p>If the jetty hot launch does not work for you, you can package the application in a war file and deploy it in your favourite web server (e.g. Tomcat).
To create the war file with maven, use the following command:</p>
<pre><code>mvn clean package -D psicquic.index=/path/to/new.index
</code></pre><p>Use the <strong>psicquic.index</strong> created in the index creation step. Make sure that you are using the full path to the index as othwerwise the web server would not find it. Once the command is run, you can find the war file in the <code>target</code> folder. Grab it and deploy it in any web server.</p>
<p>You can define <strong>properties</strong> as explained in the previous section:</p>
<pre><code>mvn clean package -D psicquic.index=/path/to/new.index -D psicquic.properties="owner=John Smith, contactinfo=My Address"
</code></pre>
</section>
</div>
<div class="search-results">
<div class="has-results">
<h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
<ul class="search-results-list"></ul>
</div>
<div class="no-results">
<h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="HowToInstallPsicquicLucene.html" class="navigation navigation-prev " aria-label="Previous page: How to install PSICQUIC using LUCENE">
<i class="fa fa-angle-left"></i>
</a>
<a href="DataDistributionBestPractices.html" class="navigation navigation-next " aria-label="Next page: Data Distribution Best Practices">
<i class="fa fa-angle-right"></i>
</a>
</div>
<script>
var gitbook = gitbook || [];
gitbook.push(function() {
gitbook.page.hasChanged({"page":{"title":"Using LUCENE","level":"2.1.2.1","depth":3,"next":{"title":"Data Distribution Best Practices","level":"2.1.3","depth":2,"path":"DataDistributionBestPractices.md","ref":"DataDistributionBestPractices.md","articles":[]},"previous":{"title":"How to install PSICQUIC using LUCENE","level":"2.1.2","depth":2,"path":"HowToInstallPsicquicLucene.md","ref":"HowToInstallPsicquicLucene.md","articles":[{"title":"Using LUCENE","level":"2.1.2.1","depth":3,"path":"HowToInstall.md","ref":"HowToInstall.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"3.1.1","theme":"default","variables":{},"plugins":[],"pluginsConfig":{"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"HowToInstall.md","mtime":"2016-08-15T17:06:35.000Z","type":"markdown"},"gitbook":{"version":"3.1.1","time":"2016-08-15T17:09:41.315Z"},"basePath":".","book":{"language":""}});
});
</script>
</div>
<script src="gitbook/gitbook.js"></script>
<script src="gitbook/theme.js"></script>
<script src="gitbook/gitbook-plugin-search/search-engine.js"></script>
<script src="gitbook/gitbook-plugin-search/search.js"></script>
<script src="gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
<script src="gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
<script src="gitbook/gitbook-plugin-sharing/buttons.js"></script>
<script src="gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
</body>
</html>