filename2sample {genomatic} | R Documentation |
Takes the field 'File.Name' and extracts the sample name from it.
filename2sample(file.name)
file.name |
A vector of File.Names. |
The file name is expected to follow the format specified in the function ‘plate_write.’ An example is ‘A10_PUTR_068_01_A10_02.fsa’ where the sample name is ‘PUTR_068_01.’ This function extracts this sample name assuming the character ‘_’ delimits fields within ‘File.Name’ and returns a data.frame containing just the sample name.
A data.frame containing sample names.
Brian J. Knaus bknaus@fs.fed.us http://brianknaus.com
Knaus, B.J. In prep. Genomatic: an R package for DNA fragment analysis project management.