Pdb.load_pdb_file: def of bend-prot@0.1.0.0
Import: import bend-prot@0.1.0.0/pdb.bend as Pdb
Lines 479-484 of bend-prot@0.1.0.0/pdb.bend: https://jend.leeeet.dev/read.txt?path=bend-prot@0.1.0.0/pdb.bend&start_line=479&end_line=484
import Base
import bend-prot@0.1.0.0/protein.bend as P
# Whole file from disk -> (Complex, skipped lines). Reads at most 1 MiB.
def load_pdb_file(path: String) -> IO(P.Complex & Nat):
do IO
:
fh : File <- IO.try(File, File.open(path, "r"))
fr : File & Result<&1, &1, U32 & String, String> <- File.read(fh, 1048576)
finish_read(fr)
Uses (13):
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File.open
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=File.read
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.bind
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=IO.try
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Pair
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=String
https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32
https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/pdb.bend&name=finish_read
https://jend.leeeet.dev/definition.txt?path=bend-prot@0.1.0.0/protein.bend&name=Complex