When passing specific filenames to the construct_graph function (as opposed to including a pdb_dir in the ProteinGraphConfig(), for instance), only strings can be passed or an error results.
This, and similar functions, should be able to receive any Path-like object.
e.g.
pdb_path = Path("../data") / "6hd4.pdb"
g = construct_graph(pdb_path=pdb_path)
--> 305 if path.endswith((".pdb", ".ent")):
306 openf = open
307 elif path.endswith(("pdb.gz", ".ent.gz")):
AttributeError: 'PosixPath' object has no attribute 'endswith'
When passing specific filenames to the
construct_graph
function (as opposed to including apdb_dir
in theProteinGraphConfig()
, for instance), only strings can be passed or an error results.This, and similar functions, should be able to receive any Path-like object.
e.g.