Example #1
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")
Example #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")