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

Unexpected error when running cqc_fix(res) #7

Open
fingeram opened this issue Jan 17, 2023 · 2 comments
Open

Unexpected error when running cqc_fix(res) #7

fingeram opened this issue Jan 17, 2023 · 2 comments

Comments

@fingeram
Copy link

Hi,

I am trying to run cytoqc to standardize channels across different fcs datasets. I am running the code as described but receive the error: "Error: Invalid input type, expected 'integer' actual 'double'" when running cqc_fix. Can you please help? I have the newest version of R (4.2.2) and updated all my packages. Thanks a lot!!

#if fcs files have different columns try using cytoqc to standardize
files <- list.files(fcs.dir, ".fcs", full.names = TRUE)
cqc_data <- cqc_load_fcs(files)
cqc_data

cytoqc data:
5 samples

#check consistency across samples
check_results <- cqc_check(cqc_data, type="channel")
check_results

A tibble: 2 × 3

group_id nFCS channel

1 2 4 FJComp-AF-A, FJComp-Alexa Fluor 488-A, FJComp-Alexa Fluor 647-A, FJComp-Alexa Fluor 700-A, FJComp-Alexa Fluor 750-A, FJComp-APC-A, FJComp-…
2 1 1 FJComp-AF-A, FJComp-Alexa Fluor 488-A, FJComp-Alexa Fluor 594-A, FJComp-Alexa Fluor 647-A, FJComp-Alexa Fluor 700-A, FJComp-Alexa Fluor 75…

#match the reference
res <- cqc_match(check_results,ref=2)
res

                              Ref                        1

1 FJComp-AF-A ✓
2 FJComp-Alexa Fluor 488-A ✓
3 FJComp-Alexa Fluor 647-A ✓
4 FJComp-Alexa Fluor 700-A ✓
5 FJComp-Alexa Fluor 750-A ✓
6 FJComp-APC-A ✓
7 FJComp-BV510-A ✓
8 FJComp-BV605-A ✓
9 FJComp-BV711-A ✓
10 FJComp-BV785-A ✓
11 FJComp-eFluor 450-A ✓
12 FJComp-PE-Cy7-A ✓
13 FJComp-PerCP-Cy5.5-A ✓
14 FJComp-Zombie NIR-A ✓
15 FSC-A ✓
16 FSC-H ✓
17 SSC-A ✓
18 SSC-B-A ✓
19 SSC-B-H ✓
20 SSC-H ✓
21 Time ✓
23 To Delete FJComp-Alexa Fluor 594-A

#apply the fix
cqc_fix(res)

Error: Invalid input type, expected 'integer' actual 'double'

mikejiang pushed a commit that referenced this issue Jan 22, 2023
@mikejiang
Copy link
Member

I pushed the patch to master branch which should fix the issue

@fingeram
Copy link
Author

fingeram commented Feb 8, 2023

Awesome, works now - thanks a lot

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