Comments (2)
In general, you can generate hypothetical contribution scores for a sequence using contrib_score
method on SeqModel as done here: https://github.com/kundajelab/bpnet/blob/master/bpnet/cli/contrib.py#L238-L241.
Throughout the codebase, 'imp' or 'contrib' refer to hyp_contrib * dna_sequence
, where dna_sequence
is one-hot encoded (as you correctly inferred).
For accessing hypothetical contribution scores of patterns produces by TF-MoDISco you can access the hyp_contrib
values of the Pattern
class https://github.com/kundajelab/bpnet/blob/master/bpnet/modisco/core.py#L42. You can also use pattern.plot(kind='hyp_contrib')
method to visualize the hypothetical contributions of a pattern. A list of patterns from a modisco run can be obtained from ModiscoFile
class (.patterns()
) https://github.com/kundajelab/bpnet/blob/master/bpnet/modisco/files.py#L74.
from bpnet.
Thank you, this is very helpful information.
from bpnet.
Related Issues (20)
- BED file with strands HOT 2
- examples file snakefile HOT 1
- installation problem
- bpnet installation problem HOT 1
- Bpnet Added Channels Leads to Profile Predictions of 0
- Empty batch error loading training data into memory HOT 5
- Error when traning ATAC-seq with one track
- bpnet contrib function error
- contrib.counts vs contrib.profile HOT 2
- OverflowError: can't convert negative value to CHRPOS
- examples/recommendations for ATAC/Dnase-seq data HOT 4
- preds.neg.bw and preds.pos.bw
- running bpnet cwm-scan modisco HOT 2
- Error building Leidenalg wheel in Colab environment
- Notebook not working HOT 2
- Installation error, likely crashing due to dependency DeepExplain
- DeepLIFT contribution scores for one-hot encoded nucleotides HOT 2
- what is the expected input and targets for BPnet profile prediction
- ERROR: No matching distribution found for deepexplain (Installation of BPnet)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bpnet.