Skip to content

Commit

Permalink
Simplify segmentation inference
Browse files Browse the repository at this point in the history
  • Loading branch information
corneliusroemer committed Jun 4, 2024
1 parent cc3be2a commit 6bb5896
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 2 additions & 7 deletions ingest/Snakefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,8 @@ for key, value in defaults.items():
if not key in config:
config[key] = value

# Check if organism is segmented
if "nucleotideSequences" not in config:
config["nucleotideSequences"] = ["main"]
config["segmented"] = not (
len(config["nucleotideSequences"]) == 1
and config["nucleotideSequences"][0] == "main"
)
# Infer whether nucleotide sequences are segmented
config["segmented"] = len(config["nucleotideSequences"]) > 1

Path("results").mkdir(parents=True, exist_ok=True)
with open("results/config.yaml", "w") as f:
Expand Down
1 change: 1 addition & 0 deletions ingest/config/defaults.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Values here are defaults for the `config` variable in the Snakefile
# Purpose is to keep the `values.yaml` config file clean
nucleotideSequences: ["main"]
post_start_sleep: 0
log_level: DEBUG
compound_country_field: ncbi_geo_location
Expand Down

0 comments on commit 6bb5896

Please sign in to comment.