Input formats for tensorQTL
mastertensorQTL requires three main inputs:
- Phenotypes: Provided in BED format (
.bed,.bed.gz) or.parquet. The file must have a single header line starting with#. The first four columns must bechr,start,end, andphenotype_id. Subsequent columns must be sample identifiers matching the genotype input.- If
start == end-1, the position represents the center of the cis-window (e.g., TSS). - If
start != end, the cis-window is defined as[start-window, end+window].
- If
- Covariates: A tab-delimited text file (format:
covariates x samples) or a dataframe (format:samples x covariates) with row and column headers. - Genotypes:
- Preferred: PLINK2 format (
.pgen,.pvar,.psam). These can be generated from a VCF usingplink2. - Alternatives: BED/BIM/FAM format or a parquet dataframe (
genotypes x samples).
- Preferred: PLINK2 format (