IanevskiAleksandr / sc-type

GNU General Public License v3.0
227 stars 44 forks source link

sc-type "$<-.data.from" error #43

Closed beemeeee closed 6 months ago

beemeeee commented 11 months ago

Hello,

I ran into this error message while running code from

https://github.com/IanevskiAleksandr/sc-type/blob/master/README.md

DB file

db_ = "https://raw.githubusercontent.com/IanevskiAleksandr/sc-type/master/ScTypeDB_full.xlsx"; tissue = "Brain " # e.g. Immune system,Pancreas,Liver,Eye,Kidney,Brain,Lung,Adrenal,Heart,Intestine,Muscle,Placenta,Spleen,Stomach,Thymus

prepare gene sets

gs_list = gene_setsprepare(db, tissue)


occured ERROR : $<-.data.frame(*tmp*, "geneSymbolmore1", value = c("", "" : replacement has 2 rows, data has 0 Called from: $<-.data.frame(*tmp*, "geneSymbolmore1", value = c("", "" ))

and a new browse popped up, highlighting this code


            nrows), domain = NA)
    if (is.atomic(value) && !is.null(names(value))) 
        names(value) <- NULL
}
x[[name]] <- value
class(x) <- cl
return(x)

}

and it says "Debug location is approximate because the source is not available".

I am not sure what I can do to correct this error. Any advice would be a huge help for me.

Thanks!

IanevskiAleksandr commented 6 months ago

Dear @beemeeee ,

It should work now. If you still encounter issues, please don't hesitate to reopen the comment thread.

BR, Aleksandr