selex.saveAnnotation {SELEX} | R Documentation

## Save sample annotations to file

### Description

A function used to save sample metadata visible to the current SELEX session in a sample annotation file.

### Usage

    selex.saveAnnotation(filePath)

### Arguments

`filePath` | Location on disk to create the sample annotation file. The full system path must be specified.

### Details

A sample annotation file is an XML file that acts as a database storing metadata for different SELEX experiments. `selex.saveAnnotation` provides a convenient way to permanently store manually entered sample information using `selex.defineSample`. For more information on the XML format used to store the information, see `selex.loadAnnotation`.

### Value

Not applicable

### See Also

`selex.defineSample`, `selex.loadAnnotation`, `selex.sampleSummary`

### Examples

    selex.defineSample(seqName='R0.libraries', seqFile=sampleFiles[1],
                    sampleName='R0.barcodeGC', round=0, varLength=16,
                    leftBarcode='TGG', rightBarcode='CCAGCTG')

    selex.saveAnnotation(paste0(workDir, "sample_annotations.xml"))

[Package SELEX version 1.18.0 Index]