Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version 0.1.3.6. Added PDB writer #40

Merged
merged 5 commits into from
Jul 14, 2020
Merged

Version 0.1.3.6. Added PDB writer #40

merged 5 commits into from
Jul 14, 2020

Conversation

AlexKaneRUS
Copy link
Contributor

No description provided.

@AlexKaneRUS AlexKaneRUS requested review from tiermak and ozzzzz July 14, 2020 10:09
src/Bio/PDB/Parser.hs Show resolved Hide resolved
src/Bio/Structure.hs Outdated Show resolved Hide resolved
renameChains model mapping = model & chain %~ renameChain
where
renameChain :: Chain -> Chain
renameChain ch@Chain{..} = ch { chainName = maybe chainName id $ mapping M.!? chainName }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Можно так: mapping ^? ix chainName . non chainName

А для самого chainName линзы нет? Чтобы написать

model & chain . chainName %~ \n -> mapping ^? ix n . non n

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Вот, к сожалению, тут не нашлось линзы, да...

src/Bio/PDB/Writer.hs Outdated Show resolved Hide resolved
@ozzzzz ozzzzz merged commit e53b634 into master Jul 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants