Skip to content

Commit fdc468e

Browse files
committed
Use LongHashMap
1 parent 32a6d5f commit fdc468e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

singlecell/src/org/labkey/singlecell/run/NimbleAlignmentStep.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import org.apache.commons.io.FileUtils;
44
import org.jetbrains.annotations.Nullable;
55
import org.json.JSONObject;
6+
import org.labkey.api.collections.LongHashMap;
67
import org.labkey.api.data.Container;
78
import org.labkey.api.data.SimpleFilter;
89
import org.labkey.api.data.Sort;
@@ -116,7 +117,7 @@ private File createNimbleBam(AlignmentOutputImpl output, Readset rs, List<File>
116117

117118
private File getCachedLoupeFile(Readset rs, boolean throwIfNotFound) throws PipelineJobException
118119
{
119-
Map<Long, Long> map = getPipelineCtx().getSequenceSupport().getCachedObject(CACHE_KEY, PipelineJob.createObjectMapper().getTypeFactory().constructParametricType(HashMap.class, Long.class, Long.class));
120+
Map<Long, Long> map = getPipelineCtx().getSequenceSupport().getCachedObject(CACHE_KEY, PipelineJob.createObjectMapper().getTypeFactory().constructParametricType(Map.class, Long.class, Long.class));
120121
Long dataId = map.get(rs.getReadsetId());
121122
if (dataId == null)
122123
{
@@ -199,7 +200,7 @@ public void init(SequenceAnalysisJobSupport support) throws PipelineJobException
199200
}
200201

201202
// Try to find 10x barcodes:
202-
HashMap<Long, Long> readsetToLoupe = new HashMap<>();
203+
LongHashMap<Long> readsetToLoupe = new LongHashMap<>();
203204
for (Readset rs : support.getCachedReadsets())
204205
{
205206
ExpData f = findLoupeFile(rs);

0 commit comments

Comments
 (0)