FASTGenomics python helper
Project description
OOooOoO Oo .oOOOo. oOoOOoOOo .oOOOo. o o O o o o .O o o O O o O. o o oOooO oOooOoOo `OOoo. O O O o O `O o O .oOOo .oOo. 'OoOo. .oOo. `oOOoOO. O .oOo .oOo o O o o O o. O OooO' o O O o O o o o O `Ooo. o o O O. .O O O. oO O O o o O o O O O o O O' O. O `oooO' o' `OooO' `OoO' o O `OoO' O o o o' `OoO' `OoO'
About
This python module handles all common interfaces of your application to the FASTGenomics runtime:
Input/Output of files
Parameters
and provides some convenience functions.
Example:
from fastgenomics import io as fg_io
# get all parameters
parameters = fg_io.get_parameters()
...
# get a specific parameter
my_parameter = fg_io.get_parameter('my_parameter')
...
# load a file
my_input_path = fg_io.get_input_path('my_input_key')
with my_input_path.open() as f:
# do something like f.read()
pass
# store a file
my_output_path = fg_io.get_output_path('my_output_key')
...
Testing
If you want to test file input/output, you have to provide a sample config/input_file_mapping.json.
Testing without docker
If you want to work without docker, your paths will likely not match our default
/app path to your app, must contain manifest.json
/fastgenomics path to sample data. Should contain config/, data/, output/, summary/.
However, you can set them by providing environment variables FG_APP_DIR and FG_DATA_ROOT or by setting paths within your code:
from fastgenomics import io as fg_io
fg_io.set_paths('path_to/my_app', 'path_to_my/sample_data')
Keep in mind to reset the paths to default (just by not setting paths), when transforming your app into an docker-image!
For more details see our Hello Genomics Python App.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fastgenomics-1.1.0.tar.gz.
File metadata
- Download URL: fastgenomics-1.1.0.tar.gz
- Upload date:
- Size: 18.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5ccb14fc35de95a83f9427f763bd86d2db429b9ecd521577ba45ef830b06b76a
|
|
| MD5 |
1c5d8e4901797ba9633e206bb5c951aa
|
|
| BLAKE2b-256 |
9c8b7fe3edf192d4ddd91dd71dad2123c7fb10db3da98a5886d1ae0638c34d59
|
File details
Details for the file fastgenomics-1.1.0-py3-none-any.whl.
File metadata
- Download URL: fastgenomics-1.1.0-py3-none-any.whl
- Upload date:
- Size: 30.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.19.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6181c49d295d565bbca1dc04988f8c906d3c70022510329b26f923a3520f834b
|
|
| MD5 |
71dcad3a1dba684aa1bb1b330a6e9f12
|
|
| BLAKE2b-256 |
0a99211a5f628b9d0d61956ac2747239f80a01220822d89b2624fca37158dd30
|