|
path = os.path.join(input_directory, f'{crystal_name}.pdb') |
|
# Current Fix, need to figure out a way to derive visit number from sample for stuff. |
|
#try: |
|
# path = os.readlink(symlink) |
|
#except OSError: |
|
# # Exit out |
|
# print('Ligand is directly deposited into input directory, no known reference crystal') |
|
# return None |
|
#visit = re.findall('[a-z]{2}[0-9]{5}-[0-9]*', path)[0] |
|
crys = models.Crystal.objects.filter(crystal_name=crystal_name)#.filter(visit__visit=visit) # This should only return one thing... |
Code is here, the visit now isn't captured in the full file path of the non symbolic linked db file. This might have conseqences if a crystal has the same name spread over two visits
pipeline/luigi_classes/transfer_fragalysis_api.py
Lines 164 to 173 in 8fb2f5f
Code is here, the visit now isn't captured in the full file path of the non symbolic linked db file. This might have conseqences if a crystal has the same name spread over two visits