This function performs quality control to test for the batch effect between a study cohort and a reference population. And fit a weighted null model.
TestforBatchEffect(
objNull,
data,
GenoFile = NULL,
GenoFileIndex = NULL,
Geno.mtx = NULL,
SparseGRMFile = NULL,
RefAfFile,
OutputFile,
IndicatorColumn,
SurvTimeColumn,
SampleIDColumn
)
A dataframe of marker info and reference MAF.
a WtCoxG_NULL_Model
object, which is the output of GRAB.NullModel
.
a data.frame, list or environment (or object coercible by as.data.frame
to a data.frame), containing the variables in formula. Neither a matrix nor an array will be accepted.
A character string of the genotype file. See Details section for more details.
Additional index file(s) corresponding to GenoFile. See Details section for more details.
A matrix of genotype data. If provided, it will be used instead of GenoFile. The matrix should have samples in rows and markers in columns.
a path to file of output to be passed to GRAB.NullModel
.
A character string of the reference file. The reference file must be a txt
file (header required) including at least 7 columns: CHROM
, POS
, ID
, REF
, ALT
, AF_ref
, AN_ref
.
A character string of the output file name. The output file will be a txt
file.
A character string of the column name in data
that indicates the case-control status. The value should be 0 for controls and 1 for cases.
A character string of the column name in data
that indicates the survival time.
A character string of the column name in data
that indicates the sample ID.