|
1 | 1 | # Usage |
2 | | -This section describes how to use *pyRona*. It is not yet complete, and for now it is just a shallow copy of the help text. |
3 | 2 |
|
4 | | -``` |
5 | | -How to get online help: |
6 | | - -h, --help show this help message and exit |
7 | | -
|
8 | | -Input/Output options: |
9 | | - -pc PRESENT_COVARS_FILE |
10 | | - File with Present environmental data. |
11 | | - -fc FUTURE_COVARS_FILE |
12 | | - File with Future environmental data. |
13 | | - -pop POPNAMES_FILE File with population names. |
14 | | - -beta BAYPASS_SUMMARY_BETAI_FILE |
15 | | - Baypass summary betai file. |
16 | | - -pij BAYPASS_PIJ_FILE |
17 | | - Baypass pij file. |
18 | | - -out OUTFILE Path to where RONA plot should be saved. Supports PDF, SVG and PNG extensions. |
19 | | -
|
20 | | -Program execution options: |
21 | | - -bf BAYES_FACTOR Bayes factor treshold for considering associations. |
22 | | - -covars NUM_COVARS Number of covars to calculate the RONA for. |
23 | | - -outliers {0,1,2} Number of outliers to remove. 0 does no outier removal, 1 removes **at most** 1 outlier and 2 removes **any** number of outliers that match the distance criteria. |
24 | | - -immutables IMMUTABLES [IMMUTABLES ...] |
25 | | - List of immutable covariates. These are not even parsed from the betai file. By default the first 3 covars are skipped. You can enter any other values here. |
26 | | - -ronatype {diff,absdiff,dist} |
27 | | - Type of RONA to calculate. Default is absolute difference as in Rellstab et al. 2016. Other options are 'difference' (not abs) and 'distance' (future vs. trendline). |
28 | | -
|
29 | | -Miscellaneous options: |
30 | | - -no-plots Pass this option if you don't want individual regression plots to be drawn. |
31 | | - -no-weighted-means Pass this option if you don't want to useweighted means for RONA calculations. |
32 | | -``` |
| 3 | +This section describes how to use *pyRona*. All options as of version 0.2.0 are described here. |
| 4 | + |
| 5 | +## Parameters |
| 6 | + |
| 7 | +* Getting help |
| 8 | + - Simply calling the program, or issuing the single argument `-h` will print all the available options on the console |
33 | 9 |
|
34 | | -Example run: |
| 10 | +* I/O options |
| 11 | + - *pyRona* **requires** several files as input, that should be specified inn the following options: |
| 12 | + - `-pc`: File containing current environmental variables (formatted as per *BayPass* input) |
| 13 | + - `-fc`: File containing future environmental variables (formatted the same as the present conditions file) |
| 14 | + - `-pop`: File with names of populations (one population per line) |
| 15 | + - `-beta`: *BayPass* output "summary_betai" |
| 16 | + - `-pij`: *BayPass* output "PIJ" |
| 17 | + - Furthermore, *pyRona* also requires an output to be specified, for saving the RONA plot. |
| 18 | + - `-out`: File where the plot will be saved. This option is extension aware, and entering the extension as "PDF", "SVG" or "PNG", will make *pyRona* save the plot in the respective format. |
| 19 | +* Parameters |
| 20 | + - *pyRona* requires some parameters to be set in order to perform the analysis. These are: |
| 21 | + - `-bf`: Bayes Factor threshold. This is the value above which associations are considered significant. |
| 22 | + - `-covars`: [**optional**] Number of covars to calculate the RONA for (default: 3) |
| 23 | + - `-outliers`: [**optional**] Number of outliers to remove - "0" skips outlier removal, "1" removes a maximum of 1 outlier (if there is one), "2" removes any number of markers considered outliers (default: 2) |
| 24 | + - `-immutables`: Number of covariates to skip from the environmental variables file. Usefull to skip variables that are the same in te present covars and future covars file, such as latitude (default: 3). |
| 25 | + - `-ronatype`: Defines the RONA is calculated. `absdiff` performs calculations as described in Rellstab et al. 2016 - using the absolute value of the differences, `diff` uses the differences without modulus, and `dist` accounts simply for the distance between the future condition and the trendline (default: `absdiff`). |
| 26 | +* Other options (**all optional**) |
| 27 | + - *pyRona* allows for setting some further miscellaneous options: |
| 28 | + - `-no-plots`: Do not draw the individual regression plots. |
| 29 | + - `-no-weighted-means`: Use this option if you wish to use *means* instead of *weighted means* for the RONA calculation. |
| 30 | + |
| 31 | + |
| 32 | +## Example run: |
35 | 33 |
|
36 | 34 | ``` |
37 | | -Coming soon |
| 35 | +pyRona -pc Popfiles/ENVFILE -fc Popfiles/ENVFILE_rpc26 -be Analyses/Baypass/mcmc_aux/Qsuber_GBS_07_loki_mcmc_aux_summary_betai.out -pij Analyses/Baypass/mcmc_aux/Qsuber_GBS_07_loki_mcmc_aux_summary_pij.out -pop Popfiles/popnames_single_GEO.txt -bf 15 -outliers 0 -out ~/Desktop/rpc26.pdf -covars 4 |
38 | 36 | ``` |
| 37 | + |
| 38 | +This command will execute *pyRona* using the input files specified by `-pc`, `-fc`, `-be`, `-pij` and `-pop`, using the value `15` as the BF threshold, skipping outlier removal and calculating the RONA value for the most frequent 4 associated environmental variables. The plot will be saved as a PDF under `~/Desktop/rpc26.pdf`. |
0 commit comments