Ejemplo n.º 1
0
def scales_communities(ctx):
    outdir = ctx.obj["outdir"]
    two = ctx.obj["two"]
    runs = int(ctx.obj["runs"])
    best = ctx.obj["best"]
    intervals = int(ctx.obj["intervals"])

    scales = Scales(outdir, intervals)
    scales.generate_communities(two, runs, best)
Ejemplo n.º 2
0
def scales_communities(ctx):
    outdir = ctx.obj['outdir']
    two = ctx.obj['two']
    runs = int(ctx.obj['runs'])
    best = ctx.obj['best']
    intervals = int(ctx.obj['intervals'])

    scales = Scales(outdir, intervals)
    scales.generate_communities(two, runs, best)
Ejemplo n.º 3
0
def dist_sequence(ctx):
    dbname = ctx.obj['dbname']
    db = DB(dbname, ctx.obj['config'])
    db.open()
    outdir = ctx.obj['outdir']
    intervals = int(ctx.obj['intervals'])
    smooth = ctx.obj['smooth']

    scales = Scales(outdir, intervals)
    scales.dist_sequence(db, smooth)
Ejemplo n.º 4
0
def dist_sequence(ctx):
    dbname = ctx.obj["dbname"]
    db = DB(dbname, ctx.obj["config"])
    db.open()
    outdir = ctx.obj["outdir"]
    intervals = int(ctx.obj["intervals"])
    smooth = ctx.obj["smooth"]

    scales = Scales(outdir, intervals)
    scales.dist_sequence(db, smooth)
Ejemplo n.º 5
0
def scales_usermetrics(ctx):
    dbname = ctx.obj['dbname']
    db = DB(dbname, ctx.obj['config'])
    db.open()
    outdir = ctx.obj['outdir']
    intervals = int(ctx.obj['intervals'])
    scale_membership = ctx.obj['scale_membership']

    s = Scales(outdir, intervals)
    s.usermetrics(db, scale_membership)
Ejemplo n.º 6
0
def scales_usermetrics(ctx):
    dbname = ctx.obj["dbname"]
    db = DB(dbname, ctx.obj["config"])
    db.open()
    outdir = ctx.obj["outdir"]
    intervals = int(ctx.obj["intervals"])
    scale_membership = ctx.obj["scale_membership"]

    s = Scales(outdir, intervals)
    s.usermetrics(db, scale_membership)
Ejemplo n.º 7
0
def scales_borders(ctx):
    dbname = ctx.obj['dbname']
    db = DB(dbname, ctx.obj['config'])
    db.open()
    outdir = ctx.obj['outdir']
    best = ctx.obj['best']
    smooth = ctx.obj['smooth']
    intervals = int(ctx.obj['intervals'])
    
    scales = Scales(outdir, intervals)
    scales.generate_borders(db, best, smooth)
Ejemplo n.º 8
0
def similarity_matrix(ctx):
    dbname = ctx.obj['dbname']
    db = DB(dbname, ctx.obj['config'])
    db.open()
    outdir = ctx.obj['outdir']
    intervals = int(ctx.obj['intervals'])
    smooth = ctx.obj['smooth']
    optimize = ctx.obj['optimize']

    scales = Scales(outdir, intervals)
    scales.similarity_matrix(db, smooth, optimize)
Ejemplo n.º 9
0
def scales_graphs(ctx):
    dbname = ctx.obj["dbname"]
    db = DB(dbname, ctx.obj["config"])
    db.open()
    outdir = ctx.obj["outdir"]
    intervals = int(ctx.obj["intervals"])
    scale = ctx.obj["scale"]
    table = ctx.obj["table"]

    scales = Scales(outdir, intervals)
    scales.generate_graphs(db, scale, table)
Ejemplo n.º 10
0
def similarity_matrix(ctx):
    dbname = ctx.obj["dbname"]
    db = DB(dbname, ctx.obj["config"])
    db.open()
    outdir = ctx.obj["outdir"]
    intervals = int(ctx.obj["intervals"])
    smooth = ctx.obj["smooth"]
    optimize = ctx.obj["optimize"]

    scales = Scales(outdir, intervals)
    scales.similarity_matrix(db, smooth, optimize)
Ejemplo n.º 11
0
def scales_graphs(ctx):
    dbname = ctx.obj['dbname']
    db = DB(dbname, ctx.obj['config'])
    db.open()
    outdir = ctx.obj['outdir']
    intervals = int(ctx.obj['intervals'])
    scale = ctx.obj['scale']
    table = ctx.obj['table']
    
    scales = Scales(outdir, intervals)
    scales.generate_graphs(db, scale, table)
Ejemplo n.º 12
0
def scales_borders(ctx):
    dbname = ctx.obj["dbname"]
    db = DB(dbname, ctx.obj["config"])
    db.open()
    outdir = ctx.obj["outdir"]
    best = ctx.obj["best"]
    smooth = ctx.obj["smooth"]
    intervals = int(ctx.obj["intervals"])

    scales = Scales(outdir, intervals)
    scales.generate_borders(db, best, smooth)
Ejemplo n.º 13
0
def scales_multi_borders(ctx):
    dbname = ctx.obj["dbname"]
    db = DB(dbname, ctx.obj["config"])
    db.open()
    outdir = ctx.obj["outdir"]
    outfile = ctx.obj["outfile"]
    smooth = ctx.obj["smooth"]
    intervals = int(ctx.obj["intervals"])
    scales = ctx.obj["scales"]

    s = Scales(outdir, intervals)
    s.generate_multi_borders(db, outfile, smooth, scales)
Ejemplo n.º 14
0
def scales_multi_borders(ctx):
    dbname = ctx.obj['dbname']
    db = DB(dbname, ctx.obj['config'])
    db.open()
    outdir = ctx.obj['outdir']
    outfile = ctx.obj['outfile']
    smooth = ctx.obj['smooth']
    intervals = int(ctx.obj['intervals'])
    scales = ctx.obj['scales']

    s = Scales(outdir, intervals)
    s.generate_multi_borders(db, outfile, smooth, scales)
Ejemplo n.º 15
0
def scales_metric(ctx):
    dbname = ctx.obj['dbname']
    db = DB(dbname, ctx.obj['config'])
    db.open()
    outdir = ctx.obj['outdir']
    best = ctx.obj['best']
    intervals = int(ctx.obj['intervals'])
    smooth = ctx.obj['smooth']
    scale = ctx.obj['scale']
    metric = ctx.obj['metric']

    scales = Scales(outdir, intervals)
    scales.metric(metric, db, best, smooth, scale)
Ejemplo n.º 16
0
def scales_metric(ctx):
    dbname = ctx.obj["dbname"]
    db = DB(dbname, ctx.obj["config"])
    db.open()
    outdir = ctx.obj["outdir"]
    best = ctx.obj["best"]
    intervals = int(ctx.obj["intervals"])
    smooth = ctx.obj["smooth"]
    scale = ctx.obj["scale"]
    metric = ctx.obj["metric"]

    scales = Scales(outdir, intervals)
    scales.metric(metric, db, best, smooth, scale)
Ejemplo n.º 17
0
def scales_normalize(ctx):
    outdir = ctx.obj["outdir"]
    intervals = int(ctx.obj["intervals"])

    scales = Scales(outdir, intervals)
    scales.normalize()
Ejemplo n.º 18
0
def scales_normalize(ctx):
    outdir = ctx.obj['outdir']
    intervals = int(ctx.obj['intervals'])
    
    scales = Scales(outdir, intervals)
    scales.normalize()