-
Notifications
You must be signed in to change notification settings - Fork 3
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
impute gates that failed the QA check #10
Comments
Really nice Mike. I can't wait to see some real tests. Perhaps on the On Wed, Jun 26, 2013 at 5:10 PM, Mike Jiang notifications@github.comwrote:
|
Yes it does look more resonable. I am surprised that outliers make such a On Fri, Jun 28, 2013 at 9:56 AM, Mike Jiang notifications@github.comwrote:
|
> system.time(refSamples <- .nearestSamples(gs, "MTG_gate", failedSamples , method = "em")))
user system elapsed
30.002 0.000 29.466 and > system.time(refSamples <- .nearestSamples(gs, "MTG_gate", failedSamples, method = "ks.test"))
user system elapsed
4.096 0.000 4.313 |
Great. On Fri, Jun 28, 2013 at 10:44 AM, Mike Jiang notifications@github.comwrote:
|
Nice! On 06/28/2013 01:44 PM, Mike Jiang wrote:
|
@mikejiang This is nice. While I think the K-S approach deserves some credit here, it will give some peculiar results in other cases. Consider for example the following contrived example. In this example, we are trying to determine if With this in mind, I am in favor of computing some divergence (e.g., Kullback-Leibler) between the estimated densities. I will concoct something soon. |
In this case, 1 is the largest distance possible, and it makes sense given This being said, I am in favor of doing more comparison. John, thanks for On Fri, Jun 28, 2013 at 3:35 PM, John Ramey notifications@github.comwrote:
|
Add an options |
@gfinak , Here is the example for matching one bad sample against > system.time(res <- nearestSamples(gs, node = "CD4", failed = "1349_3_Tcell_A06.fcs", gridsize = c(70, 70), mc.cores = 8))
Finding reference sample for: 1349_3_Tcell_A06.fcs
user system elapsed
1123.817 1.582 160.287 We can fiddle with |
> pData(gs)[, 3:4]
Sample Replicate
12828_1_Tcell_A01.fcs 12828 1
12828_2_Tcell_A02.fcs 12828 2
12828_3_Tcell_A03.fcs 12828 3
1349_1_Tcell_A04.fcs 1349 1
1349_2_Tcell_A05.fcs 1349 2
1349_3_Tcell_A06.fcs 1349 3
1369_1_Tcell_A07.fcs 1369 1
1369_2_Tcell_A08.fcs 1369 2
1369_3_Tcell_A09.fcs 1369 3
> system.time(res <- nearestSamples(gs, node = node
+ , failed = failed
+ , passed = passed
+ , gridsize = c(50, 50)
+ , method = "em"
+ , mc.cores = 6
+ )
+ )
user system elapsed
657.522 10.993 156.177
> res
12828_1_Tcell_A01.fcs 1349_1_Tcell_A04.fcs 1369_1_Tcell_A07.fcs
"12828_2_Tcell_A02.fcs" "1349_3_Tcell_A06.fcs" "1369_2_Tcell_A08.fcs" As @raphg suggested, we could use > system.time(res <- nearestSamples(gs, node = node
+ , failed = failed
+ , passed = passed
+ , method = "ks.test"
+ , mc.cores = 6
+ )
+ )
user system elapsed
2.391 1.529 1.179
> res
12828_1_Tcell_A01.fcs 1349_1_Tcell_A04.fcs 1369_1_Tcell_A07.fcs
"12828_3_Tcell_A03.fcs" "1349_2_Tcell_A05.fcs" "1369_2_Tcell_A08.fcs" |
a new API is going to take a list of failed samples as input and return a list of reference samples
Once the reference samples are selected, it should be fairly straightforward to do the the gate imputation with the existing APIs (
getGate
andsetGate
)The text was updated successfully, but these errors were encountered: