You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
Hi Kai,
While I was running
add_cor_scores
for some mouse data, I found that theselect
argument could only take capitalized gene names. I usednetwork = 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. Addingvar_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!The text was updated successfully, but these errors were encountered: