Skip to content

Commit

Permalink
build for ghc 9.8.1 fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
abychkova committed Dec 18, 2024
1 parent 54091d2 commit 9d7c5b5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Bio/PDB.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,13 @@ instance StructureModels PDB.PDB where

mkResidue :: Map Text (Vector (Bond LocalID)) -> [PDB.Atom] -> Residue
mkResidue _ [] = error "Cound not make residue from empty list"
mkResidue localBondsMap atoms' = Residue (T.strip $ PDB.atomResName firstResidueAtom)
(PDB.atomResSeq firstResidueAtom)
(PDB.atomICode firstResidueAtom)
mkResidue localBondsMap atoms'@(firstAtom : _) = Residue (T.strip $ PDB.atomResName firstAtom)
(PDB.atomResSeq firstAtom)
(PDB.atomICode firstAtom)
(V.fromList $ mkAtom <$> atoms')
(localBondsMap M.!?! residueID firstResidueAtom)
(localBondsMap M.!?! residueID firstAtom)
Undefined -- now we do not read secondary structure
"" -- chemical component type?!
where
firstResidueAtom = head atoms'

mkAtom :: PDB.Atom -> Atom
mkAtom atom@PDB.Atom{..} = Atom (GlobalID $ atomToNilBasedIndex M.!?! atom)
Expand Down

0 comments on commit 9d7c5b5

Please sign in to comment.