aertslab / create_cisTarget_databases

Create cisTarget databases
37 stars 8 forks source link

how to get the 'genes_vs_motifs.rankings.feather' #45

Open krayon4river opened 7 months ago

krayon4river commented 7 months ago

Hi, firstly, i want to verify whether the output ''genes_vs_motifs.rankings.feather' and ''motifs_vs_genes.rankings.feather' is the same result. Secondly, 微信截图_20231206100214 i followed the steps above and generated the results but without the output 'genes_vs_motifs.rankings.feather',if i should change the fasta input from biomart mentioned by https://github.com/aertslab/create_cisTarget_databases/issues/16 148767876-8e476c07-3375-4061-886f-aa2234ff5556

ghuls commented 5 months ago

It will be the same as the motifs_vs_genes.rankings.feather matrix is transposed to make genes_vs_motifs.rankings.feather

If you really want, you can generate it with:

import cistarget_db

m_vs_g_ct_db = cistarget_db.read_db("motifs_vs_genes.rankings.feather")

g_vs_m_ct_db = m_vs_g_ct_db.transpose()

g_vs_m_ct_db.write_db(db_filename="genes_vs_motifs.rankings.feather")