validate.svc: Initialization of SVC data

Description Usage Arguments Value Examples

View source: R/validate.input.data.r

Description

This function validates and reformats the SV (structural variant) calls input. It is used internaly by 'svpluscnv' functions that require this type of data. A few formatting rules are enforced: 1) The input must obtain 8 columns in the following order(sample ID, chromosome of origin, strand of origin, position of origin,, chromosome of destination, strand of destination, position of destination, SV class) 2) SV classes accepted: DEL(deletion), DUP(duplication), INS(insertion), TRA(translocation), INV(inversion) and BND(break end) 3) Any variant in which chromosome of origin and destination differ are encoded as TRA (translocation) 4) pos1 < pos2 is enforced for all variants in which chromosome of origin and destination are the same 5) The class BND can be used to operate with complex events as long as both break ends are the same chromosome

Usage

1
validate.svc(sv.df)

Arguments

sv.df

(data.frame) structural variant table including the following fields: sample, chrom1, pos1, strand1, chrom2, pos2, strand2, svclass

Value

an instance of the class 'svcnvio' containing SV data derived from SVC data type; A unique id (uid) column is also added

Examples

1

ccbiolab/svpluscnv documentation built on Sept. 9, 2020, 4:52 a.m.