Skip to content

Commit 544c4ea

Browse files
committed
Switch nimble/CR barcodes to CB alone
1 parent 5d58764 commit 544c4ea

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private ExpData findCellBarcodeFiles(Readset rs) throws PipelineJobException
148148
TableInfo ti = us.getTable("outputfiles");
149149

150150
SimpleFilter sf = new SimpleFilter(FieldKey.fromString("readset"), rs.getRowId());
151-
sf.addCondition(FieldKey.fromString("category"), NimbleHelper.CATEGORY_CB_UMI);
151+
sf.addCondition(FieldKey.fromString("category"), NimbleHelper.CATEGORY_CB);
152152
List<Integer> cbs = new TableSelector(ti, PageFlowUtil.set("dataid"), sf, new Sort("-rowid")).getArrayList(Integer.class);
153153
if (!cbs.isEmpty())
154154
{

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ private Map<NimbleGenome, File> doAlignment(List<NimbleGenome> genomes, List<Fil
498498
return resultMap;
499499
}
500500

501-
public static final String CATEGORY_CB_UMI = "10x CellBarcode/UMI Map";
501+
public static final String CATEGORY_CB = "10x CellBarcode Map";
502502

503503
public static void write10xBarcodes(File bam, Logger log, Readset rs, ReferenceGenome referenceGenome, PipelineStepOutput output) throws PipelineJobException
504504
{
@@ -508,13 +508,13 @@ public static void write10xBarcodes(File bam, Logger log, Readset rs, ReferenceG
508508
barcodeArgs.add("-I");
509509
barcodeArgs.add(bam.getPath());
510510

511-
File bcOutput = new File(bam.getParentFile(), SequenceAnalysisService.get().getUnzippedBaseName(bam.getName()) + ".bc.txt.gz");
511+
File bcOutput = new File(bam.getParentFile(), SequenceAnalysisService.get().getUnzippedBaseName(bam.getName()) + ".cb.txt.gz");
512512
barcodeArgs.add("--output");
513513
barcodeArgs.add(bcOutput.getPath());
514514

515515
runner.execute(barcodeArgs);
516516

517-
output.addSequenceOutput(bcOutput, "10x CellBarcode/UMI Map: " + rs.getName(), CATEGORY_CB_UMI, rs.getReadsetId(), null, referenceGenome.getGenomeId(), null);
517+
output.addSequenceOutput(bcOutput, "10x CellBarcode Map: " + rs.getName(), CATEGORY_CB, rs.getReadsetId(), null, referenceGenome.getGenomeId(), null);
518518
}
519519

520520
public static File runNimbleReport(File alignResultsGz, int genomeId, PipelineStepOutput output, PipelineContext ctx) throws PipelineJobException

0 commit comments

Comments
 (0)