Skip to content

Commit

Permalink
Change Vapor bed preprocessing errors to warnings (#622)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwalker174 authored Jan 18, 2024
1 parent 4a40ac7 commit 56a09eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sv-pipeline/scripts/preprocess_bed_for_vapor.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ def reformat(bed_in, bed_out, contig, sample_to_extract):
fields[columns["name"]], svtype_write]) + "\n")

if not found_contig:
raise ValueError(f"Could not find any records for contig {contig} in the provided BED file")
logging.warning(f"Could not find any records for contig {contig} in the provided BED file")
if sample_to_extract is not None and "samples" in columns and not found_sample:
raise ValueError(f"Could not find any records for sample {sample_to_extract} in the provided BED file")
logging.warning(f"Could not find any records for sample {sample_to_extract} in the provided BED file")


def main():
Expand Down

0 comments on commit 56a09eb

Please sign in to comment.