AI Decision System
Replayable, offline-verifiable records for AI-assisted go/no-go decisions: experiment promotions, typed model answers and human-approved actions.
같은 샘플의 비자극·자극 튜브를 비교해 자극에 반응했을 가능성이 있는 세포를 이상치 게이팅으로 식별합니다
Apply outlier gating function to identify cells that have possibly responded to stimulation, by comparing the unstimulated and stimulated tubes from the same sample.
개발 도구R · PythonGitHub @SATVILab온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
개인 계정의 공개 저장소 소유자는 GitHub로 로그인해 운영자를 확인하고 소개를 직접 관리할 수 있습니다. 관리자 승인은 필요하지 않습니다.
로그인한 뒤 확인 파일을 만들어 이 저장소의 기본 브랜치에 30분 안에 커밋해 주세요. 다른 브랜치나 포크의 파일은 인정하지 않습니다. 파일을 올린 뒤 아래에서 확인하면 관리자 승인 없이 관리할 수 있습니다. 자격을 유지하려면 파일을 남겨 두세요.
로그인이 필요하면 로그인 화면으로 이동합니다. 로그인 후 이곳으로 돌아와 원하는 확인 버튼을 다시 눌러 주세요.
프로젝트 폴더에서 /nomorevibe verify를 실행하면 소유권을 확인하고 소개를 직접 관리할 수 있습니다.
1분 만에 확인하기Robustly identify rare responses to stimulation
저장소 README에서 가져옴
README 전체를 불러오는 중입니다. 아래는 저장된 발췌입니다.
stimgate
================
stimgate is an R package that finds cells that may have responded to
immune stimulation in flow cytometry data. For each donor, it compares
the stimulated samples with an unstimulated sample and sets a gate for
each marker based on that donor's background, instead of using one fixed
cut-off for everyone.README 전문 보기 ↗stimgate is an R package that finds cells that may have responded to
immune stimulation in flow cytometry data. For each donor, it compares
the stimulated samples with an unstimulated sample and sets a gate for
each marker based on that donor's background, instead of using one fixed
cut-off for everyone.
You can give it a flowWorkspace::GatingSet, other
flowCore/flowWorkspace objects, FCS files or expression matrices.
gateStim() does the gating and saves the gates, expression values and
response statistics in a folder. The other functions read from that
folder, so you can plot results or export cells without gating again.
For each marker, StimGate compares how strongly cells express it in the stimulated and unstimulated samples. It places the gate where cells start to be more common in the stimulated sample than the unstimulated one would explain. It then makes gates more consistent across similar samples, and can adjust a marker's gate using cells that are already positive for another cytokine. The results give, for each sample, the percentage of cells positive for each marker and each combination of markers, minus the unstimulated background.
The method is still being developed. See the function help pages for its settings.
The development version can be installed from GitHub. stimgate depends
on Bioconductor flow-cytometry packages, including flowCore and
flowWorkspace.
if (!requireNamespace("BiocManager", quietly = TRUE)) {
install.packages("BiocManager")
}
BiocManager::install(c("flowCore", "flowWorkspace"))
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
remotes::install_github("SATVILab/stimgate")
The package requires R >= 4.4.0.
getExampleData() loads a small example dataset that comes with the
package, so you can try StimGate without your own FCS files.
library(stimgate)
example_data <- getExampleData()
gs <- flowWorkspace::load_gs(example_data$pathGs)
path_project <- file.path(tempdir(), "stimgate-example")
path_project <- gateStim(
pathProject = path_project,
.data = gs,
popGate = "root",
batchList = example_data$batchList,
marker = example_data$marker
)
# Gates and response statistics saved by gateStim()
gates <- getStimGates(path_project)
gate_stats <- getStimStats(path_project)
# Plot the samples in the first matched batch
plotStim(
ind = example_data$batchList[[1]],
.data = gs,
pathProject = path_project,
marker = example_data$marker,
grid = TRUE
)
For real data, gateStim() needs your cytometry data, the markers or
channels to gate, and a batchList that groups each donor's samples
with the unstimulated sample first. The defaults suit most data. To tune
the method, change biasUns or bw, pass other settings with control = stimControl(...), or set them for single markers with
markerControl.
gateStim() finds the gates and saves the results.getStimGates() and getStimStats() read the saved gates and
response statistics.plotStim() plots expression for one or two markers, with the gates.getStimExpr() reads the saved expression values, optionally only for
positive cells.getStimGatesDetailed() reads extra detail on how each gate was
chosen, if it was saved.writeStimFCS() saves the positive cells as FCS files.getBatchList() builds batchList from a table describing your
samples.getExampleData() loads the packaged example dataset.The package code is in R/ and its tests are in tests/testthat/. The
analysis/ folder holds research analyses (simulations and method
comparisons); you don't need them to use the package.
Guidance for working on the code is in AGENTS.md. BUILDLOG.md
records past runs of the research analyses.
stimgate is released under GPL (>= 3).