Class CvMappingUtils


  • public class CvMappingUtils
    extends Object
    Utility methods for conversion between the mapping file domain and the mzTab domain.
    Author:
    nilshoffmann
    • Constructor Summary

      Constructors 
      Constructor Description
      CvMappingUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static de.isas.mztab2.model.Parameter asParameter​(info.psidev.cvmapping.CvTerm term)  
      static de.isas.mztab2.model.Parameter asParameter​(uk.ac.ebi.pride.utilities.ols.web.service.model.Term term)  
      static boolean isEqualTo​(de.isas.mztab2.model.Parameter one, de.isas.mztab2.model.Parameter two)  
      static boolean isEqualTo​(uk.ac.ebi.pride.utilities.ols.web.service.model.Term term, de.isas.mztab2.model.Parameter param)  
      static String niceToString​(info.psidev.cvmapping.CvMappingRule rule)
      Creates a user-friendly string of a mapping rule.
      static uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorType.Level toErrorLevel​(info.psidev.cvmapping.CvMappingRule.RequirementLevel requirementLevel)
      Maps the provided requirement level to the corresponding MZTabErrorType.Level.
      static String toString​(info.psidev.cvmapping.CvMappingRule rule)
      Creates a string representation of a mapping rule.
      static String toString​(List<info.psidev.cvmapping.CvTerm> terms)  
    • Constructor Detail

      • CvMappingUtils

        public CvMappingUtils()
    • Method Detail

      • toErrorLevel

        public static uk.ac.ebi.pride.jmztab2.utils.errors.MZTabErrorType.Level toErrorLevel​(info.psidev.cvmapping.CvMappingRule.RequirementLevel requirementLevel)
        Maps the provided requirement level to the corresponding MZTabErrorType.Level.
        Parameters:
        requirementLevel - the requirement level
        Returns:
        the corresponding error type level
      • niceToString

        public static String niceToString​(info.psidev.cvmapping.CvMappingRule rule)
        Creates a user-friendly string of a mapping rule.
        Parameters:
        rule - the cv mapping rule
        Returns:
        the string representation
      • toString

        public static String toString​(info.psidev.cvmapping.CvMappingRule rule)
        Creates a string representation of a mapping rule.
        Parameters:
        rule - the cv mapping rule
        Returns:
        the string representation
        See Also:
        for a nicer string intended for humans
      • toString

        public static String toString​(List<info.psidev.cvmapping.CvTerm> terms)
      • isEqualTo

        public static boolean isEqualTo​(uk.ac.ebi.pride.utilities.ols.web.service.model.Term term,
                                        de.isas.mztab2.model.Parameter param)
      • asParameter

        public static de.isas.mztab2.model.Parameter asParameter​(uk.ac.ebi.pride.utilities.ols.web.service.model.Term term)
      • isEqualTo

        public static boolean isEqualTo​(de.isas.mztab2.model.Parameter one,
                                        de.isas.mztab2.model.Parameter two)
      • asParameter

        public static de.isas.mztab2.model.Parameter asParameter​(info.psidev.cvmapping.CvTerm term)