Skip to content

Perform four-gamete test and linkage disequilibrium analysis on pairwise SNP loci

Notifications You must be signed in to change notification settings

OmonkeyGOD/FGTLDA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

FGTLDA

Perform four-gamete test and linkage disequilibrium analysis on biallelic SNP loci.
FGTLDA.R is a script to conduct four-gamete test and linkage disequilibrium analysis using SNP calling results.

Prerequisite

library(data.table)

Input:

A tab-delimited text file containing genotypes of a population with the sample IDs as the column names and the SNP IDs as the row names. Both file path and file name need to be defined while running the script.

Output:

Two files will be generated. A tab-delimited text file with each row listing the counts for genotype combinations of the tested two loci, SNP IDs, normalized D, $r^2$, and p-value. A text file ending with .FDR, containing adjusted p-values, will also be generated.

Running the script:

Rscript /path/to/FGTLDA.R /path/to/input.txt /path/to/output.txt

Use the data in the example folder for testing purposes.

About

Perform four-gamete test and linkage disequilibrium analysis on pairwise SNP loci

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages