Skip to content

Commit

Permalink
write regions into fasta headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kriese committed Jun 3, 2022
1 parent db303d0 commit 322143d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/scripts/ref_cut.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def collect_liftover(args):

liftover_chain_files = {}
seq_coll = SequenceCollection()
seq_coll.references.append(NamedSequence(main_ref_name, main_ref_region.get_reference_seq(main_reference)))
seq_coll.references.append(NamedSequence(f"{main_ref_name} {main_ref_region}", main_ref_region.get_reference_seq(main_reference)))

# If we have no information about how to handle liftovers, we dont to them
if not Path(args.liftover_paths).exists():
Expand Down Expand Up @@ -77,7 +77,7 @@ def collect_liftover(args):
print("Alternative reference region is absurdely large. Liftover probably failed.")
else:
alt_ref_str = alt_ref_region.get_reference_seq(alt_ref)
seq_coll.references.append(NamedSequence(alt_ref_name, alt_ref_str))
seq_coll.references.append(NamedSequence(f"{alt_ref_name} {alt_ref_region}", alt_ref_str))
else:
print(f"Region not found in {alt_ref_names[ref_idx]} reference!")

Expand Down

0 comments on commit 322143d

Please sign in to comment.