Skip to content

Commit

Permalink
Merge pull request #7 from a-slide/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
a-slide authored May 5, 2020
2 parents c5d44ee + cbe354d commit d046548
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions NanoCount/NanoCount.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,12 @@ def _parse_bam (self):

# In case the primary hit was removed by filters
if best_hit:
if best_hit.align_len == 0:
c["Read with zero score"] +=1
if best_hit.align_score == 0:
c["Reads with zero score"] +=1
elif best_hit.align_len == 0:
c["Reads with zero len"] +=1
elif best_hit.qlen < self.min_read_length:
c["Read too short"] +=1
c["Reads too short"] +=1
elif best_hit.query_fraction_aligned < self.min_query_fraction_aligned:
c["Best hit with low query fraction aligned"] +=1
else:
Expand Down
2 changes: 1 addition & 1 deletion NanoCount/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

# Define self package variable
__version__ = "0.2.0"
__version__ = "0.2.1"
__all__ = ["NanoCount", "Read"]
__description__ = "EM based transcripts abundance estimation from nanopore reads mapped to a transcriptome with minimap2"
2 changes: 1 addition & 1 deletion meta.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% set version = "0.2.0" %}
{% set version = "0.2.1" %}
{% set name = "NanoCount" %}

package:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Define package info
name = "NanoCount"
version = "0.2.0"
version = "0.2.1"
description = "EM based transcripts abundance estimation from nanopore reads mapped to a transcriptome with minimap2"
with open("README.md", "r") as fh:
long_description = fh.read()
Expand Down

0 comments on commit d046548

Please sign in to comment.