1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
|
From: Alexandre Detiste <tchet@debian.org>
Subject: remove trivial usage of python3-six
Forwarding is not possible because the project is archived.
Forwarded: not-needed
--- a/qcat/cli.py
+++ b/qcat/cli.py
@@ -4,7 +4,6 @@
import time
import sys
import os
-import six
from Bio.SeqIO.FastaIO import SimpleFastaParser
from Bio.SeqIO.QualityIO import FastqGeneralIterator
@@ -385,7 +384,7 @@
def print_barcode_hist(barcode_dist, adapter_dist, total_reads):
adapters_detected = 0
- for key, value in six.iteritems(adapter_dist):
+ for key, value in adapter_dist.items():
if key != "none":
adapters_detected += value
logging.info("Adapters detected in %d of %d reads" % (adapters_detected, total_reads))
@@ -395,7 +394,7 @@
int(perc / 5) * "#", "{:.2f}".format(perc)))
barcodes_detected = 0
- for key, value in six.iteritems(barcode_dist):
+ for key, value in barcode_dist.items():
if key != "none":
barcodes_detected += value
logging.info("Barcodes detected in %d of %d adapters" % (barcodes_detected, total_reads))
--- a/qcat/eval.py
+++ b/qcat/eval.py
@@ -5,7 +5,6 @@
import sys
import os
-from six.moves import zip
from argparse import ArgumentParser, RawDescriptionHelpFormatter
from qcat import cli
--- a/setup.py
+++ b/setup.py
@@ -18,7 +18,6 @@
install_requires=[
'biopython',
'parasail',
- 'six',
'pyyaml'
],
extras_require={
@@ -42,4 +41,4 @@
'qcat-eval = qcat.eval:main',
'qcat-roc = qcat.eval_roc:main',
'qcat-eval-truth = qcat.eval_full:main']}
-)
\ No newline at end of file
+)
|