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

Dinucleotide shuffling does not shuffle #136

Open
swertz opened this issue Nov 15, 2023 · 0 comments
Open

Dinucleotide shuffling does not shuffle #136

swertz opened this issue Nov 15, 2023 · 0 comments

Comments

@swertz
Copy link

swertz commented Nov 15, 2023

Hello,

This should be self-explanatory:

from deeplift.dinuc_shuffle import dinuc_shuffle
dinuc_shuffle("ACTGACTGACTG", 20, rng=np.random.default_rng())

Output:

['ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG',
 'ACTGACTGACTG']

Looking at various examples (https://github.com/kundajelab/deeplift/blob/master/examples/genomics/genomics_simulation.ipynb, https://shap.readthedocs.io/en/latest/example_notebooks/genomic_examples/DeepExplainer%20Genomics%20Example.html), it seems this part has been rewritten several times. Alas, the current version does not work. Perhaps this would explain #135 ?

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

1 participant