Files
cellxgene/scripts/launch_and_open
Andrew Tolopko 30e19e47c6 feat: add cli annotation subcommand (#2539)
add `cellxgene annotate` subcommand for invoking MLflow model to generate new `obs` annotations, initially intended for cell type annotations.
2022-07-29 05:15:54 -07:00

17 lines
301 B
Plaintext
Executable File

#!/usr/bin/expect -f
# Mac only! (depends upon `open` command)
set h5ad [lindex $argv 0]
puts "$h5ad"
spawn cellxgene launch $h5ad
set timeout 10
expect -indices -re "Please go to (http:\/\/localhost:\[0-9\]+)" {
set url $expect_out(1,string)
exec >@stdout 2>@stderr open $url
}
interact