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

bfactors and tempfactors #2833

Closed
RMeli opened this issue Jul 9, 2020 · 4 comments
Closed

bfactors and tempfactors #2833

RMeli opened this issue Jul 9, 2020 · 4 comments

Comments

@RMeli
Copy link
Member

RMeli commented Jul 9, 2020

Expected behavior

I expect attributes representing the same thing to be consistent across file formats.

Actual behavior

For the MMTF format we have the bfactors attribute, while for other formats we have tempfactors (see user guide).

From a quick search within the code, I think bfactors is also used by TPRParser and ParmEdParser.

In topologyattrs.pythere are both class Tempfactors and class Bfactors. Should the two attributes be merged?

@lilyminium
Copy link
Member

Yes!

It's especially annoying that the PDB format only uses tempfactors when writing out to PDB, as that's quite a common task to do for e.g. RMSF visualisation.

At least in Oct 2019 TPRParser did not actually have either bfactors or tempfactors. ParmedParser uses Tempfactors despite ParmEd calling them bfactors (as does nglview).

Personally I prefer bfactors > tempfactors, but the latter seems to be the majority attribute.

@RMeli
Copy link
Member Author

RMeli commented Jul 10, 2020

I must learn to search for open issues before opening new ones...

@RMeli
Copy link
Member Author

RMeli commented Jul 10, 2020

@lilyminium you are right about the TRPParser; it popped up because of a docstring:

[residue, segment, radius, bfactor, resnum, moltype]

@orbeckst
Copy link
Member

duplicates #1901

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

No branches or pull requests

3 participants