OpenMS
Loading...
Searching...
No Matches
RibonucleotideTSVDataProvider Class Reference

Loads Ribonucleotide data from a tab-separated values (TSV) file. More...

#include <OpenMS/CHEMISTRY/RibonucleotideTSVDataProvider.h>

Inheritance diagram for RibonucleotideTSVDataProvider:
RibonucleotideDataProvider

Public Member Functions

 RibonucleotideTSVDataProvider (const std::string &filename)
 
std::vector< RibonucleotideEntry > loadRibonucleotides () override
 Load ribonucleotides from whatever source this provider wraps.
 
- Public Member Functions inherited from RibonucleotideDataProvider
virtual ~RibonucleotideDataProvider ()=default
 

Private Attributes

std::string filename_
 

Detailed Description

Loads Ribonucleotide data from a tab-separated values (TSV) file.

Parses the legacy TSV format used for custom RNA modifications and returns ribonucleotide entries as RibonucleotideEntry objects.

An optional column named baseloss_formula specifies the formula retained after nucleobase loss, including the sugar modification (e.g. C6H10O5 for LNA or C5H9FO4 for 2'-fluorodeoxyribose). This is the hydrated base-loss formula used by Ribonucleotide::getBaselossFormula(), before the water losses needed to form an a-B ion. Append this column after the optional alternatives column, leaving alternatives empty for unambiguous modifications. An explicit formula overrides inference from the code; an absent, empty, or - value retains the legacy inference.

Constructor & Destructor Documentation

◆ RibonucleotideTSVDataProvider()

RibonucleotideTSVDataProvider ( const std::string &  filename)
explicit
Parameters
filenamePath to a TSV file (resolved via File::find)

Member Function Documentation

◆ loadRibonucleotides()

std::vector< RibonucleotideEntry > loadRibonucleotides ( )
overridevirtual

Load ribonucleotides from whatever source this provider wraps.

Returns
Vector of ribonucleotide entries with ownership transferred to caller.
Note
Providers may only be called once. Subsequent calls may return empty results.

Implements RibonucleotideDataProvider.

Member Data Documentation

◆ filename_

std::string filename_
private