[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix deepconsensus filter_reads cli.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 513036217
  • Loading branch information
anastasiyabl authored and Copybara-Service committed Feb 28, 2023
1 parent 7dd3bb0 commit 82df652
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion deepconsensus/quality_calibration/filter_reads.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""Filter reads based on the base qualities."""

from collections.abc import Sequence
import math
from absl import app
from absl import flags
Expand Down Expand Up @@ -64,7 +65,7 @@ def register_required_flags():
'quality_threshold'])


def avg_phred(base_qualities: list[float]) -> float:
def avg_phred(base_qualities: Sequence[float]) -> float:
"""Get the average phred quality given base qualities of a read.
Args:
Expand Down
4 changes: 2 additions & 2 deletions docs/quick_start.md
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,8 @@ deepconsensus run \
At the end of your run, you should see:

```
Processed 178 ZMWs in 230.602 seconds
Outcome counts: OutcomeCounter(empty_sequence=0, only_gaps=0, failed_quality_filter=1, failed_length_filter=0, success=177)
Processed 178 ZMWs in 234.950 seconds
Outcome counts: OutcomeCounter(empty_sequence=0, only_gaps=0, failed_quality_filter=2, failed_length_filter=0, success=176)
```

## Optimizing Runtime
Expand Down

0 comments on commit 82df652

Please sign in to comment.