Skip to content

Commit

Permalink
fix container script bug (#350)
Browse files Browse the repository at this point in the history
* Update dandelion_preprocess.py

* Update dandelion_preprocess.py

* Revert "Update dandelion_preprocess.py"

This reverts commit bd516e1.

* Update dandelion_preprocess.py

* Update dandelion_preprocess.py

* oops

* Update sc-dandelion_test.def
  • Loading branch information
zktuong committed Jan 10, 2024
1 parent 97dc56a commit f482ade
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion container/sc-dandelion.def
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Bootstrap: docker
From: ubuntu:latest

%setup
if [! /share ]; then
if [ ! -d /share ]; then
mkdir -p /share;
fi

Expand Down
2 changes: 1 addition & 1 deletion container/sc-dandelion_remote.def
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Bootstrap: docker
From: ubuntu:latest

%setup
if [! /share ]; then
if [ ! -d /share ]; then
mkdir -p /share;
fi

Expand Down
4 changes: 2 additions & 2 deletions container/sc-dandelion_test.def
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Bootstrap: docker
From: ubuntu:latest

%setup
if [! /share ]; then
if [ ! -d /share ]; then
mkdir -p /share;
fi

Expand Down Expand Up @@ -36,7 +36,7 @@ From: ubuntu:latest
eval ${@}

%test
ls /share
ls -ltR /share/database
which blastn
mamba list
pytest -p no:cacheprovider /tests -W ignore::DeprecationWarning -W ignore::PendingDeprecationWarning -W ignore::FutureWarning
12 changes: 10 additions & 2 deletions container/scripts/dandelion_preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,8 @@ def main():
)

# IG requires further preprocessing, TR is done now
if not args.skip_tigger:
if args.chain == "ig":
if args.chain == "ig":
if not args.skip_tigger:
# STEP THREE - ddl.pp.reassign_alleles()
# do we have individual information
if "individual" in meta.columns:
Expand Down Expand Up @@ -351,6 +351,14 @@ def main():
/ "dandelion"
/ (str(args.file_prefix) + "_contig_dandelion.tsv")
)
if args.skip_tigger:
ddl.pp.create_germlines(
vdj_data=samp_path,
org=args.org,
db=args.db,
strain=args.strain,
save=samp_path,
)
ddl.pp.quantify_mutations(samp_path)
ddl.pp.quantify_mutations(
samp_path,
Expand Down

0 comments on commit f482ade

Please sign in to comment.