Slightly simplified the check for species, not sure if error handling is necessary there as msigdbr already handles that and throws relatively transparent error. Removed the code for the case when only one category is requested as it is redundant with the loop that handles multiple categories. Added a case for when library is NULL so it no longer throws an error.
Slightly simplified the check for species, not sure if error handling is necessary there as msigdbr already handles that and throws relatively transparent error. Removed the code for the case when only one category is requested as it is redundant with the loop that handles multiple categories. Added a case for when library is NULL so it no longer throws an error.