Skip to content

Commit b92677a

Browse files
committed
Try to fix SingleR/ExperimentHub issue
1 parent cb55dde commit b92677a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

singlecell/resources/chunks/RunSingleR.R

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Added to avoid celldex/ExperimentHub/BiocFileCache write errors
2-
Sys.setenv('HOME', '/dockerHomeDir')
2+
cacheDir <- '/BiocFileCache/.cache'
3+
if (dir.exists(cacheDir)) {
4+
unlink(cacheDir, recursive = TRUE)
5+
}
6+
7+
dir.create(cacheDir, recursive=TRUE)
8+
ExperimentHub::setExperimentHubOption('cache', cacheDir)
9+
library(ExperimentHub)
310

411
for (datasetId in names(seuratObjects)) {
512
printName(datasetId)

singlecell/resources/web/singlecell/panel/PoolImportPanel.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
5858
allowRowSpan: false,
5959
allowBlank: false,
6060
transform: 'assaytype'
61+
},{
62+
name: 'treatment',
63+
labels: ['Treatment'],
64+
allowRowSpan: false,
65+
allowBlank: false
6166
},{
6267
name: 'tube_num',
6368
labels: ['Tube #', 'Stim #'],
@@ -617,6 +622,7 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
617622
stim: r.stim,
618623
celltype: r.celltype,
619624
assaytype: r.assaytype || 'None',
625+
treatment: r.treatment,
620626
tissue: r.tissue,
621627
objectId: r.objectId,
622628
population: r.population,
@@ -837,6 +843,7 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
837843
celltype: row.celltype,
838844
tissue: row.tissue,
839845
assaytype: row.assaytype || 'None',
846+
treatment: row.treatment,
840847
objectId: guid,
841848
workbook: row.workbook
842849
});
@@ -1120,7 +1127,7 @@ Ext4.define('SingleCell.panel.PoolImportPanel', {
11201127
},
11211128

11221129
getSampleKey: function(data){
1123-
return [data.sampleId, data.subjectId, data.stim, data.assaytype, data.tissue, (Ext4.isDate(data.sampleDate) ? Ext4.Date.format(data.sampleDate, 'Y-m-d') : data.sampleDate)].join('|');
1130+
return [data.sampleId, data.subjectId, data.stim, data.assaytype, data.treatment, data.tissue, (Ext4.isDate(data.sampleDate) ? Ext4.Date.format(data.sampleDate, 'Y-m-d') : data.sampleDate)].join('|');
11241131
},
11251132

11261133
getSortKey: function(data){

singlecell/src/org/labkey/singlecell/SingleCellController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ private static List<Map<String, Object>> parseRows(SimpleApiJsonForm form, Strin
378378
@RequiresPermission(ReadPermission.class)
379379
public static class GetMatchingSamplesAction extends ReadOnlyApiAction<SimpleApiJsonForm>
380380
{
381-
final List<String> FIELDS = Arrays.asList("subjectId", "sampledate", "subjectid", "celltype", "tissue", "assaytype", "stim");
381+
final List<String> FIELDS = Arrays.asList("subjectId", "sampledate", "subjectid", "celltype", "tissue", "assaytype", "stim", "treatment");
382382

383383
@Override
384384
public Object execute(SimpleApiJsonForm form, BindException errors) throws Exception

0 commit comments

Comments
 (0)