Skip to content

Commit

Permalink
Drop --include-technical
Browse files Browse the repository at this point in the history
  • Loading branch information
bbimber committed Jan 16, 2025
1 parent 892c793 commit 806a1fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2022,7 +2022,7 @@ else if (sraIDs.contains(rd.getSra_accession()))
outDir.mkdirs();
}

Pair<File, File> downloaded = sra.downloadSra(rd.getSra_accession(), unzippedOutDir, rd.isPairedEnd());
Pair<File, File> downloaded = sra.downloadSra(rd.getSra_accession(), unzippedOutDir, rd.isPairedEnd(), false);
File moved1 = new File(outDir, downloaded.first.getName());
if (moved1.exists())
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ public void processFilesRemote(List<Readset> readsets, JobContext ctx) throws Un
File expectedFile2 = rd.getFileId2() == null ? null : ctx.getSequenceSupport().getCachedData(rd.getFileId2());

FastqDumpWrapper wrapper = new FastqDumpWrapper(ctx.getLogger());
Pair<File, File> files = wrapper.downloadSra(accession, ctx.getOutputDir(), rd.isPairedEnd());
Pair<File, File> files = wrapper.downloadSra(accession, ctx.getOutputDir(), rd.isPairedEnd(), false);

long lines1 = SequenceUtil.getLineCount(files.first) / 4;
ctx.getJob().getLogger().debug("Reads in " + files.first.getName() + ": " + lines1);
Expand Down Expand Up @@ -459,13 +459,16 @@ public FastqDumpWrapper(@Nullable Logger logger)
super(logger);
}

public Pair<File, File> downloadSra(String dataset, File outDir, boolean expectPaired) throws PipelineJobException
public Pair<File, File> downloadSra(String dataset, File outDir, boolean expectPaired, boolean includeTechnical) throws PipelineJobException
{
List<String> args = new ArrayList<>();
args.add(getExe().getPath());

// NOTE: we probably want the --split-3 behavior, which is the default for fasterq-dump
args.add("--include-technical");
if (includeTechnical)
{
args.add("--include-technical");
}

Integer threads = SequencePipelineService.get().getMaxThreads(getLogger());
if (threads != null)
Expand Down

0 comments on commit 806a1fb

Please sign in to comment.