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

NimaGen 29-plex #134

Merged
merged 8 commits into from
Aug 18, 2023
Merged

NimaGen 29-plex #134

merged 8 commits into from
Aug 18, 2023

Conversation

standage
Copy link
Member

@standage standage commented Aug 18, 2023

This PR adds definitions for 29 markers from NimaGen's (currently beta) microhap kit.

markers = sorted(interval.data, key=lambda m: m.sortkey)
markers = sorted(interval.data, key=lambda m: m.sources[0].sortkey)
Copy link
Member Author

Choose a reason for hiding this comment

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

Fixing a bug that was introduced in #133.

Comment on lines +182 to +189
def rsid_union(self, *others):
rsids = set(self.rsids)
for other in others:
rsids |= set(other.rsids)
for rsid in rsids:
for marker in chain([self], others):
if rsid not in marker.rsids:
marker.rsids.append(rsid)
Copy link
Member Author

Choose a reason for hiding this comment

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

Some markers are defined only using positions, no RSIDs. Some of these are exact matches for markers with some or all RSIDs defined. This function merges RSID lists when markers are merged during the build.

@standage standage merged commit 292ef21 into master Aug 18, 2023
3 checks passed
@standage standage deleted the nimagen branch August 18, 2023 19:28
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.

None yet

1 participant