Class IDMappingReaderFromText

    • Field Detail

      • url

        protected final URL url
    • Constructor Detail

      • IDMappingReaderFromText

        public IDMappingReaderFromText​(URL url,
                                       char[] dataSourceDelimiters)
                                throws IDMapperException
        Transitivity is unsupported. No delimiter between IDs.
        Parameters:
        url - url URL of the file
        dataSourceDelimiters - delimiters between data sources
        Throws:
        IDMapperException - if failed to read file
      • IDMappingReaderFromText

        public IDMappingReaderFromText​(URL url,
                                       char[] dataSourceDelimiters,
                                       char[] regExIDDelimiter)
                                throws IDMapperException
        Transitivity is unsupported.
        Parameters:
        url - url URL of the file
        dataSourceDelimiters - delimiters between data sources
        regExIDDelimiter - delimiters between IDs
        Throws:
        IDMapperException - if failed to read file
      • IDMappingReaderFromText

        public IDMappingReaderFromText​(URL url,
                                       char[] dataSourceDelimiters,
                                       char[] regExIDDelimiter,
                                       boolean transitivity)
                                throws IDMapperException
        Constructor from the URL of a tab-delimited text file, delimiters to separate between different data sources and IDs and transitivity support.
        Parameters:
        url - url URL of the file
        dataSourceDelimiters - delimiters between data sources
        regExIDDelimiter - delimiters between IDs
        transitivity - support transitivity if true
        Throws:
        IDMapperException - if failed to read file
      • IDMappingReaderFromText

        public IDMappingReaderFromText​(URL url,
                                       String regExDataSourceDelimiter)
                                throws IDMapperException
        Transitivity is unsupported. No delimiters between IDs.
        Parameters:
        url - the URL of the delimited text file
        regExDataSourceDelimiter - regular expression of delimiter between data sources
        Throws:
        IDMapperException - if failed to read
      • IDMappingReaderFromText

        public IDMappingReaderFromText​(URL url,
                                       String regExDataSourceDelimiter,
                                       String regExIDDelimiter)
                                throws IDMapperException
        Transitivity is unsupported.
        Parameters:
        url - the URL of the delimited text file
        regExDataSourceDelimiter - regular expression of delimiter between data sources
        regExIDDelimiter - regular expression of delimiter between IDs
        Throws:
        IDMapperException - if failed to read
      • IDMappingReaderFromText

        public IDMappingReaderFromText​(URL url,
                                       String regExDataSourceDelimiter,
                                       String regExIDDelimiter,
                                       boolean transitivity)
                                throws IDMapperException
        Parameters:
        url - the URL of the delimited text file
        regExDataSourceDelimiter - regular expression of delimiter between data sources
        regExIDDelimiter - regular expression of delimiter between IDs
        transitivity - transitivity support
        Throws:
        IDMapperException - if failed to read
    • Method Detail

      • setDataSourceDelimiters

        public void setDataSourceDelimiters​(char[] dataSourceDelimiters)
        Set delimiters between data sources.
        Parameters:
        dataSourceDelimiters - delimiters between data sources
      • setIDDelimiters

        public void setIDDelimiters​(char[] idDelimiters)
        Set delimiters between data IDs.
        Parameters:
        idDelimiters - delimiters between data IDs
      • strs2regex

        protected static String strs2regex​(char[] chs)