示例#1
0
文件: views.py 项目: Gibthon/Gibthon
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
文件: views.py 项目: Schnu/Gibthon
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")
示例#3
0
文件: views.py 项目: Schnu/Gibthon
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")
示例#4
0
文件: views.py 项目: Gibthon/Gibthon
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")