In [ ]:
import qcfractal.interface as ptl
In [ ]:
client = ptl.FractalClient()
In [ ]:
# Shows all of the collections
client.list_collections()
In [ ]:
# Pick a collection type and a collection name
collection_type = 'OptimizationDataset'
collection_name = 'JGI Metabolite Set 1'
In [ ]:
# Get the dataset
ds = client.get_collection(collection_type, collection_name)
print(ds)
In [ ]:
# Get all of the records in the dataset
records = ds.status()
print(records)
In [ ]:
# Get the number of records
num_records = ds.status().shape[0]
print(num_records)
In [ ]:
# Look at the specifications
ds.list_specifications()
In [ ]:
# Pick one
specification = 'default'
In [ ]:
# Pick a record to look at
index = 0
name = records.iloc[index].name
print(name)
In [ ]:
# Get the record
record = ds.get_record(name, specification)
print(record)
In [ ]:
# Visualize the final molecule (result of optimization)
mol = record.get_final_molecule()
mol
In [ ]:
# Look at the json
mol.json()