File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,15 @@ using PyBoltz
4
4
using ProteinChains: ProteinStructure
5
5
using ProteinChains. BioStructures: MolecularStructure
6
6
7
+ to_structure (x) = ProteinStructure (x)
8
+ to_structure (:: Missing ) = missing
9
+
7
10
function PyBoltz. predict (input, :: Type{ProteinStructure} ; options... )
8
- return PyBoltz. predict (input, MolecularStructure; options... ) .| > ProteinStructure
11
+ return PyBoltz. predict (input, MolecularStructure; options... ) .| > to_structure
9
12
end
10
13
11
14
function PyBoltz. predict (input:: PyBoltz.Schema.MolecularInput , :: Type{ProteinStructure} ; options... )
12
- return PyBoltz. predict (input, MolecularStructure; options... ) |> ProteinStructure
15
+ return PyBoltz. predict (input, MolecularStructure; options... ) |> to_structure
13
16
end
14
17
15
18
end
You can’t perform that action at this time.
0 commit comments