-
Notifications
You must be signed in to change notification settings - Fork 14
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
gatingset_to_flowjo gate not found; version problem? #126
Comments
Can you share the minimum reproducible example? |
Can you try the file I sent you around the 18th?
|
I think I know where the problem is. Let me tackle this and get back to you once we have a solution. |
I've pushed the fix. You will need to pull the latest CytoML from github master and pull the new docker image
|
I have pulled the image but cannot run it:
I am not a docker expert and don't know what to do with status 132 or "Resource temporarily unavailable" |
Originally I ran into this problem:
I am not sure why the temp file doesn't exist as well. Thx for looking into this. |
I don't know how to reproduce your error, here is what you should get when you run the command at termainal
|
Hi Mike,
But, again, this doesn't mean much to me. Before upgrading the OS, which I really like to push to some time with less stress, I would like to ask you for the script to create the docker file. Maybe I can get this working. Thanks for you consideration. |
docker is os and machine independent , shouldn't behave differently. Here is a reproducible example see if it works for you
|
Unfortunately, there are some specific issues with MAC as it is running a different VM. These sites are not 100% matching, but they show some aspects of the issue. I can access the executable within the docker file, but it would be helpful to see the docker file to create the image such that I can verify the machine and then the executable. I guess there are certain libraries that are responsible for the interaction between the VM, mac OS and Linux which are not behaving. Btw. I was able to verify that the mounting of files works, i.e. I can access the the files from my Mac from within the docker image. (at /gs) |
here is the dockerfile
I am not sure how much help you can get from it, since the
|
1 similar comment
here is the dockerfile
I am not sure how much help you can get from it, since the
|
Sorry, still not working. As a last resort, I even updated the OS to Big Sur. I installed gdb within the VM and traced back the illegal instruction to:
for the shlx command I found out that it might be that my computer is too old (2013, Ivy Bridge EP, Xeon E5) is not supporting AVX2. (I also tried copying the executable into a new VM, without luck.) Would it be possible to compile it on my side within the VM or even directly on MacOS? |
Does it mean that docker in general isn't working in your mac vm? Can you enter bash mode by |
docker is working. I can run R within Docker. Version 2.0 is running normally:
Other docker images are running as well. |
Mike,
the docker image produces the correct output:
|
Do you have any idea what could be the cause of the problem? |
Hi Mike, not sure if you understood, that the VM is working and I found a more recent computer that runs the program. thanks, Bernd |
I've updated the docker image, with latest pull, your previous error should be gone. But this time, you should see
which tells you that your gs has the logical gate from |
Just as a side-note: yesterday I received a new computer, a MacBook pro.
The chip is now called: "Apple M1" There is only a RC (version 2) with quite a few unresolved issues. This whole thing is turning into a nightmare. I will try with a windows based computer from my son |
I hope we can get closer with this. It is not a "minimal" example but has all the elements I am using.
with the following error message:
|
First of all, if you pull the latest docker image , you should see
Secondly, you were creating the I think what you may want to do is to add these bool vector as a single factor , which will be treated the clustering results. And it can be handled by flowjo properly
|
I am getting the following error on M1 Pro chip Macbook Pro. I installed docker, got the latest dev version of flowCore, CytoML. But I am getting this weird msg on specifying image platform, for which i dont see any options to specify it. Please advise.
|
I was able to fix the issue by adding ❯ docker inspect -f '{{.Os}}/{{.Architecture}}' public.ecr.aws/ozette/cytoverse/gs-to-wsp
linux/amd64
❯ docker info -f '{{.OSType}}/{{.Architecture}}'
linux/aarch64 As a temporary fix, copy and source the following gatingset_to_flowjo <- function (gs, outFile, showHidden = FALSE, docker_img = NULL, ...) {
res <- CytoML:::check_binary_status()
if (res != "binary_ok") {
res <- CytoML:::check_docker_status(docker_img)
}
if (!(res[1] %in% c("binary_ok", "docker_ok")))
stop(res)
if (is(gs, "GatingSet")) {
tmp <- tempfile()
suppressMessages(save_gs(gs, tmp, ...))
}
else tmp <- gs
outFile <- gsub(" ", "\\\\ ", file.path(normalizePath(dirname(outFile)),
basename(outFile)))
tmpfile <- tempfile()
if (res[1] == "binary_ok") {
message("Using local gs-to-flowjo binary to write FlowJo workspace...")
res <- suppressWarnings(system2("gs-to-flowjo", paste0(" --src=",
tmp, " --dest=", tmpfile, " --showHidden=", showHidden),
stderr = TRUE))
}
else {
docker_img <- res[2]
v1 <- packageVersion("cytolib")
v2 <- system2("docker", paste0("run --platform linux/amd64", docker_img, " --cytolib-version"),
stdout = TRUE)
message(paste0("Using docker image ", docker_img, " to write FlowJo workspace..."))
res <- suppressWarnings(system2("docker", paste0("run --platform linux/amd64",
" -v ", tmp, ":/gs", " -v ", normalizePath(dirname(tmpfile)),
":/out ", docker_img, " --src=/gs --dest=/out/",
basename(tmpfile), " --showHidden=", showHidden),
stderr = TRUE))
}
if (length(res) > 0)
stop(res)
else {
tree <- xml2::read_xml(tmpfile)
CytoML:::add_version_info(tree)
invisible(xml2::write_xml(tree, file = outFile))
}
} This will allow Docker to use emulation. If it still fails, make sure to install Rosetta 2. Long term, I think it should be rebuilt for multiple-architectures. @mikejiang |
I want to export a gatingset to FlowJo. (the data origniates from a flowJo workspace, is a bit modified (added a gate and two markers)
I get the error message below, complaining about a population ("Treg_Memory-") that is not found.
I cannot find this population myself either:
I am also wondering if this has to do with the warning about 2.3.0 vs. 2.3.7.
Not sure what to test next. Any help appreciated.
Thanks,
Bernd
PS. not sure if these are related, but with the same data set, only a bit more modified, I get the following error message:
The text was updated successfully, but these errors were encountered: