-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
for (datasetId in names(seuratObjects)) { | ||
printName(datasetId) | ||
seuratObj <- readSeuratRDS(seuratObjects[[datasetId]]) | ||
|
||
seuratObj <- PerformMhcDimRedux(seuratObj) | ||
|
||
saveData(seuratObj, datasetId) | ||
|
||
# Cleanup | ||
rm(seuratObj) | ||
gc() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
singlecell/src/org/labkey/singlecell/pipeline/singlecell/PerformMhcDimRedux.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package org.labkey.singlecell.pipeline.singlecell; | ||
|
||
import org.labkey.api.sequenceanalysis.pipeline.AbstractPipelineStepProvider; | ||
import org.labkey.api.sequenceanalysis.pipeline.PipelineContext; | ||
import org.labkey.api.singlecell.pipeline.SingleCellStep; | ||
|
||
import java.util.Arrays; | ||
|
||
public class PerformMhcDimRedux extends AbstractRDiscvrStep | ||
{ | ||
public PerformMhcDimRedux(PipelineContext ctx, PerformMhcDimRedux.Provider provider) | ||
{ | ||
super(provider, ctx); | ||
} | ||
|
||
public static class Provider extends AbstractPipelineStepProvider<SingleCellStep> | ||
{ | ||
public Provider() | ||
{ | ||
super("PerformMhcDimRedux", "Perform MHC DimRedux", "RDiscvr", "This will perform dimensionality reduction based on MHC data", Arrays.asList( | ||
|
||
), null, null); | ||
} | ||
|
||
@Override | ||
public PerformMhcDimRedux create(PipelineContext ctx) | ||
{ | ||
return new PerformMhcDimRedux(ctx, this); | ||
} | ||
} | ||
|
||
@Override | ||
public String getFileSuffix() | ||
{ | ||
return "mhc"; | ||
} | ||
} | ||
|