Description: Alters an existing library by either adding spectra, deleting spectra, or changing the annotation of existing spectra. The version of the library will change from n.n to n+1.n if spectra are added or deleted or it will change to n.n+1 if annotations are changed.
Usage:
BlibUpdate [options] <operation> <updates> <library>
Input:
- <operation> - a tag to indicate adding, deleting, or annotating spectra
- <updates> - a list of the changes to make, the format of which varies by operation
- <library> - the library to be altered
Output: An updated library with new version number
Options:
-v, --verbose <0|1|2>
- Set the verbosity level of the output to stderr. Default is 2.Operations and Updates:
-a, --add
- Insert spectra into the library. Additions can come from either an existing library or from an SSL file. The unique ID numbers of spectra added from an existing library will be changed.-d, --delete
- Remove spectra from the library. The updates file should have the one-word header'delete'
on the first line, followed by a list of library ID numbers, one per line. See BlibStats for acquiring a list of IDs.-n, --annotate
- Change the annotations of existing spectra. The updates file should be a tab-delimited list of ID number and new annotation. The first line should read'id annotation'
.Warning messages:
Warning: library has been filtered. You might want to make these changes to the unfiltered library.
Changes made to the filtered library will not be reflected in the redundant library and can lead to inconsistencies.
WARNING: Spectrum X was not found in the library
The library did not contain ID number X.
BiblioSpec