Exemple #1
0
def setup(*args, **kwargs):
    from genui.models import helpers
    from .genuimodels import bases
    from genui import apps
    for app in apps.all_():
        helpers.discoverGenuiModels(app, force=kwargs['force'], modules=["descriptors"], additional_bases=[bases.DescriptorCalculator])

    from genui.utils.init import createGroup
    from . import models

    createGroup(
        "GenUI_Users",
        [
            models.QSARModel,
            models.ModelActivity,
            models.ModelActivitySet,
            models.QSARTrainingStrategy,
        ],
        force=kwargs['force']
    )

    createGroup(
        "GenUI_Users",
        [
            models.DescriptorGroup,
        ],
        permissions=['view'],
        force=kwargs['force']
    )
Exemple #2
0
def setup(*args, **kwargs):
    from genui.utils.init import createGroup
    from . import models
    from . import signals

    createGroup(
        "GenUI_Users",
        [
            models.MolSet,
            models.Activity,
            models.ActivitySet,
            models.Molecule,
            models.MolSetFile
        ],
        force=kwargs['force']
    )

    createGroup(
        "GenUI_Users",
        [
            models.ActivityTypes,
            models.ActivityUnits,
            models.MoleculePic,
            models.PictureFormat,
        ],
        permissions=['view'],
        force=kwargs['force']
    )
Exemple #3
0
def setup(*args, **kwargs):
    from genui.utils.init import createGroup
    from . import models

    createGroup("GenUI_Users", [
        models.GeneratedMolSet,
    ],
                force=kwargs['force'])
Exemple #4
0
def setup(*args, **kwargs):
    from genui.utils.init import createGroup
    import django_celery_results.models
    import djcelery_model.models
    createGroup("GenUI_Users", [
        django_celery_results.models.TaskResult,
        djcelery_model.models.ModelTaskMeta
    ],
                permissions=['view'],
                force=kwargs['force'])
Exemple #5
0
def setup(*args, **kwargs):
    from genui.utils.init import createGroup
    from . import models

    createGroup("GenUI_Users", [
        models.DrugEx, models.DrugExNet, models.DrugExNetTrainingStrategy,
        models.DrugExValidationStrategy, models.DrugExAgent,
        models.DrugExAgentTrainingStrategy,
        models.DrugExAgentValidationStrategy, models.ModelPerformanceDrugEx,
        models.ModelPerformanceDrugExAgent
    ],
                force=kwargs['force'])
Exemple #6
0
def setup(*args, **kwargs):
    from . import models
    from genui.utils.init import createGroup
    createGroup("GenUI_Users", [
        models.ChEMBLActivities,
        models.ChEMBLActivity,
        models.ChEMBLCompounds,
        models.ChEMBLMolecule,
    ],
                force=kwargs['force'])
    createGroup("GenUI_Users", [
        models.ChEMBLTarget,
        models.ChEMBLAssay,
    ],
                permissions=['view'],
                force=kwargs['force'])
Exemple #7
0
def setup(*args, **kwargs):
    from . import signals
    from genui import apps
    from . import helpers
    for app in apps.all_():
        helpers.discoverGenuiModels(app, force=kwargs['force'])

    from genui.utils.init import createGroup
    from . import models

    createGroup(
        "GenUI_Users",
        [
            models.Model,
            models.TrainingStrategy,
            models.ValidationStrategy,
            models.BasicValidationStrategy,
            models.ModelFile,
            models.ModelParameterValue,
            models.ModelParameterBool,
            models.ModelParameterFloat,
            models.ModelParameterInt,
            models.ModelParameterStr,
            models.ModelPerformance,
            models.ModelPerfomanceNN,
            models.ModelPerformanceCV,
        ],
        force=kwargs['force']
    )

    createGroup(
        "GenUI_Users",
        [
            models.Algorithm,
            models.AlgorithmMode,
            models.ModelBuilder,
            models.ModelFileFormat,
            models.ModelParameter,
            models.ModelPerformanceMetric,
        ],
        permissions=['view'],
        force=kwargs['force']
    )
Exemple #8
0
def setup(*args, **kwargs):
    from genui.utils.init import createGroup
    from genui import apps
    from . import models
    from . import signals

    for app in apps.all_():
        discoverExporters(app)

    createGroup("GenUI_Users", [
        models.MolSet, models.Activity, models.ActivitySet, models.Molecule,
        models.MolSetFile, models.MolSetExport
    ],
                force=kwargs['force'])

    createGroup("GenUI_Users", [
        models.ActivityTypes, models.ActivityUnits, models.MoleculePic,
        models.PictureFormat, models.MolSetExporter
    ],
                permissions=['view'],
                force=kwargs['force'])
Exemple #9
0
def setup(*args, **kwargs):
    createGroup("GenUI_Users", [
        models.SDFCompounds,
        models.SDFMolecule,
    ],
                force=kwargs['force'])