filename2sample {genomatic}R Documentation

Extracts sample names from file names

Description

Takes the field 'File.Name' and extracts the sample name from it.

Usage

filename2sample(file.name)

Arguments

file.name A vector of File.Names.

Details

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.

Value

A data.frame containing sample names.

Author(s)

Brian J. Knaus bknaus@fs.fed.us http://brianknaus.com

References

Knaus, B.J. In prep. Genomatic: an R package for DNA fragment analysis project management.


[Package genomatic version 0.0-7 Index]