Пример #1
0
def selfprime(request):
    try:
        o = Oligo(data=request.POST)
    except Exception as e:
        print e
    image, warnings = o.selfPrime()
    return HttpResponse(json.dumps({
        'warnings': warnings,
        'image': image
    }),
                        mimetype="application/json")
Пример #2
0
def go(request):
    try:
        o = Oligo(data=request.POST)
    except Exception as e:
        print e
    return HttpResponse(json.dumps({
        'TmT': o.topTm(),
        'TmB': o.bottomTm(),
        'TmF': o.fullTm(),
        'SeqT': o.topPrimer(),
        'SeqB': o.bottomPrimer()
    }),
                        mimetype="application/json")