forked from broadinstitute/fiss
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
146 lines (110 loc) · 5.86 KB
/
README
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
=======================================================================
1. Description
=======================================================================
FISS -- (Fi)reCloud (S)ervice (S)elector
FISS is a programmatic interface to FireCloud (FC), providing a set of low- and
high-level Python bindings to the FireCloud API, as well as UNIX bindings for
command line usage. By wrapping the FireCloud RESTful API in this manner, our
hope is to provide an interface that resonates more closely with the majority of
expected FC users--supporting interaction with FC in memes familiar to them, as
biomedical researchers & informaticians rather than database or web programmers
Like legacy FISS, the (Fi)rehose (S)ervice (S)selector that was created for
internal use at the Broad Institute, FISSFC aims to be:
fast compared to navigating screens & menus in the GUI,
importing/exporting files manually, etc
programmatic can be used in analysis scripts, UNIX cli, cron jobs etc
iterable easily repeat commands across workspaces, entity sets,
workflows, and even project domains
simple to use don't have to learn FC internal abstractions, or code
directly to the RESTful interface (e.g. in curl)
understandable clear & consistent semantics, for FC novice or expert
extensible users can customize how it works, without permission
(or needing development assistance) from the author!
portable Python 2 and 3 implementation, UNIX shell
idiomatic allows FireCloud to be combined with the power of UNIX
self-documenting (well, almost!) in addition to the --help flag, usage
statements are provided for most methods when they're
called with no args; the -F flag can display the body
of any method, and -l flag lists all available methods
https://software.broadinstitute.org/firecloud/
https://github.com/broadinstitute/fiss
=======================================================================
2. Contents
=======================================================================
1. Description
2. Contents
3. Requirements
4. Unix command line
5. Low-level interface
6. High-level interface
7. User configuration
=======================================================================
3. Requirements
=======================================================================
Install this package via pip:
% pip install firecloud
Or download the source and install with setup.py:
% python setup.py install
FISS depends on several additional Python software packages, as listed in
setup.py; typically the entire installation process (including loading of
packages) takes only a few minutes.
**Note: FireCloud encryts all web traffic with TLSv1.2. Some versions of
python will not function correctly, and must be recompiled with openssl
v1.02 or later. If recompiling is not an option, there is also a
dockerized version of the tool available on docker hub
(https://hub.docker.com/r/broadgdac/fiss/).
% docker pull broadgdac/fiss
=======================================================================
4. UNIX command line interface
=======================================================================
After installation your the 'fissfc' executable should be findable in your
$PATH. Type 'fissfc --help' for more details on how to use this utility
in a UNIX setting.
Note that if you are running on a Google VM, executing 'pip install' as an
unprivileged user (i.e. not sudo) will result in the package being installed
to a directory named $HOME/.local, so you will need to ensure $HOME/.local/bin
is in your $PATH (e.g. by setting it in your Bash login script) so that
the fissfc binary can be found.
=======================================================================
5. Low-Level API
=======================================================================
The low-level API provides a direct one-to-one mapping between the
RESTful API of FireCloud and methods in the Python interpreter. It
also provides conveniences like automatic header creation, paging,
and debug settings (e.g. verbosity) across the entire API. To access
the low-level API simply import into a Python interpreter: for example
import firecloud.api as fapi
After importing, you can see what low level methods are available via
dir(fapi)
and for detailed documentation simply use the Python help system:
help(fapi)
Finally, note that interactive documentation for the FireCloud RESTful API
(sometimes referred to as the Orchestration Layer) can be found online at
https://api.firecloud.org
=======================================================================
6. High-Level Classes
=======================================================================
To access the high-level interface import the 'fiss' module, e.g.
from firecloud import fiss
and use the dir() and help() Python as shown above.
=======================================================================
7. User configuration
=======================================================================
The behavior of FISS can be tailored by writing a configuration file,
e.g. to give default values for the project and workspace parameters
that are common to many operations with FireCloud. This would make it
easier to use the UNIX command line interface by allowing the --project
and --workspace flags to be omitted.
By default FISS will look for a user-specific configuration file at
$HOME/.fissconfig
For example, developers within the Broad Genome Data Analysis Center (GDAC)
use a configuration file like
[DEFAULT]
project=broad-firecloud-gdac
workspace=dev
method_ns=broadgdac
To inspect your runtime configuration, simply issue the config command:
linux% fissfc config
debug False
entity_type sample_set
...