• Generates a URL for fetching InterPro Match Complete XML data via Dbfetch.

    Parameters

    • accessions: string

      A comma-separated string of accession IDs to fetch data for.

    Returns string

    • The URL for retrieving IPMC XML data from the EBI Dbfetch service.

    getIPRMCDbfetchURL

    • Throws an error if the accessions parameter is empty or not a string.

    Constructs a URL to fetch InterPro Match Complete (IPMC) data in XML format from the EBI Dbfetch service (https://www.ebi.ac.uk/Tools/dbfetch). The accessions parameter should be a single ID or a comma-separated list of IDs. The input is URL-encoded to handle special characters. The returned URL uses the 'iprmcxml' format and 'raw' style.

    console.log(getIPRMCDbfetchURL('P12345'));
    // Outputs: "https://www.ebi.ac.uk/Tools/dbfetch/dbfetch?db=iprmc;id=P12345;format=iprmcxml;style=raw"

    console.log(getIPRMCDbfetchURL('P12345,P67890'));
    // Outputs: "https://www.ebi.ac.uk/Tools/dbfetch/dbfetch?db=iprmc;id=P12345%2CP67890;format=iprmcxml;style=raw"