Calculate the GCL of the input data with jackknife
- Python 3 and above (3.9.1 is recommended).
- Packages for python: (if you don't have one of the following, right click inside python on the missing import -> Show
Context Actions -> Install Package):
numpy, math, random, scipy, threading. for the example you will also need: matplotlib, sys, pathlib, os.
- Put the gcl_library.py file inside your python project.
- Add the import: import gcl_library as gcl_lib
- For example adding a jackknife command to get a vector, simply write: gcl_lib.jackknife(the required arguments)
Expect the process to run around 1 minute in this example, make sure all libraries are installed.
Download all the files from this github reposatory to a floder on your computer.
A) Run the program with the following arguments (use space as delimiter):
- data_arr [mandatory] - files array data with all the files in the current folder to make the GCL on.
- jackknives [optional - default:70] - Number of boot straps iterations for calculation.
- jackknife_percentage [optional - default:0.8] - Percentage of cells to choose for jackknife realization, a number between 0 and 1.
- task_option [optional -default:'jackknife'] - either 'jackknife' or 'regular_calc' for the requested task.
- num_division [optional - default:10] - Number of random gene division iterations for each calculation.
Example set of arguments: