Skip to content

Commit

Permalink
copy reads for kraken instead of softlink
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony-xy-Liu committed May 12, 2023
1 parent 7d393bb commit d3dbbf7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion metagenomics/taxonomy_on_reads/lib/definition.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

CONTAINER = 'kraken2.sif'
_DB_SIZE = 16
# _DB_SIZE = 8
REF_DB = f'k2_standard_{_DB_SIZE:02}gb_20230314' # 8gb db is named "...08gb..."
PIGZ = 'pigz'

Expand All @@ -30,7 +31,7 @@ def procedure(context: JobContext) -> JobResult:
reads = []
for r in _reads:
assert isinstance(r, Path), f"expected path for reads, got: {r}"
context.shell(f"ln -s {r.absolute()} {input_dir.joinpath(r.name)}")
context.shell(f"cp -L {r.absolute()} {input_dir.joinpath(r.name)}")
reads.append(r.name)

binds = [
Expand Down

0 comments on commit d3dbbf7

Please sign in to comment.