Elisseeff-Lab / domino

A software package for connecting cell level features in single cell RNA sequencing data with receptor ligand activity. Please be aware that an improved package, dominoSignal, is available.
https://fertiglab.github.io/dominoSignal/
GNU General Public License v3.0
15 stars 8 forks source link

fix error in checking class of features or df argument #20

Closed jmitchell81 closed 1 year ago

jmitchell81 commented 1 year ago

Checking the class of a matrix storing feature or pySENIC motifs with the class() function returns a length 2 vector "matrix" "array" that cannot be compared to 'character' using == without throwing up an error that prevents create_domino from running. The inclusion of [1] to only check the first element of the output of class() allows the lines to accomplish their intended function of checking if the arguments are file paths to read in results.