kundajelab/tfmodisco: Changing sum-to-1 error to a warning for calculating information content
Authors/Creators
- 1. Stanford University
- 2. University of Virginia
Description
Corresponds to PR https://github.com/kundajelab/tfmodisco/pull/80
This error typically occurs when the user has sequences that are not perfectly one-hot encoded - i.e. some columns are all-zeros (usually because the one-hot encoding procedure mapped Ns to all-zeros). This can result in a PPM where the probabilities don't sum to 1 in all the rows. The error is thrown when computing the information content for visualization purposes. The information content can still be calculated by simply renormalizing the rows to sum to 1, so that's what this workaround does (after printing a warning). The user should still make sure that they are ok with this behavior.
Files
kundajelab/tfmodisco-v0.5.10.1.zip
Files
(15.7 MB)
| Name | Size | Download all |
|---|---|---|
|
md5:dc95ac879456160718bdeafe22dba70e
|
15.7 MB | Preview Download |
Additional details
Related works
- Is supplement to
- https://github.com/kundajelab/tfmodisco/tree/v0.5.10.1 (URL)