Contains methods for reading and displaying contents of the
Fusions.csv
file output from TSO.
Returns a tibble where the columns are (based on the input file header metadata):
Sample: input sample ID.
Name: Fusion name as reported by manta.
Chr1/Chr2: The chromosome of the 1st/2nd breakend.
Pos1/Pos2: The position of the 1st/2nd breakend.
Direction: The direction of how the breakends are joined together.
Alt_Depth: The number of read-pairs supporting the fusion call.
BP1_Depth/BP2_Depth: Number of read-pairs aligned to the 1st/2nd breakend.
Total_Depth: Max number of read-pairs aligned to a fusion breakend.
VAF: Variant allele frequency.
Gene1/Gene2: Genes that overlap the 1st/2nd breakend.
Contig: The fusion contig.
Filter: Indicates whether the fusion has passed all of the fusion filters.
Is_Cosmic_GenePair: Indicates whether the gene pair has been reported by Cosmic(True/False).
Super class
dracarys::File
-> TsoFusionsCsvFile
Methods
Method read()
Reads the Fusions.csv
file output from TSO.
Method write()
Writes a tidy version of the Fusions.csv
file output from TSO.
Examples
x <- system.file("extdata/tso/sample705_Fusions.csv", package = "dracarys")
fus <- TsoFusionsCsvFile$new(x)
d_parsed <- fus$read() # or read(fus)
fus$write(d_parsed, out_dir = tempdir(), prefix = "sample705", out_format = "tsv")