Skip to content

Commit 1bdf0fc

Browse files
format
1 parent 137186b commit 1bdf0fc

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

src/bcif.jl

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,14 @@ import MsgPack
88
99
A function to read a binary CIF file from MolStar and extract the list of attributes and their compressed bytes.
1010
"""
11-
12-
# currently isn't implementing the dssp / stride. If using BCIF it seems strange to write
13-
# out a .pdb, run dssp / string, then read it back in again.
1411
function Base.read(input::IO,
15-
::Type{BCIFFormat},
16-
structure_name::AbstractString="",
17-
remove_disorder::Bool=false,
18-
read_std_atoms::Bool=true,
19-
read_het_atoms::Bool=true,
20-
run_dssp::Bool=false,
21-
run_stride::Bool=false)
12+
::Type{BCIFFormat};
13+
structure_name::AbstractString="",
14+
remove_disorder::Bool=false,
15+
read_std_atoms::Bool=true,
16+
read_het_atoms::Bool=true,
17+
run_dssp::Bool=false,
18+
run_stride::Bool=false)
2219

2320
file = MsgPack.unpack(read(input))
2421
categories = file["dataBlocks"][1]["categories"]

src/download.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Requires an internet connection.
163163
"""
164164
function downloadpdb(pdbid::AbstractString;
165165
dir::AbstractString=pwd(),
166-
format::Type{<:Union{PDBFormat,PDBXMLFormat,MMCIFFormat,BCIFFormat}}=PDBFormat,
166+
format::Type{<:Union{PDBFormat, PDBXMLFormat, MMCIFFormat, BCIFFormat}}=PDBFormat,
167167
obsolete::Bool=false,
168168
overwrite::Bool=false,
169169
ba_number::Integer=0)
@@ -317,7 +317,7 @@ automatically updates the PDB files of the given `format` inside the local
317317
Requires an internet connection.
318318
"""
319319
function updatelocalpdb(; dir::AbstractString=pwd(),
320-
format::Type{<:Union{PDBFormat,PDBXMLFormat,MMCIFFormat,BCIFFormat}}=PDBFormat)
320+
format::Type{<:Union{PDBFormat, PDBXMLFormat, MMCIFFormat, BCIFFormat}}=PDBFormat)
321321
addedlist, modifiedlist, obsoletelist = pdbrecentchanges()
322322
# Download the newly added and modified pdb files
323323
downloadpdb(vcat(addedlist, modifiedlist), dir=dir, overwrite=true, format=format)
@@ -359,7 +359,7 @@ Requires an internet connection.
359359
in `dir`; by default skips downloading the PDB file if it exists.
360360
"""
361361
function downloadallobsoletepdb(; obsolete_dir::AbstractString=pwd(),
362-
format::Type{<:Union{PDBFormat,PDBXMLFormat,MMCIFFormat,BCIFFormat}}=PDBFormat,
362+
format::Type{<:Union{PDBFormat, PDBXMLFormat, MMCIFFormat, BCIFFormat}}=PDBFormat,
363363
overwrite::Bool=false)
364364
obsoletelist = pdbobsoletelist()
365365
downloadpdb(obsoletelist, dir=obsolete_dir, format=format, overwrite=overwrite)
@@ -398,7 +398,7 @@ Requires an internet connection.
398398
"""
399399
function retrievepdb(pdbid::AbstractString;
400400
dir::AbstractString=pwd(),
401-
format::Type{<:Union{PDBFormat,PDBXMLFormat,MMCIFFormat,BCIFFormat}}=MMCIFFormat,
401+
format::Type{<:Union{PDBFormat, PDBXMLFormat, MMCIFFormat, BCIFFormat}}=MMCIFFormat,
402402
obsolete::Bool=false,
403403
overwrite::Bool=false,
404404
ba_number::Integer=0,

0 commit comments

Comments
 (0)