### Install PopLDdecay on Linux/macOS (Method 1) Source: https://github.com/hewm2008/poplddecay/blob/main/Readme.txt Installs PopLDdecay using git clone, configure, and make. Ensure zlib library is installed if linking fails. ```bash git clone https://github.com/hewm2008/PopLDdecay.git chmod 755 configure; ./configure; make; mv PopLDdecay bin/; # [rm *.o] ``` -------------------------------- ### Install PopLDdecay via Git Source: https://github.com/hewm2008/poplddecay/blob/main/README.md Clone the repository, configure, compile, and install PopLDdecay on Linux/Unix or macOS systems. Ensure zlib library is installed. ```bash git clone https://github.com/hewm2008/PopLDdecay.git cd PopLDdecay; chmod 755 configure; ./configure; make; mv PopLDdecay bin/; # [rm *.o] ``` -------------------------------- ### Build PopLDdecay (Method 2 - macOS) Source: https://github.com/hewm2008/poplddecay/blob/main/INSTALL.txt Execute the make script after copying zlib libraries for macOS installation. ```bash sh make.sh # or [make && make clean] ``` -------------------------------- ### Install PopLDdecay from Archive Source: https://github.com/hewm2008/poplddecay/blob/main/README.md Extract the PopLDdecay archive, compile the source code, and run the executable on Linux/Unix or macOS systems. Ensure zlib library is installed. ```bash tar -zxvf PopLDdecayXXX.tar.gz cd PopLDdecayXXX; cd src; make ; make clean # or [sh make.sh] ../bin/PopLDdecay ``` -------------------------------- ### Copy zlib Libraries (Method 2 - macOS) Source: https://github.com/hewm2008/poplddecay/blob/main/INSTALL.txt Copy zlib library files to the specified directory for macOS installation. ```bash cp libz.a libz.so* PopLDdecayXX/src/include/zlib ``` -------------------------------- ### Clone and Build PopLDdecay (Method 1) Source: https://github.com/hewm2008/poplddecay/blob/main/INSTALL.txt Use this method to clone the repository and build the software using make. ```bash git clone https://github.com/hewm2008/PopLDdecay.git chmod 755 configure ; ./configure ; make; mv PopLDdecay bin/ ; ``` -------------------------------- ### Configure and Build PopLDdecay (Method 2 - Other) Source: https://github.com/hewm2008/poplddecay/blob/main/INSTALL.txt Steps to configure and build PopLDdecay using autotools if standard methods fail. ```bash aclocal #// src/automake-1.9/aclocal autoconf #// src/automake-1.9/autoconf autoheader #// src/automake-1.9/autoheader automake --add-missing #// src/automake-1.9/automake --add-missing ./configure make ``` -------------------------------- ### Extract and Build PopLDdecay (Method 2 - Linux/Unix) Source: https://github.com/hewm2008/poplddecay/blob/main/INSTALL.txt Extract the tar archive, navigate to the source directory, and compile the software. ```bash tar -zxvf PopLDdecayXXX.tar.gz cd PopLDdecayXXX; cd src; make ; make clean ../bin/PopLDdecay ``` -------------------------------- ### PopLDdecay Usage Parameters Source: https://github.com/hewm2008/poplddecay/blob/main/Readme.txt Displays the command-line usage and parameter descriptions for PopLDdecay. Key parameters include input/output files, subgroup specification, and filtering options. ```php Usage: PopLDdecay -InVCF -OutStat -InVCF Input SNP VCF Format -InGenotype Input SNP Genotype Format -OutStat OutPut Stat Dist ~ r^2 File -SubPop SubGroup SampleList of VCFFile [ALLsample] -MaxDist Max Distance (kb) between two SNP [300] -MAF Min minor allele frequency filter [0.005] -Het Max ratio of het allele filter [0.88] -Miss Max ratio of miss allele filter [0.25] -OutFilterSNP OutPut the final SNP to calculate -OutPairLD OutPut the PairWise SNP LD info [0] 0/2:No_Out 1/3/4:Out_Brief 5:Out_Full -help Show more help [hewm2008 v3.45] ``` -------------------------------- ### PopLDdecay Usage Parameters Source: https://github.com/hewm2008/poplddecay/blob/main/README.md This snippet outlines the command-line parameters for running PopLDdecay. It specifies input file formats, output options, and various filtering criteria. ```php Usage: PopLDdecay -InVCF -OutStat -InVCF Input SNP VCF Format -InGenotype Input SNP Genotype Format -OutStat OutPut Stat Dist ~ r^2 File -SubPop SubGroup SampleList of VCFFile [ALLsample] -MaxDist Max Distance (kb) between two SNP [300] -MAF Min minor allele frequency filter [0.005] -Het Max ratio of het allele filter [0.88] -Miss Max ratio of miss allele filter [0.25] -EHH To Run EHH Region decay set StartSite [NA] -OutFilterSNP OutPut the final SNP to calculate -OutType 1: R^2 result 2: R^2 & D' result 3:PairWise LD Out[1] See the Help for more OutType [1-8] details -help Show more help [hewm2008 v3.45] ``` -------------------------------- ### Calculate LD decay from VCF file Source: https://github.com/hewm2008/poplddecay/blob/main/Readme.txt Calculates LD decay directly from a GATK VCF file. Specify input VCF and output statistics file. ```bash ./bin/PopLDdecay -InVCF SNP.vcf.gz -OutStat LDdecay ``` -------------------------------- ### Convert Plink to Genotype and Calculate LD Decay Source: https://github.com/hewm2008/poplddecay/blob/main/README.md Convert Plink files to genotype format using a provided Perl script, then run PopLDdecay to calculate linkage disequilibrium decay. Specify input genotype file and output statistics file. ```bash perl bin/mis/plink2genotype.pl -inPED in.ped -inMAP in.map -outGenotype out.genotype ; ./bin/PopLDdecay -InGenotype out.genotype -OutStat LDdecay ``` -------------------------------- ### Convert plink to genotype format and calculate LD decay Source: https://github.com/hewm2008/poplddecay/blob/main/Readme.txt Converts plink files (.ped, .map) to genotype format using a Perl script, then calculates LD decay using the generated genotype file. ```bash perl bin/mis/plink2genotype.pl -inPED in.ped -inMAP in.map -outGenotype out.genotype ; ./bin/PopLDdecay -InGenotype out.genotype -OutStat LDdecay ``` -------------------------------- ### Plot LD Decay for Multiple Populations Source: https://github.com/hewm2008/poplddecay/blob/main/README.md Generate plots for linkage disequilibrium decay comparing multiple populations. Use a list file containing population IDs and their corresponding result paths. Specify the input list file and the desired output prefix. ```perl perl bin/Plot_MutiPop.pl -inList Pop.ResultPath.list -output Fig ``` -------------------------------- ### Calculate LD Decay from VCF Source: https://github.com/hewm2008/poplddecay/blob/main/README.md Use PopLDdecay to calculate linkage disequilibrium decay directly from a GATK VCF file. Specify input VCF and output statistics file. ```bash ./bin/PopLDdecay -InVCF SNP.vcf.gz -OutStat LDdecay ``` -------------------------------- ### Calculate Subgroup LD Decay from VCF Source: https://github.com/hewm2008/poplddecay/blob/main/README.md Calculate linkage disequilibrium decay for a specific subgroup of samples from a VCF file. Provide the input VCF, output statistics file, and a list of sample names for the subgroup. ```bash ./bin/PopLDdecay -InVCF -OutStat -SubPop GroupA_sample.list ``` -------------------------------- ### Plot LD Decay for One Population Source: https://github.com/hewm2008/poplddecay/blob/main/README.md Generate a plot for linkage disequilibrium decay for a single population using the statistics file. Specify the input statistics file and the desired output prefix. ```perl perl bin/Plot_OnePop.pl -inFile LDdecay.stat.gz -output Fig ``` -------------------------------- ### Plot LD Decay for One Population Across Multiple Chromosomes Source: https://github.com/hewm2008/poplddecay/blob/main/README.md Generate a plot for linkage disequilibrium decay across multiple chromosomes for a single population. Use a list file containing the result paths for each chromosome. Specify the input list file and the desired output prefix. ```perl perl bin/Plot_OnePop.pl -inList Chr.ResultPath.List -output Fig ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.