Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using custom marker dataframe #66

Open
niccolovono opened this issue Feb 17, 2024 · 1 comment
Open

Error when using custom marker dataframe #66

niccolovono opened this issue Feb 17, 2024 · 1 comment

Comments

@niccolovono
Copy link

Hi,
after implementing a custom dataset as suggested here, i got an error that seems not to match some elements between findmarkergene and findcelltype function.
The error is this one:
ann_cell3 <- findcelltype(object = ann_mark3, verbose = T) Error in if (unique(clu_ann_for_det$variable == "subtype1")) { : the condition has length > 1

Here's how I implemented the dataframe:
Custom_mark_cc <- data.frame(species = Cell_marker_Human_cc$species, tissue = c('Colon'), cancer = Cell_marker_Human_cc$cancer_type, condition = Cell_marker_Human_cc$cell_type, subtype1 = 'NA', subtype2 = 'NA', subtype3 = 'NA', celltype = Cell_marker_Human_cc$cell_name, gene = Cell_marker_Human_cc$marker, resource = Cell_marker_Human_cc$marker_source, pmid = Cell_marker_Human_cc$PMID)
and this is a preview of the same:
Screenshot 2024-02-17 alle 10 14 31.

When I run the function findmarkergene like this:
ann_mark3 <- findmarkergene(object = ann_obj, species = "Human", marker = Custom_mark_cc, tissue = "Colon", cancer = 'Colon Cancer', verbose = T, use_method = 1 )
everything seems to be ok, but when trying to apply findcelltype function like this:
ann_cell3 <- findcelltype(object = ann_mark3, verbose = T) the above error appears.
Do you have some suggestion?
I have already tried some troubleshoot like reinstalling scCATCH, adding the argument if_use_custom_marker =TRUE but nothing changes.

Thank you for your time and help

@ZouZouZouJiYuan2022
Copy link

Me Too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants