maf_to_custom_track.Rd
Convert a maf-formatted data frame into a bed custom track file for UCSC.
maf_to_custom_track(
maf_data,
these_samples_metadata,
seq_type = "genome",
output_file,
as_bigbed = FALSE,
colour_column = "lymphgen",
as_biglolly = FALSE,
track_name = "GAMBL mutations",
track_description = "mutations from GAMBL",
verbose = FALSE,
padding_size = 0
)
Either a maf loaded from disk or from the database using a get_ssm function.
Optional argument, a metadata table subset to the samples of interest. If not provided, the function will run get_gambl_metadata for all available samples.
The seq type you want back, default is "genome".
Name for your new bed file that can be uploaded as a custom track to UCSC.
Boolean parameter controlling the format of the returned file. Default is FALSE.
Set the colouring properties of the returned bed file. Per default, this function will assign colour based on "lymphgen".
Boolean parameter controlling the format of the returned file. Default is FALSE (i.e a BED file will be returned).
Track name. Default is "GAMBL mutations"
Track description. Default is "mutations from GAMBL"
Default is FALSE.
Optional parameter specifying the padding size in the returned file, default is 0.
Nothing.
This function takes an incoming MAF and converts it to a UCSC Genome Browser ready BED (or bigbed/biglolly) file. Optional parameters available for further customization of the returned file. For more information, refer to the parameter descriptions and function examples.
if (FALSE) {
maf_to_custom_track(my_maf_data, "/home/rmorin/private/some_mutations.bed")
}