public Param getColunitPeptide(PeptideTableField column) throws MzTabParsingException { if (column == PeptideTableField.PEPTIDE_ABUNDANCE || column == PeptideTableField.PEPTIDE_ABUNDANCE_STD || column == PeptideTableField.PEPTIDE_ABUNDANCE_STD_ERROR) { throw new MzTabParsingException( "The colunit field cannot be used to store units for abundance columns. Please use getPeptideQuantificationUnit"); } if (column == PeptideTableField.CUSTOM) { throw new MzTabParsingException( "This function cannot be used to retrieve units for optional columns"); } return getColunitPeptide(column.toString()); }
public void setColunitPeptide(PeptideTableField column, Param unit) throws MzTabParsingException { if (column == PeptideTableField.PEPTIDE_ABUNDANCE || column == PeptideTableField.PEPTIDE_ABUNDANCE_STD || column == PeptideTableField.PEPTIDE_ABUNDANCE_STD_ERROR) { throw new MzTabParsingException("Colunits must not be set for columns specifying abundance."); } if (column == PeptideTableField.CUSTOM) { throw new MzTabParsingException("This function cannot be used to set custom column units."); } if (column == PeptideTableField.ROW_PREFIX || column == PeptideTableField.HEADER_PREFIX) { throw new MzTabParsingException("ROW_PREFIX and HEADER_PREFIX are not valid columns."); } setColunitPeptide(column.toString(), unit); }