Skip to content

Commit

Permalink
Merge branch 'hotfix/0.7.50'
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonsydes committed Dec 12, 2018
2 parents d4ddeec + 4d546c0 commit 9dc4770
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.7.49
0.7.50
2 changes: 1 addition & 1 deletion prost/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Autogenerated via git flow.
__version__ = '0.7.49'
__version__ = '0.7.50'
18 changes: 12 additions & 6 deletions prost/prost.py
Original file line number Diff line number Diff line change
Expand Up @@ -2268,7 +2268,7 @@ def _perform_reverse_annotation(self, annotation_alignment, species):
# give it a reverse annotation.
# Preventing rev_annos when fwd_annos exist in gen_loc_bins
# is implemented elsewhere, in mirbase_mir_reverse_annotations().

continue

annotation = annotation_cls(hit, species)
Expand Down Expand Up @@ -3697,7 +3697,9 @@ def manipulate_per_sample_counts(self, short_seqs):
else:
short_seq.iso_snp_central = False

## 3p Supplementary Edited? / iso_central_supp?
## 3p Supplementary Edited? / iso_snp_supp?

# Note - may wish to redefine this later for the 16=1X case.

if 'is_3p_supplementary_edited' in disagreements:
mod = 'is_3p_supplementary_edited'
Expand All @@ -3706,9 +3708,9 @@ def manipulate_per_sample_counts(self, short_seqs):
short_seq.genomic_locations))
elif mod_thing.is_3p_supplementary_edited:
self.per_sample_3p_supplementary_edited_totals += short_seq.samples_counts
short_seq.iso_central_supp = True
short_seq.iso_snp_supp = True
else:
short_seq.iso_central_supp = False
short_seq.iso_snp_supp = False

## Other Edited? / iso_snp?

Expand Down Expand Up @@ -3939,7 +3941,7 @@ def _set_properties(self, mm_coords, main_hit, member_hit, main_seq, member_seq)
* is_central_edited - If there a missatch in the central region
(NTs 9-12) it is central edited.
* is_3p_supplementary_edited - If there a missatch in the 3 prime
supplementary region (NTs 9-12) it is supplementary edited.
supplementary region (NTs 13-17) it is supplementary edited.
* is_other_edited_5p - If there a missatch at NT 1, then it
is other_edited_5p.
* is_other_edited_3p - If there a missatch at NT 18 until the last
Expand Down Expand Up @@ -4075,7 +4077,11 @@ def _set_properties(self, mm_coords, main_hit, member_hit, main_seq, member_seq)
if (mm >= 9 and mm <= 12):
self.is_central_edited = True
self.iso_snp_central = True
if (mm >= 13 and mm <= 17):
# To distinguish is_supplementary_edited from is_3p_mismatch, we require
# there to be at least one matching nucleotide between this mismatched NT
# and the 3-prime end of the miRNA. For example, 16=3X would *not* be
# considered is_supplementary_edited even though NT 17 is mismatched.
if (mm >= 13 and mm <= 17 and mm < member_last_matching_nt_3p_end):
self.is_3p_supplementary_edited = True
self.iso_snp_supp = True
if (mm == 1):
Expand Down

0 comments on commit 9dc4770

Please sign in to comment.