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

averaging forward and reverse strand from output of chromatin.py #22

Open
cmlakhan opened this issue Jan 28, 2021 · 2 comments
Open

averaging forward and reverse strand from output of chromatin.py #22

cmlakhan opened this issue Jan 28, 2021 · 2 comments

Comments

@cmlakhan
Copy link

cmlakhan commented Jan 28, 2021

For other purposes I wanted to get a single chromatin effect score for each SNP from what I can tell if

X = num_variants

then for each SNP i then the forward and backward strands are at index i and i+X, is that correct? So if I want a single score then I should average row i and row i+X? That is the impression I get from the code in predict.py below:

snp_temp = (np.asarray(h5f[index_start:index_end,:])+ np.asarray(h5f[index_start+int(h5f.shape[0]/2):index_end+int(h5f.shape[0]/2),:]))/2.0

Just wanted to clarify, thanks!

@jzthree
Copy link
Collaborator

jzthree commented Jan 29, 2021

Thanks for the question! Yes that is right. The first half of the chromatin predictions are computed from the forward strand sequences and the second half is for the same number of reverse complement sequences.

@cmlakhan
Copy link
Author

Thanks for clarifying! You typically just average the two values, correct?

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

2 participants