saezlab / liana

LIANA: a LIgand-receptor ANalysis frAmework
https://saezlab.github.io/liana/
GNU General Public License v3.0
176 stars 31 forks source link

Adding extra modules of ligand-receptors #159

Open rmauron opened 3 months ago

rmauron commented 3 months ago

Dear developers,

Thank you for this great tool suit, very helpful.

I have a question regarding adding external models of L-R. how would it be possible to specify a manually selected L-R to check interaction for. Let's say I have 20 specific interaction that are not necessarily in the ressource provided by the tool, how can I give a new input of pairs?

dbdimitrov commented 3 months ago

Hi @rmauron,

It should be as simple as obtaining the resource of interest from liana and then concatenating your 20 interactions (formated the same way as the liana dataframe):

resource <- [select_resource](https://saezlab.github.io/liana/reference/select_resource.html)("Consensus")[[1]]
resource <- rbind(your_resource, resource)

Then you can pass the resource to liana_wrap function as shown here: https://saezlab.github.io/liana/articles/liana_custom_op.html#run-liana-with-a-custom-ccc-resource

Hope this helps!