예제 #1
0
    def GetMolFromDrugbank(self, ID=""):
        """
        #################################################################
        Get a molecule by drugbank id (e.g.,DB00133).

        Usage:

            res=GetMolFromDrugbank(ID)

            Input: ID is a compound identifier in Drugbank.

            Output: res is a SMILES string.
        #################################################################
        """
        res = getmol.GetMolFromDrugbank(dbid=ID)
        return res
예제 #2
0
    def GetMolFromKegg(self, ID=""):
        """
        #################################################################
        Get a molecule by kegg id (e.g., D02176).

        Usage:

            res=GetMolFromKegg(ID)

            Input: ID is a compound identifier in KEGG.

            Output: res is a SMILES string.
        #################################################################
        """
        res = getmol.GetMolFromKegg(kid=ID)
        return res
예제 #3
0
    def GetMolFromEBI(self, ID=""):
        """
        #################################################################
        Get a molecule by EBI id.

        Usage:

            res=GetMolFromEBI(ID)

            Input: ID is a compound identifier in EBI.

            Output: res is a SMILES string.
        #################################################################
        """
        res = getmol.GetMolFromEBI(ID)
        return res
예제 #4
0
    def GetMolFromCAS(self, ID=""):
        """
        #################################################################
        Get a molecule by kegg id (e.g., 50-29-3).

        Usage:

            res=GetMolFromCAS(ID)

            Input: ID is a CAS identifier.

            Output: res is a SMILES string.
        #################################################################
        """
        res = getmol.GetMolFromCAS(casid=ID)
        return res
예제 #5
0
    def GetMolFromNCBI(self, ID=""):
        """
        #################################################################
        Get a molecule by NCBI id (e.g., 2244).

        Usage:

            res=GetMolFromNCBI(ID)

            Input: ID is a compound ID (CID) in NCBI.

            Output: res is a SMILES string.
        #################################################################
        """
        res = getmol.GetMolFromNCBI(cid=ID)
        return res