JSDoc: Class: CalculatePrefixAndSuffixMass

# Class: CalculatePrefixAndSuffixMass

## CalculatePrefixAndSuffixMass()

Class to calculate prefix and suffix mass

## Constructor

#### new CalculatePrefixAndSuffixMass()

Source:
  - calculateprefixandsuffixmass.js, line 6

### Methods

#### addMassShift(position, massShiftList, mass)

Add mass shifts to massShift list

##### Parameters:

Name | Type | Description
--- | --- | ---
`position` | int | position of the mass list
`massShiftList` | Array | Contains the list of all the mass shifts
`mass` | Float | Mass shift to be added to the list

Source:
  - calculateprefixandsuffixmass.js, line 220

#### getFixedPTMMassList(massShiftList, prsm)

Get all the Fixed Ptms and add the corresponding mass shits to mass shift list

##### Parameters:

Name | Type | Description
--- | --- | ---
`massShiftList` | Array | Contains all the mass shifts
`prsm` | Object | Contains the data of the prsm(Attribute inside prsm_data global variable from data file)

Source:
  - calculateprefixandsuffixmass.js, line 237

#### getIonTypeMass(ionType)

Check for ionType and return the corresponding mass shift value

##### Parameters:

Name | Type | Description
--- | --- | ---
`ionType` | String | String with Corresponding iontype

Source:
  - calculateprefixandsuffixmass.js, line 14

#### getMassofFixedPtm(abbrevation)

Returns Fixed Mass for certain abbrivation

##### Parameters:

Name | Type | Description
--- | --- | ---
`abbrevation` | String | Contains abbrevation to get corresponding fixed mass

Source:
  - calculateprefixandsuffixmass.js, line 295

#### getPrefixMassList(sequence, massShiftList, ionType_massShift)

Calculate and generate Prefix mass list

##### Parameters:

Name | Type | Description
--- | --- | ---
`sequence` | String | Contains sequence of the protein
`massShiftList` | Array | Contains the Mass shift which are to be added in the corresponding positions
`ionType_massShift` | Float | Contains the mass based on the ion Type

Source:
  - calculateprefixandsuffixmass.js, line 93

#### getSequence(prsm_data)

Get the sequence from the prsm_data global variable from data file

##### Parameters:

Name | Type | Description
--- | --- | ---
`prsm_data` | Object | This is a global object from data file which contains all the prsm information

Source:
  - calculateprefixandsuffixmass.js, line 44

#### getSuffixMassList(sequence, massShiftList, ionType_massShift)

Generate Suffix mass list

##### Parameters:

Name | Type | Description
--- | --- | ---
`sequence` | String | Contains sequence of the protein
`massShiftList` | Array | Contains the Mass shift which are to be added in the corresponding positions
`ionType_massShift` | Float | Contains the mass based on the ion Type

Source:
  - calculateprefixandsuffixmass.js, line 160

#### getUnknownMassList()

Get unknow mass list

Source:
  - calculateprefixandsuffixmass.js, line 60