Skip to content

Commit 3a83c60

Browse files
committed
Switch velocyto to use generic run command instead of run10x
1 parent ec05a79 commit 3a83c60

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

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

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,24 @@ public File runVelocytoFor10x(File localBam, File gtf, File outputFolder, @Nulla
100100
{
101101
// https://velocyto.org/velocyto.py/tutorial/cli.html#run10x-run-on-10x-chromium-samples
102102
// velocyto run10x -m repeat_msk.gtf mypath/sample01 somepath/refdata-cellranger-mm10-1.2.0/genes/genes.gtf
103+
// velocyto run -b filtered_barcodes.tsv -o output_path -m repeat_msk_srt.gtf possorted_genome_bam.bam mm10_annotation.gtf
103104

104105
SimpleScriptWrapper wrapper = new SimpleScriptWrapper(getLogger());
105106
List<String> args = new ArrayList<>();
106107
args.add(SequencePipelineService.get().getExeForPackage("VELOCYTOPATH", "velocyto").getPath());
107-
args.add("run10x");
108+
args.add("run");
108109

109110
args.add("-o");
110111
args.add(outputFolder.getPath());
111112

113+
args.add("-b");
114+
File barcodeCSV = new File(localBam.getParentFile(), "outs/raw_feature_bc_matrix/barcodes.tsv.gz");
115+
if (!barcodeCSV.exists())
116+
{
117+
throw new PipelineJobException("Unable to find file: " + barcodeCSV.getPath());
118+
}
119+
args.add(barcodeCSV.getPath());
120+
112121
Integer threads = SequencePipelineService.get().getMaxThreads(getLogger());
113122
if (threads != null && threads > 1)
114123
{
@@ -122,9 +131,7 @@ public File runVelocytoFor10x(File localBam, File gtf, File outputFolder, @Nulla
122131
args.add(mask.getPath());
123132
}
124133

125-
// Input 10x. This is the top-level project output
126-
args.add(localBam.getParentFile().getParentFile().getPath());
127-
134+
args.add(localBam.getPath());
128135
args.add(gtf.getPath());
129136

130137
wrapper.execute(args);

0 commit comments

Comments
 (0)