View source: R/reformat.syntenyData.R
reformat.syntenyData | R Documentation |
Reformat synteny data
reformat.syntenyData(
file_data,
filename,
directory = NULL,
reference.species = reference.sps,
target.species = target.sps
)
file_data |
input file name for descrambler .map data |
filename |
output file name for reformatted data |
directory |
string containing file path to chosen directory to save text file |
reference.species |
reference species identifier as a character string |
target.species |
target species identifier as a character string |
This function takes output from alignment softwares such as deschrambler and inferCARs and re-formats it for syntenyPlotteR - this does not curate files only re-formats it
It requires as input:
The data output from deschrambler or inferCARs
the desired output file name
There are optional parameters for some customization of this function:
reference.species allows you to set the reference species identifier that will be set in the final output table i.e. reference.species = "ref"
target.species allows you to set the target species identifier that will be set in the final output table i.e. target.species = "tar"
The directory where the text file should be saved, as default the file is saved to temporary directory, change by inputting: directory = "path/to/directory"
Example: reformat.syntenyData("deschrambler.output", "reformatted.data", directory = "path/to/directory", reference.species = "ref", target.species = "tar" )
A text file with the reformatted data
# Create object containing file path to external dataset
# (see vignette to follow examples with personal data)
file <- system.file("extdata", "example_map_1.map", package = "syntenyPlotteR")
# -----------------------------------------------------------------------------------
# Run reformat.syntenyData function
# To run example and save file to working directory
# add directory parameter and set working directory
# To run example with personal data see vignette
reformat.syntenyData(file, "outputName")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.