An end-to-end data processing, analysis and visualisation tool for chemical and genetic in vitro perturbation screens
Project description
HTSplotter
HTSplotter allows an end-to-end data processing and analysis of chemical and genetic in vitro perturbation screens. It also available as a web tool. HTSplotter is tailored to analyse drug, drug combination, genetic perturbagen and combinations of genetic-chemical perturbagen screens. These experiments can be conducted either in real-time or as with endpoint readout. HTSplotter identifies the type of experimental setup through a conditional statement algorithm. It then performs a normalization and, in case of a drug screen, drug combination or genetic-chemical perturbagen experiment, identifies the dose-response relationship for each drug alone. Additionally, synergism or antagonism of drug or genetic-chemical combination screens is determined through the BI method. Finally, results are plotted and exported as PDF files, allowing a fast biological interpretation of the data.
All python library usage information is in this page, however, complementary information and example files can be found at the website manual or at HTSplotter GitHub.
Install
pip install HTSplotter
Uninstall
pip uninstall HTSplotter
Import HTSplotter library
import HTSplotter as HTSP
Running Analysis
The HTSplotter analysis can be made by introducing the input data from the shell or it can read the inputs from an input file. This allows the integration of HTSplotter into other scripts and the grouping of various analyses into a single run, even in the case of different input directories, readouts, units, effect and in case of biological replicates. In both cases, the Analyser object must be initialized:
hts = HTSP.Analyser()
Setting up inputs from shell
To setup the inputs, the attributes of the Analyser object must be changed to the proper ones:
# set main directory path
hts.main_folder = 'path/to/main/folder/'
# set readout information, e.g.: confluency, impedance, fluorescence, ...
hts.information_readout = 'confluency'
# set readout units, e.g. %, area, Å _mÅ _/Wel, ...
hts.readout_units = '%'
# in case of biological replicate analysis give a file name, otherwise set to 0
hts.file_name_br = 0
# list of file names
hts.files_list = ['drugscreen_1timepoint.txt', 'drug_combination_screen_1timepoint.txt']
# =0 not biological replicate (default); =1 biological replicate
hts.biological_replicate = 0
# =0 no user validation (default); =1 user validation
hts.userinput = 0
# =0 inhibition (default); =1 enhancement
hts.expected_effect = 0
By default, all input files, log files (information extracted) and output files are set to the main folder path. However, these can be changed to diferent paths to ease data organization:
# set input files path
hts.input_path = 'path/to/input/files/'
# set path for extracted information from the headers
hts.information_extracted = 'path/to/information/extracted/files/'
# set path for extracted information from the headers
hts.results_path = 'path/to/output/files/'
For more information on the input fields, please visit HTSplotter website. To run the analysis, after all inputs have been set, you must use the execute() routine:
# execute analysis
htsplotter.execute()
Setting up inputs from input file
The input data can be introduced into an input file, where several analysis blocks can be set with different characteristics. Setting up HTSplotter in this way allows the sequential execution of several execute() routines, for each input data block. Each analysis block must end with #. Bellow is the example of an input file with two input blocks:
path/to/to/main/directory/ # add your directory path
path/to/input/files/directory/ # input path directory
path/to/information/extracted/files/directory # information_extracted path directory
path/to/output/files/directory/ # output_results path directory
0 # =0 not biological replicate (default); =1 biological replicate
0 # =0 no user validation (default); =1 user validation
confluency # information_readout e.g.: confluency, impedance, fluorescence, ...
% # readout_units e.g. %, area, Å _mÅ _/Wel, ...
0 # =0 inhibition (default); =1 enhancement
0 # file_name_br file name
drug_combination_screen_1timepoint.txt # file 1
end # file 2 (if end, stop reading)
#
path/to/to/main/directory/ # add your directory path
path/to/input/files/directory/ # input path directory
path/to/information/extracted/files/directory # information_extracted path directory
path/to/output/files/directory/ # output_results path directory
1 # =0 not biological replicate (default); =1 biological replicate
0 # =0 no user validation (default); =1 user validation
confluency # information_readout e.g.: confluency, impedance, fluorescence, ...
area # readout_units e.g. %, area, Å _mÅ _/Wel, ...
0 # =0 inhibition (default); =1 enhancement
drug_screen_biological_replicate.txt # file_name_br file name
drug_screen_over_time_br1.txt # file 1
drug_screen_over_time_br2.txt # file 2
end # file 3 (if end, stop reading)
#
More than one file can be processed in the same analysis block. These can be added in the file1, file2, ..., fileN lines, where the last line must have the "end" string. These files will be processed with the same characteristics as the ones in the respective analysis block. The paths to input files, log files (information extracted) and output files directories can be set as relative paths from the main directory by adding 'main_dir + ' at the beginning of the lines:
main_dir + relative/path/to/input/files/directory/ # input path directory
main_dir + relative/path/to/information/extracted/files/directory # information_extracted path directory
main_dir + relative/path/to/output/files/directory/ # output_results path directory
If these lines only contain 'main_dir', the directories will be considered the same as the main directory.
For more information on the input fields, please visit HTSplotter website.
To run all the analysis blocks, use the execute_from_file() routine:
hts.execute_from_file('path/to/input/file/filename.txt')
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
File details
Details for the file HTSplotter-2.3.tar.gz
.
File metadata
- Download URL: HTSplotter-2.3.tar.gz
- Upload date:
- Size: 74.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb3d3a09be3c08a1911b53698eaa723239ba1870e16b9350937bbd6209c87f70 |
|
MD5 | 8014e60311789b5a33d04aef39f13b41 |
|
BLAKE2b-256 | cfc492d59e595d4084135c244507f0daee7624fc5818b33b3ff5727e234ed9a4 |
Provenance
File details
Details for the file HTSplotter-2.3-py3-none-any.whl
.
File metadata
- Download URL: HTSplotter-2.3-py3-none-any.whl
- Upload date:
- Size: 88.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e80eed275bf2945e087185c4768a163cbe316ded952563f4e89b1e3d805b0a1b |
|
MD5 | dae089d1e08a41400fc3b5343a5b50a5 |
|
BLAKE2b-256 | 84ff41c287354fc7c64a7c6bd9554dd30ce99383efa4f0db30a3375882bac7aa |