Skip to content

Internal_file_formats

Jorge edited this page Jan 8, 2022 · 1 revision

Internal file formats

The BGCtoolkit makes use of objects of the BGC, BGCCollection and BGCProtein classes from BGClib. Currently, these objects are stored on disk by simple object serialization using Python's Pickle module. For example:

bgc = BGC("myfile.gbk")
with open("myfile.bgc", "wb") as f:
    pickle.dump(bgc, f)
Clone this wiki locally