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

Debug on "alternate location" #1

Closed
LePingKYXK opened this issue Aug 20, 2017 · 1 comment
Closed

Debug on "alternate location" #1

LePingKYXK opened this issue Aug 20, 2017 · 1 comment
Assignees
Labels

Comments

@LePingKYXK
Copy link
Owner

there is a bug related to the "alternate location", in which the previous code only chose the " " and "A". However, some residues with "alternate locations" that contain " ", "B" and "C", without "A". Therefore, the previous code missing some atoms in the residues.

@LePingKYXK LePingKYXK added the bug label Aug 20, 2017
@LePingKYXK LePingKYXK self-assigned this Aug 20, 2017
@LePingKYXK
Copy link
Owner Author

This bug has fixed by using groupby().
groups = pdb_info.groupby(['Seq_Num', 'ChainID'], sort=False) pdb_info = groups.apply(lambda x: x.drop_duplicates(subset=["AtomTyp"], keep='first') if len(groups['Alt_Loc']) >= 2 else x)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant