@@ -86,10 +86,10 @@ public AlignmentOutput performAlignment(Readset rs, List<File> inputFastqs1, @Nu
8686 AlignmentOutputImpl output = new AlignmentOutputImpl ();
8787
8888 boolean throwIfNotFound = getProvider ().getParameterByName (REQUIRE_CACHED_BARCODES ).extractValue (getPipelineCtx ().getJob (), getProvider (), getStepIdx (), Boolean .class , false );
89- File cachedBarcodes = getCachedBarcodeFile (rs , throwIfNotFound );
89+ File loupeFile = getCachedLoupeFile (rs , throwIfNotFound );
9090
9191 File localBam ;
92- if (cachedBarcodes == null )
92+ if (loupeFile == null )
9393 {
9494 localBam = performCellRangerAlignment (output , rs , inputFastqs1 , inputFastqs2 , outputDirectory , referenceGenome , basename , readGroupId , platformUnit );
9595 }
@@ -109,12 +109,12 @@ public AlignmentOutput performAlignment(Readset rs, List<File> inputFastqs1, @Nu
109109
110110 private File createNimbleBam (AlignmentOutputImpl output , Readset rs , List <File > inputFastqs1 , List <File > inputFastqs2 ) throws PipelineJobException
111111 {
112- File cellBarcodeUmiMap = getCachedBarcodeFile (rs , true );
112+ File loupeFile = getCachedLoupeFile (rs , true );
113113
114- return NimbleHelper .runFastqToBam (output , getPipelineCtx (), rs , inputFastqs1 , inputFastqs2 , cellBarcodeUmiMap );
114+ return NimbleHelper .runFastqToBam (output , getPipelineCtx (), rs , inputFastqs1 , inputFastqs2 , loupeFile );
115115 }
116116
117- private File getCachedBarcodeFile (Readset rs , boolean throwIfNotFound ) throws PipelineJobException
117+ private File getCachedLoupeFile (Readset rs , boolean throwIfNotFound ) throws PipelineJobException
118118 {
119119 Map <Integer , Integer > map = getPipelineCtx ().getSequenceSupport ().getCachedObject (CACHE_KEY , PipelineJob .createObjectMapper ().getTypeFactory ().constructParametricType (Map .class , Integer .class , Integer .class ));
120120 Integer dataId = map .get (rs .getReadsetId ());
@@ -137,14 +137,14 @@ private File getCachedBarcodeFile(Readset rs, boolean throwIfNotFound) throws Pi
137137 return ret ;
138138 }
139139
140- private ExpData findCellBarcodeFiles (Readset rs ) throws PipelineJobException
140+ private ExpData findLoupeFile (Readset rs ) throws PipelineJobException
141141 {
142142 Container targetContainer = getPipelineCtx ().getJob ().getContainer ().isWorkbookOrTab () ? getPipelineCtx ().getJob ().getContainer ().getParent () : getPipelineCtx ().getJob ().getContainer ();
143143 UserSchema us = QueryService .get ().getUserSchema (getPipelineCtx ().getJob ().getUser (), targetContainer , SingleCellSchema .SEQUENCE_SCHEMA_NAME );
144144 TableInfo ti = us .getTable ("outputfiles" );
145145
146146 SimpleFilter sf = new SimpleFilter (FieldKey .fromString ("readset" ), rs .getRowId ());
147- sf .addCondition (FieldKey .fromString ("category" ), NimbleHelper . CATEGORY_CB );
147+ sf .addCondition (FieldKey .fromString ("category" ), CellRangerGexCountStep . LOUPE_CATEGORY );
148148 List <Integer > cbs = new TableSelector (ti , PageFlowUtil .set ("dataid" ), sf , new Sort ("-rowid" )).getArrayList (Integer .class );
149149 if (!cbs .isEmpty ())
150150 {
@@ -199,19 +199,19 @@ public void init(SequenceAnalysisJobSupport support) throws PipelineJobException
199199 }
200200
201201 // Try to find 10x barcodes:
202- HashMap <Integer , Integer > readsetToBarcodes = new HashMap <>();
202+ HashMap <Integer , Integer > readsetToLoupe = new HashMap <>();
203203 for (Readset rs : support .getCachedReadsets ())
204204 {
205- ExpData f = findCellBarcodeFiles (rs );
205+ ExpData f = findLoupeFile (rs );
206206 if (f != null )
207207 {
208208 support .cacheExpData (f );
209- readsetToBarcodes .put (rs .getReadsetId (), f .getRowId ());
209+ readsetToLoupe .put (rs .getReadsetId (), f .getRowId ());
210210 }
211211 }
212212
213- support .cacheObject (CACHE_KEY , readsetToBarcodes );
213+ support .cacheObject (CACHE_KEY , readsetToLoupe );
214214 }
215215
216- private static final String CACHE_KEY = "nimble.cb " ;
216+ private static final String CACHE_KEY = "nimble.loupe " ;
217217}
0 commit comments