generate.impute.input.snp6: Prepares data for impute

View source: R/prepare_SNP6.R

generate.impute.input.snp6R Documentation

Prepares data for impute

Description

The raw BAF and LogR data have been dumped into separate files. Now the data needs to be prepared to go into Impute2, which is essentially morphing it into the correct format. This function does that per chromosome and can therefore be run in parallel for each chromosome.

Usage

generate.impute.input.snp6(
  infile.germlineBAF,
  infile.tumourBAF,
  outFileStart,
  chrom,
  chr_names,
  problemLociFile,
  snp6_reference_info_file,
  imputeinfofile,
  is.male,
  heterozygousFilter = "none"
)

Arguments

infile.germlineBAF

Germline BAF file generated by cel2baf.logr

infile.tumourBAF

Tumour BAF file generated by cel2baf.logr

outFileStart

Prefix of the filenames where the Impute2 input will be written. These will be extended with the chromosome

chrom

Char with the chromosome for which an Impute2 file is produced

chr_names

A vector of chromosome names that can be considered. This vector can just contain the chromosome for which the Impute2 file is produced, but can contain all chromosomes.

problemLociFile

A string that points to a file with problematic loci that should be removed from the data

snp6_reference_info_file

String to the SNP6 reference info file that comes with Battenberg SNP6

imputeinfofile

String to the impute 1000 genomes reference info file that comes with Battenberg

is.male

Boolean that is True if the donor is male, False when female

heterozygousFilter

BAF cutoff for calling homozygous SNPs

Author(s)

dw9 jd


Wedge-Oxford/battenberg documentation built on Aug. 4, 2023, 6:27 p.m.