Skip to content

Dinucleotide shuffling does not shuffle #136

@swertz

Description

@swertz

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions