Skip to content

Commit

Permalink
fixed the naming convention for spectype library, sequence, libseq an…
Browse files Browse the repository at this point in the history
…d format png, tree, html, info, sequence in the seqsec print command
  • Loading branch information
sbooeshaghi committed Mar 12, 2024
1 parent 0141c0a commit 06d6880
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions seqspec/seqspec_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ def validate_print_args(parser, args):
raise ValueError("-f html only valid for -s library")
if fmt == "info" and spectype != "sequence":
raise ValueError("-f info only valid for -s sequence")
if fmt == "sequence" and spectype != "libseq":
raise ValueError("-f sequence only valid for -s libseq")

fn = args.yaml
o = args.o
spec = load_spec(fn)

LIBSEQ_CMD = {
"libseq": run_print_libseq,
"sequence": run_print_libseq_sequence,
}

SEQUENCE_CMD = {
Expand Down Expand Up @@ -98,7 +100,7 @@ def validate_print_args(parser, args):
print(s)


def run_print_libseq(spec):
def run_print_libseq_sequence(spec):
p = []
for modality in spec.modalities:
p.append(libseq(spec, modality))
Expand Down

0 comments on commit 06d6880

Please sign in to comment.