Skip to content

Fix mismatch in groupselections for RMSD between target and reference#3195

Closed
1ut wants to merge 3 commits intoMDAnalysis:developfrom
1ut:groupselection
Closed

Fix mismatch in groupselections for RMSD between target and reference#3195
1ut wants to merge 3 commits intoMDAnalysis:developfrom
1ut:groupselection

Conversation

@1ut
Copy link
Contributor

@1ut 1ut commented Mar 30, 2021

Fixes #2797

Changes made in this Pull Request:

  • Edit MDAnalysis.analysis.rms.RMSD to resolve the mismatch in groupselections for RMSD between target and reference.

PR Checklist

  • Tests?
  • Docs?
  • CHANGELOG updated?
  • Issue raised/referenced?

'reference': self.reference.universe.select_atoms(*s['reference']),
'mobile': self.atomgroup.universe.select_atoms(*s['mobile']),
'reference': self.reference.select_atoms(*s['reference']),
'mobile': self.atomgroup.select_atoms(*s['mobile']),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I reviewed the codebase and thought It's not essential and wrong to call .universe, so I just removed the character .universe.

Copy link
Member

Choose a reason for hiding this comment

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

Going by the docstring, this seems to have been an intentional design decision in order to provide an atom selection that goes beyond the passed atomgroups.

I'll let someone with more familiarity with that feature speak up though.

Copy link
Member

Choose a reason for hiding this comment

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

Yes -- this is handy, for example, if you want to align on C-alphas and then calculate the RMSD of backbone atoms.

@codecov
Copy link

codecov bot commented Mar 30, 2021

Codecov Report

Merging #3195 (203a7d4) into develop (4c1390e) will decrease coverage by 0.00%.
The diff coverage is 50.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop    #3195      +/-   ##
===========================================
- Coverage    92.73%   92.72%   -0.01%     
===========================================
  Files          168      168              
  Lines        22683    22687       +4     
  Branches      3213     3216       +3     
===========================================
+ Hits         21035    21037       +2     
- Misses        1600     1602       +2     
  Partials        48       48              
Impacted Files Coverage Δ
package/MDAnalysis/analysis/rms.py 93.97% <50.00%> (-1.09%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c1390e...203a7d4. Read the comment docs.

@richardjgowers richardjgowers mentioned this pull request Mar 30, 2021
4 tasks
@1ut
Copy link
Contributor Author

1ut commented Mar 31, 2021

Close this pull request as I had already opened PR #3188.

@1ut 1ut closed this Mar 31, 2021
@1ut 1ut reopened this Apr 21, 2021
@1ut 1ut force-pushed the groupselection branch from 203a7d4 to 3f8d49a Compare April 21, 2021 04:38
@1ut 1ut closed this Apr 21, 2021
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.

Mismatch in groupselections for RMSD between target and reference

3 participants