Skip to content

Reference sample for batch correction #1

Description

@AlexBouz

Dear @CUHIMSR ,

Thank you for sharing this important tool for batch effect correction. I had a question regarding the reference sample named "anchor", i downloaded the fcs files from the vaccination study uploaded on flow repository, and tried to run the R script using the examples terminologies:

[1] 2019-10-28 14:52:28 BatchAdjust.R
[1] basedir:C:/Users/Alexandre.Bouzekri/Desktop/Clinical files mass cytometry/Batch correction
[1] outdir:C:/Users/Alexandre.Bouzekri/Desktop/Clinical files mass cytometry/Batch correction/debarcoded
[1] channelsFile:ChannelsToAdjust_example.txt
[1] batchKeyword:Barcode_
[1] anchorKeyword:anchor stim
[1] transformation:FALSE
[1] method:95p
[1] Reading channels file: ChannelsToAdjust_example.txt
[1] Adjusting 39 channels.
[1] Batch 1 anchor not found.
[1] Check file naming requirements?
Error in BatchAdjust(basedir = "C:/Users/Alexandre.Bouzekri/Desktop/Clinical files mass cytometry/Batch correction", :
The reference anchor must exist and have the batch number 1.
In addition: Warning message:
In system(ls_cmd, intern = TRUE, ignore.stdout = FALSE, ignore.stderr = TRUE, :
running command 'ls -1 C:/Users/Alexandre.Bouzekri/Desktop/Clinical\ files\ mass\ cytometry/Batch\ correction/anchor\ stim.fcs' had status 2

Called from: BatchAdjust(basedir = "C:/Users/Alexandre.Bouzekri/Desktop/Clinical files mass cytometry/Batch correction",
outdir = "C:/Users/Alexandre.Bouzekri/Desktop/Clinical files mass cytometry/Batch correction/debarcoded",
channelsFile = "ChannelsToAdjust_example.txt", batchKeyword = "Barcode_",
anchorKeyword = "anchor stim", method = "95p",
transformation = FALSE, addExt = NULL, plotDiagnostics = TRUE)

I had this error about the reference sample, is it coming from some misslabeling requirements?

Thanks for the clarification.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions