Open royalzeng opened 8 months ago
and if you tell me how to use it i'll be very grateful
You can get it with the code: devtools::install_github("Tongbcc/PaternityT")
This R package is mainly designed for calculating the data of parentage and offspring data, and it is written based on the PLINK format data. You can type ?CPI_calculator
to view the usage instructions.
Usage:
CPI_calculator(
x,
y = NULL,
genename,
genenamey = NULL,
genestart = 2,
genesel = NULL,
onecolumn = FALSE,
sexcolumn = NULL,
threshold = 0.9999
)
Here are 9 parameters:
x: A matrix or data frame containing individual names and gene information. The first column must be an individual_ID. Just like the plink .ped format
y: Another gene information matrix or data frame, default is NULL.
genename: A vector or matrix containing only all gene names. Just like the second column in plink .map files. The order of gene names must correspond to the order in x.
genenamey: Another vector or matrix containing only all gene names. The order of gene names must correspond to the order in y, default is NULL.
Note that the x and genename are required parameters. When y and genenamey are missing, it will compute the CPI and POP between every pair of individuals in the x matrix. Otherwise, it will calculate the index between individuals in the x matrix and individuals in the y matrix. If you have two matrices, typically you would place the offspring in the x matrix and the parents in the y matrix.
hello,i want to know how to install this R package,thank you very much