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.