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

indel support: dataloader-utility: MutationDatasetMixin #3

Open
krrome opened this issue Jun 13, 2018 · 0 comments
Open

indel support: dataloader-utility: MutationDatasetMixin #3

krrome opened this issue Jun 13, 2018 · 0 comments

Comments

@krrome
Copy link
Contributor

krrome commented Jun 13, 2018

A mixin to kipoi.data.*Dataset classes, which defines a function that returns model input for both alleles (and reverse-complementation).

The difference for the MutationDatasetMixin-methods is that the key inputs will be replaced with the keys: inputs_ref, inputs_alt (optionally also: inputs_ref_rc, inputs_alt_rc). Which all contain the identical structure and their data corresponds to the reference and alterenative (optionally also in reverse-complement) of the model input data.

So additionally the current Dataloader output schema:

{ 
   "inputs": <some_obj>, 
   "targets": <some_obj>, 
   "metadata": {...}
}

there will be a method returning dictionaries of:

{ 
    "inputs_ref": <some_obj>, 
    "inputs_alt": <some_obj>, 
    "inputs_ref_rc": <some_obj>, 
    "inputs_alt_rc": <some_obj>, 
    "targets": <some_obj>, 
    "metadata": {...}
}

All relationships between inputs and metadata etc. have to hold identically for the newly defined inputs_* keys.

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