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

add_pbs #2777

Closed
wants to merge 1 commit into from
Closed

add_pbs #2777

wants to merge 1 commit into from

Conversation

atongsa
Copy link

@atongsa atongsa commented Jul 6, 2023

Description

sorry i messed and delete my local branch, so the pr #2749 was closed automately;
i don't know how to reopen, so i opened a new pr;
sorry agian;

Closes #2717

PR Checklist:

  • Tests that fully cover new/changed functionality.
  • Documentation including tutorial content if appropriate.
  • Changelogs, if there are API changes.

@atongsa atongsa changed the title 20230706_pbs add_pbs Jul 6, 2023
@petrelharp petrelharp mentioned this pull request Jul 6, 2023
divergences.shape = (divergences.shape[0], 1, divergences.shape[1])
diversities.shape = (diversities.shape[0], 1, diversities.shape[1])

fst = np.repeat(1.0, np.product(divergences.shape))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it would be better just to call self.Fst( ) directly instead of copying the code.

)
fst.shape = orig_shape

def cal_pbs(arr_0):
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we're gaining anything by separating this out into a function that is immediately called.


"""

def pbs_func(sample_set_sizes, flattened, indexes], **kwargs):
Copy link
Contributor

Choose a reason for hiding this comment

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

stray ]

@petrelharp
Copy link
Contributor

I started commenting on the code, @atongsa, but noticed a bunch of typos, e.g.,

                            2 * (div=ersities[:, :, u] + diversities[:, :, v]) / denom

Please let us know when you've got code that runs (at least, doesn't have syntax errors)? Or, ask if you have specific questions about the approach?

@benjeffery
Copy link
Member

Hi @atongsa - are you planning to come back to this work? Thanks!

@atongsa
Copy link
Author

atongsa commented Sep 30, 2024

sorry, it is a little difficult for me, i don't understand the errors, and has no idea how to fix it, i need to read more about the funcions and docs.

@benjeffery
Copy link
Member

Closing this for now due to inactivity.

@benjeffery benjeffery closed this Jan 7, 2025
Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.24%. Comparing base (3d4fc51) to head (2c96d74).
Report is 212 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2777      +/-   ##
==========================================
- Coverage   89.83%   86.24%   -3.59%     
==========================================
  Files          30        8      -22     
  Lines       28624    13060   -15564     
  Branches     5590     2517    -3073     
==========================================
- Hits        25713    11264   -14449     
+ Misses       1655      991     -664     
+ Partials     1256      805     -451     
Flag Coverage Δ
c-tests 86.24% <ø> (ø)
lwt-tests ?
python-c-tests ?
python-tests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

see 23 files with indirect coverage changes

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.

Add 'PBS()'
3 participants