convert | R Documentation |
Sequence to LUS format converter
convert(dat, lookupf = NULL, type = "LUS", toFile = FALSE, outf = "converted.csv", printMissing = TRUE, missf = "MissingSequences.csv", LUSsymb = "_")
dat |
A data table with format [SampleName,Marker,Allele,Height] where Alleles are sequences. Height column is optional (indicating Evid if present and Ref if not present). |
lookupf |
The destination/path of the UAS Lookup file (use build-in by default). Must be an xlsx file with same format. Not used if LUSstrR installed |
type |
The convertion type (RU, LUS, LUS+) |
toFile |
Boolean of whether the converted data table should be saved to workspace |
outf |
The file name of the converted data table |
printMissing |
A boolean of whether alleles not found in the look-up table should be printed to a seperate file |
missf |
The file name of the missing alleles (not found in look-up table) |
LUSsymb |
The separator format to use. |
This script enables users to provide their own UAS sequence data and convert the sequences directly to different formats. The formats supported are RU (Repeat Unit/CE), LUS (Longest Uninterupted Stretch), LUS+ (extended version of LUS), or STRseq (The short format provided by STRseq) The lookup table was created by Rebecca Just. The converter can also utilize LUSstrR if installed
Returning a table with format [SampleName,Marker,Allele,Height]
Oyvind Bleka (in collaboration with Rebecca Just)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.