libpappsomspp
Library for mass spectrometry
Loading...
Searching...
No Matches
pappso::specpeptidoms::Location Struct Reference

#include <locationsaver.h>

Public Member Functions

QString getPeptideString () const
 convenient function to get peptide sequence from location

Public Attributes

std::size_t beginning
 start position of the subsequence
std::size_t length
 length of the subsequence
int tree
int score
const SpOMSProteinproteinPtr
 Protein accession.

Detailed Description

Definition at line 48 of file locationsaver.h.

Member Function Documentation

◆ getPeptideString()

QString pappso::specpeptidoms::Location::getPeptideString ( ) const

convenient function to get peptide sequence from location

Definition at line 44 of file locationsaver.cpp.

45{
46 std::size_t length2;
47 if((qsizetype)(beginning + length) <= proteinPtr->size())
48 {
49 length2 = length;
50 }
51 else
52 {
53 length2 = proteinPtr->size() - beginning;
54 }
55 return proteinPtr->getSequence().sliced(proteinPtr->size() - beginning - length2, length2);
56}
std::size_t length
length of the subsequence
std::size_t beginning
start position of the subsequence
const SpOMSProtein * proteinPtr
Protein accession.

References beginning, length, and proteinPtr.

Member Data Documentation

◆ beginning

std::size_t pappso::specpeptidoms::Location::beginning

◆ length

std::size_t pappso::specpeptidoms::Location::length

◆ proteinPtr

const SpOMSProtein* pappso::specpeptidoms::Location::proteinPtr

◆ score

int pappso::specpeptidoms::Location::score

◆ tree

int pappso::specpeptidoms::Location::tree

The documentation for this struct was generated from the following files: