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!
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 ransnap.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 theadd_cor_scores
function. Thanks for the help in advance!