### Install GSL Locally Source: https://github.com/alachins/raisd/blob/master/README.md Alternative installation script for GSL when system-wide installation is not possible. ```bash $ ./install-RAiSD-GSL.sh ``` -------------------------------- ### Install ZLIB on Ubuntu Source: https://github.com/alachins/raisd/blob/master/README.md Install the required zlib library dependency on Ubuntu systems. ```bash $ sudo apt-get install zlib1g-dev ``` -------------------------------- ### Verify RAiSD Installation Source: https://github.com/alachins/raisd/blob/master/README.md Downloads a sample dataset and executes a test run to confirm the software is installed and functioning correctly. ```bash $ wget 139.91.162.50/raisd_data/d1.tar.gz $ tar -xvzf d1.tar.gz $ ./RAiSD -n test_run -I d1/msselection1.out -L 100000 ``` -------------------------------- ### Download and Compile RAiSD Source: https://github.com/alachins/raisd/blob/master/README.md Standard commands to download the source code and run the installation script. ```bash $ mkdir RAiSD $ cd RAiSD $ wget https://github.com/alachins/raisd/archive/master.zip $ unzip master.zip $ cd raisd-master $ ./install-RAiSD.sh ``` -------------------------------- ### Perform Common-Outlier Analysis with Custom Thresholds Source: https://github.com/alachins/raisd/blob/master/README.md Example command for common-outlier analysis using specific outlier threshold (-COT) and distance matching (-COD) parameters. ```bash ../RAiSD -n common-outliers -CO SweeD_Report.SARS-CoV-2 1 2 RAiSD_Report.SARS-CoV-2 1 2 -COT 0.05 -COD 400 ``` -------------------------------- ### Configure Local GSL Library Path Source: https://github.com/alachins/raisd/blob/master/README.md Command to set the library path for locally installed GSL before executing RAiSD. ```bash $ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/gsl/lib ``` -------------------------------- ### GSL Compilation Error Message Source: https://github.com/alachins/raisd/blob/master/README.md Example of the error output when the GNU Scientific Library is missing during compilation. ```text Error message: Creating directories Beginning release build Compiling: sources/RAiSD.c -> build/release/RAiSD.o In file included from sources/RAiSD.c:22:0: sources/RAiSD.h:30:27: fatal error: gsl/gsl_errno.h: No such file or directory #include ^ compilation terminated. make[1]: *** [build/release/RAiSD.o] Error 1 make: *** [release] Error 2 ``` -------------------------------- ### Access RAiSD Help Source: https://github.com/alachins/raisd/blob/master/README.md Displays the quick-reference help message containing all supported command-line flags. ```bash $ RAiSD -h ``` -------------------------------- ### Run RAiSD with ms or VCF input Source: https://github.com/alachins/raisd/blob/master/README.md Basic command line execution for processing ms and VCF formatted files. ```bash $ ./RAiSD -n ms_run -I input_file.ms -L 1000000 ``` ```bash $ ./RAiSD -n vcf_run -I input_file.vcf ``` -------------------------------- ### Configure window size Source: https://github.com/alachins/raisd/blob/master/README.md Set the sliding-window size using the -w flag. Only even numbers are supported. ```bash $ ./RAiSD -n test_run -I d1/msselection1.out -L 100000 -w 20 ``` -------------------------------- ### Compile RAiSD with ZLIB support Source: https://github.com/alachins/raisd/blob/master/README.md Compile the source code using the dedicated MakefileZLIB to enable processing of compressed GZ VCF files. ```bash $ make clean $ make -f MakefileZLIB ``` -------------------------------- ### Configure SFS edges with RAiSD Source: https://github.com/alachins/raisd/blob/master/README.md Include doubletons or tripletons in the μ_SFS calculation using the -c flag. ```bash $ ./RAiSD -n test_run -I d1/msselection1.out -L 100000 -c 2 ``` -------------------------------- ### Define missing-data strategies Source: https://github.com/alachins/raisd/blob/master/README.md Configuration options for handling missing data using the -M parameter. ```text 0: Discards all SNPs with missing data (default) 1: Imputes N per SNP 2: Creates a mask for valid alleles and treats N as a third state 3: Creates a mask for valid alleles and ignores allele pairs with N ``` -------------------------------- ### RAiSD Execution Source: https://github.com/alachins/raisd/blob/master/README.md The primary command to execute the RAiSD analysis tool with required input parameters. ```APIDOC ## RAiSD Execution ### Description Executes the RAiSD analysis on a provided input file. ### Usage ./RAiSD -n [run_id] -I [input_path] [options] ### Parameters - **-n** (STRING) - Required - Unique run ID for output files. - **-I** (STRING) - Required - Path to the input file (ms or vcf format). - **-L** (INTEGER) - Optional - Size of the region in basepairs (for ms files). - **-S** (STRING) - Optional - Path to the list of samples (VCF only). - **-m** (FLOAT) - Optional - Minor allele frequency threshold (0.0-1.0). - **-M** (INTEGER) - Optional - Missing-data handling strategy (0-3). - **-y** (INTEGER) - Optional - Ploidy value. - **-X** (STRING) - Optional - Path to tab-delimited file of regions to exclude. - **-B** (INTEGER INTEGER) - Optional - Chromosome size in basepairs and SNPs (VCF only). - **-o** (FLAG) - Optional - Enables dataset check and ordering of VCF input. ### Help - **-h** - Displays the quick-reference help message. ``` -------------------------------- ### Generate Manhattan plots with RAiSD Source: https://github.com/alachins/raisd/blob/master/README.md Create a PDF report for all chromosomes using the -A parameter with a quantile probability value. ```bash $ ./RAiSD -n test_run -I d1/msselection1.out -L 100000 -A 0.995 ``` -------------------------------- ### Missing Library Error Message Source: https://github.com/alachins/raisd/blob/master/README.md Error output displayed when the GSL library cannot be located at runtime. ```text ./RAiSD: error while loading shared libraries: libgsl.so.25: cannot open shared object file: No such file or directory ``` -------------------------------- ### Evaluate sensitivity (TPR) with -k and -l Source: https://github.com/alachins/raisd/blob/master/README.md Commands to determine the FPR threshold using neutral data and then apply it to selection data to calculate the TPR. ```bash $ ./RAiSD -n test_run_fpr -I d1/msneutral1.out -L 100000 -k 0.05 ``` ```text SORTED DATA (FPR 0.050000) Size 1000 Highest Score 0.000450000 Lowest Score 0.000089600 FPR Threshold 0.000221867 Threshold Location 50 ``` ```bash $ ./RAiSD -n test_run_tpr -I d1/msselection1.out -L 100000 -l 0.000221867 ``` ```text SCORE COUNT (Threshold 0.000222) TPR 0.995000 ``` -------------------------------- ### Execute RAiSD in Mode B for Common-Outlier Analysis Source: https://github.com/alachins/raisd/blob/master/README.md Use this command when a RAiSD report already exists, providing both the SweeD and RAiSD report paths with their respective column indices. ```bash RAiSD -n myrunname -CO SweeD_Report.RUNNAME 1 2 RAiSD_Report.RUNNAME2 1 2 ``` -------------------------------- ### Execute RAiSD in Mode A for Common-Outlier Analysis Source: https://github.com/alachins/raisd/blob/master/README.md Use this command to process a dataset and perform common-outlier analysis simultaneously by providing the SweeD report path and column indices. ```bash RAiSD -n myrunname -I dataset.vcf -G SweeDgridSize -CO SweeD_Report.RUNNAME 1 2 ``` -------------------------------- ### Generate RAiSD plots Source: https://github.com/alachins/raisd/blob/master/README.md Use the -P parameter to generate a set of four plots in a single PDF file. Requires R and Rscript to be in the system PATH. ```bash $ ./RAiSD -n test_run -I d1/msselection1.out -L 100000 -P ``` -------------------------------- ### Measure success rate with -d and -T Source: https://github.com/alachins/raisd/blob/master/README.md Command to report the percentage of runs within a specific distance threshold from the selection target. ```bash $ ./RAiSD -n test_run_success_rate -I d1/msselection1.out -L 100000 -T 50000 -d 1000 ``` ```text SUCCESS RATE (Distance 1000) mu-VAR 0.692 mu-SFS 0.022 mu-LD 0.019 MuStat 0.626 ``` -------------------------------- ### Evaluate accuracy with -T Source: https://github.com/alachins/raisd/blob/master/README.md Command to report accuracy based on the average distance to a known sweep location. ```bash $ ./RAiSD -n test_run_accuracy -I d1/msselection1.out -L 100000 -T 50000 ``` ```text AVERAGE DISTANCE (Target 50000) mu-VAR 1022.500 mu-SFS 26137.655 mu-LD 18577.810 MuStat 1253.685 ``` -------------------------------- ### Define excluded regions for RAiSD Source: https://github.com/alachins/raisd/blob/master/README.md Provide a tab-delimited text file to exclude specific genomic regions from the analysis. ```text chr1 0 10 chr1 20 30 chr2 50 100 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.