Skip to content
Snippets Groups Projects
Commit 2204d037 authored by root's avatar root
Browse files

Add draft file

parent c063418b
No related branches found
No related tags found
No related merge requests found
# @csrf_exempt
# def connectDPStepRefinement(data1, data2):
# """
# Create a relationship between a dpstep and a refinement node
# try:
# dpstep=DPStep.nodes.get(name=data1["uuid"])
# refinement=Refinement.nodes.get(uuid=data2["uuid"])
# return JsonResponse({"STATUS": dpstep.is_refinement.connect(refinement)}, safe=False)
# except:
# return JsonResponse({"STATUS": "ERROR OCCURRED WHILE CONNECTING DPSTEP TO REFINEMENT"}, safe=False)
# @csrf_exempt
# def connectDPStepPostRefinement(data1, data2):
# """
# Create a relationship between a dpstep and a postrefinement node
# """
# try:
# dpstep=DPStep.nodes.get(uuid=data1["uuid"])
# postrefinment=PostRefinement.nodes.get(uuid=data2["uuid"])
# return JsonResponse({"STATUS": dpstep.is_postrefinement.connect(postrefinement)}, safe=False)
# except:
# return JsonResponse({"STATUS": "ERROR OCCURRED WHILE CONNECTING DPSTEP TO POST-REFINEMENT"}, safe=False)
# @csrf_exempt
# def connectDPStepLigandsFitting(data1, data2):
# """
# Create a relationship between a dpstep and a ligandsfitting node
# """
# try:
# dpstep=DPStep.nodes.get(uuid=data1["uuid"])
# ligandsfitting=LigandsFitting.nodes.get(uuid=data2["uuid"])
# return JsonResponse({"STATUS": dataset.belongs.connect(construct)}, safe=False)
# except:
# return JsonResponse({"STATUS": "ERROR OCCURRED WHILE CONNECTING DPSTEP TO LIGANDS FITTING NODE"}, safe=False)
# @csrf_exempt
# def connectDPStepReductionScaling(data1, data2):
# """
# Create a relationship between a dpstep and a reductionscaling node
# """
# try:
# dpstep=DPStep.nodes.get(uuid=data1["uuid"])
# reductionscaling=StorageHost.nodes.get(uuid=data2["uuid"])
# return JsonResponse({"Status": dpstep.is_reductionscaling.connect(reductionscaling)}, safe=False)
# except:
# return JsonResponse({"STATUS": "ERROR OCCURRED WHILE CONNECTING DPSTEP TO REDUCTION SACLING NODE"}, safe=False)
# @csrf_exempt
# def connectDPStepautoPROC(data1, data2):
# """
# Create a relationship between a dpstep and an autoRPOC node
# """
# try:
# dpstep=DPStep.nodes.get(uuid=data1["uuid"])
# autoproc=autoPROC.nodes.get(uuid=data2["uuid"])
# return JsonResponse({"STATUS": dpstep.with_autoproc.connect(autoproc)}, safe=False)
# except:
# return JsonResponse({"STATUS": "ERROR OCCURRED WHILE CONNECTING DPSTEP TO AUTOPROC NODE"}, safe=False)
# @csrf_exempt
# def connectDPStepRhofit(data1, data2):
# """
# Create a relationship between a dpstep and a rhofit node
# """
# try:
# dpstep=DPStep.nodes.get(uuid=data1["uuid"])
# rhofit=Rhofit.nodes.get(uuid=data2["uuid"])
# return JsonResponse({"STATUS": dpstep.with_rhofit.connect(rhofit)}, safe=False)
# except:
# return JsonResponse({"STATUS": "ERROR OCCURRED WHILE CONNECTING DPSTEP TO RHOFIT NODE"}, safe=False)
# @csrf_exempt
# def connectDPStepBuster(data1, data2):
# """
# Create a relationship between a dpstep and a buster node
# """
# try:
# dpstep=DPStep.nodes.get(uuid=data1["uuid"])
# buster=Buster.nodes.get(uuid=data2["uuid"])
# return JsonResponse({"STATUS": dpstep.wiht_buster.connect(buster)}, safe=False)
# except:
# return JsonResponse({"STATUS": "ERROR OCCURRED WHILE CONNECTING DPSTEP TO BUSTER NODE"}, safe=False)
# @csrf_exempt
# def connectDPStepPipedream(data1, data2):
# """
# Create a relationship between a dpstep and a pipedream node
# """
# try:
# dpstep=DPStep.nodes.get(uuid=data1["uuid"])
# pipedream=GPhLPipedream.nodes.get(uuid=data2["uuid"])
# return JsonResponse({"STATUS": dpstep.with_pipedream.connect(pipedream)}, safe=False)
# except:
# return JsonResponse({"STATUS": "ERROR OCCURRED WHILE CONNECTING DPSTEP TO PIPEDREAM NODE"}, safe=False)
# for input_ligand in data:
# if input_prc['WatersPresent']==None:
# wp=None
# else:
# wp=input_prc['WatersPresent']
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment