Skip to content

Commit

Permalink
Merge branch 'dysgu_dev' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
kcleal authored Sep 12, 2024
2 parents 4fe97e2 + 63b561b commit 8960100
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions dysgu/cluster.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,10 @@ def pipe1(args, infile, kind, regions, ibam, ref_genome, sample_name, bam_iter=N
cdef EventResult_t d
for d in merged:
d.type = args["pl"]
if d.posA > d.posB and d.chrA == d.chrB:
t = d.posA
d.posA = d.posB
d.posB = t

coverage_analyser = post_call.CoverageAnalyser(tdir)
preliminaries = coverage_analyser.process_events(merged)
Expand Down
4 changes: 3 additions & 1 deletion dysgu/post_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ def ref_repetitiveness(events, ref_genome):
e.ref_rep = compute_rep(ref_seq)
except (ValueError, KeyError, IndexError) as errors:
# Might be different reference genome version, compared to bam genome
logging.warning("Error fetching reference chromosome: {}".format(e.chrA), errors)
logging.warning(
f"Error fetching reference chromosome: chrA={e.chrA}, posA={e.posA}, chrB={e.chrB}, posB={e.posB}. Error: {str(errors)}"
)
e.ref_seq = 0
return events

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "dysgu"
version = "1.6.6"
version = "1.6.7"
description = "Structural variant calling"
authors = [
{ name = "Kez Cleal", email = "clealk@cardiff.ac.uk" }
Expand Down

0 comments on commit 8960100

Please sign in to comment.