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

add_cor_scores could only selects capitalized genes? #260

Open
zkcao opened this issue Mar 15, 2024 · 1 comment
Open

add_cor_scores could only selects capitalized genes? #260

zkcao opened this issue Mar 15, 2024 · 1 comment

Comments

@zkcao
Copy link

zkcao commented Mar 15, 2024

Hi Kai,

While I was running add_cor_scores for some mouse data, I found that the select argument could only take capitalized gene names. I used
network = snap.tl.init_network_from_annotation(regions, anno_file = snap.genome.mm10, upstream=500000, downstream=500000, id_type='gene_name', coding_gene_only=True)
to set up the network. As I ran
snap.tl.add_cor_scores(network, gene_mat = expr, peak_mat = damage, select = variable_gene, overwrite = True) only one gene would get selected. Adding var_upper = [gene.upper() for gene in variable_gene]
would pass all the genes I wanted to the add_cor_scores function. Thanks for the help in advance!

@kaizhang
Copy link
Owner

Yes, the current implementation is case-sensitive. I'll look into this and see if it can implemented differently.

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