@@ -197,7 +197,7 @@ function BioStructures.writemmtf(output::Union{AbstractString, IO},
197197 atom_selectors:: Function... ;
198198 expand_disordered:: Bool = true ,
199199 gzip:: Bool = false )
200- loop_el = isa (el, MolecularStructure) ? collectmodels (el) : el
200+ loop_el = ( isa (el, MolecularStructure) ? collectmodels (el) : el)
201201 ats = sort (sort (sort (collectatoms (loop_el, atom_selectors... ;
202202 expand_disordered= expand_disordered)),
203203 by= residue), by= model)
@@ -251,7 +251,7 @@ function BioStructures.writemmtf(output::Union{AbstractString, IO},
251251 " chainIndexList" => Any[length (d[" chainIdList" ]) - 1 ],
252252 " description" => " " ,
253253 " sequence" => " " , # This is changed later
254- " type" => ishetero (res) ? " non-polymer" : " polymer" ,
254+ " type" => ( ishetero (res) ? " non-polymer" : " polymer" ) ,
255255 ))
256256 end
257257 if ! ishetero (res)
@@ -286,7 +286,7 @@ function BioStructures.writemmtf(output::Union{AbstractString, IO},
286286 " bondAtomList" => Any[],
287287 " elementList" => Any[element (at) for at in ats_res],
288288 # MMTF specifies missing charges as zero
289- " formalChargeList" => Any[charge (at) == " " ? 0 : parse (Int64, charge (at)) for at in ats_res],
289+ " formalChargeList" => Any[( charge (at) == " " ? 0 : parse (Int64, charge (at) )) for at in ats_res],
290290 " singleLetterCode" => " " ,
291291 " chemCompType" => " " ,
292292 " atomNameList" => Any[at_names... ],
@@ -295,17 +295,17 @@ function BioStructures.writemmtf(output::Union{AbstractString, IO},
295295 end
296296
297297 push! (d[" groupIdList" ], resnumber (res))
298- push! (d[" groupTypeList" ], group_i == 0 ? length (d[" groupList" ]) - 1 : group_i - 1 )
299- push! (d[" insCodeList" ], inscode (res) == ' ' ? ' \0 ' : inscode (res))
298+ push! (d[" groupTypeList" ], ( group_i == 0 ? length (d[" groupList" ]) - 1 : group_i - 1 ) )
299+ push! (d[" insCodeList" ], ( inscode (res) == ' ' ? ' \0 ' : inscode (res) ))
300300 push! (d[" secStructList" ], - 1 )
301- push! (d[" sequenceIndexList" ], ishetero (res) ? - 1 : length (sequence) - 1 )
301+ push! (d[" sequenceIndexList" ], ( ishetero (res) ? - 1 : length (sequence) - 1 ) )
302302
303303 prev_resname = resname (res)
304304 prev_het = ishetero (res)
305305 last_res = res
306306 end
307307
308- push! (d[" altLocList" ], altlocid (at) == ' ' ? ' \0 ' : altlocid (at))
308+ push! (d[" altLocList" ], ( altlocid (at) == ' ' ? ' \0 ' : altlocid (at) ))
309309 push! (d[" atomIdList" ], serial (at))
310310 push! (d[" bFactorList" ], tempfactor (at))
311311 push! (d[" occupancyList" ], occupancy (at))
0 commit comments