Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to a path identifier for yml files to define variants. #6

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion aln2type/aln2type.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from collections import OrderedDict
import json
import gzip
import glob


def iupac_to_base(base):
Expand Down Expand Up @@ -513,7 +514,7 @@ def go(args):
sys.exit(1)

variant_types = []
for scheme in args.typing_yaml:
for scheme in glob.glob(args.typing_yaml + "**/*.yml", recursive=True):
variant_types.append(read_scheme_yaml(scheme))

typing_summary = []
Expand Down
2 changes: 1 addition & 1 deletion aln2type/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def parse_args():
parser.add_argument("summary_csv_outfile", help="Output summary CSV file")
parser.add_argument("ref_name", help="Name of reference sequence in MSA")
parser.add_argument("msa", help="Path to MSA")
parser.add_argument("typing_yaml", nargs='+', help="Path to Variant definition YAML files")
parser.add_argument("typing_yaml", help="Path to Variant definition YAML files")
args = parser.parse_args()

return args
Expand Down