[med-svn] [Git][med-team/python-pyfaidx][upstream] New upstream version 0.5.9.5

Nilesh Patra gitlab at salsa.debian.org
Wed Apr 21 09:45:16 BST 2021



Nilesh Patra pushed to branch upstream at Debian Med / python-pyfaidx


Commits:
96d9c2ab by Nilesh Patra at 2021-04-21T14:11:28+05:30
New upstream version 0.5.9.5
- - - - -


2 changed files:

- pyfaidx/__init__.py
- pyfaidx/cli.py


Changes:

=====================================
pyfaidx/__init__.py
=====================================
@@ -29,7 +29,7 @@ if sys.version_info > (3, ):
 
 dna_bases = re.compile(r'([ACTGNactgnYRWSKMDVHBXyrwskmdvhbx]+)')
 
-__version__ = '0.5.9.2'
+__version__ = '0.5.9.5'
 
 
 class KeyFunctionError(ValueError):


=====================================
pyfaidx/cli.py
=====================================
@@ -126,13 +126,13 @@ def transform_sequence(args, fasta, name, start=None, end=None):
     elif args.transform == 'nucleotide':
         ss = str(s).upper()
         nucs = defaultdict(int)
-        nucs.update([(c, str(ss).count(c)) for c in set(str(ss))])
+        nucs.update([(c, ss.count(c)) for c in set(ss)])
         A = nucs.pop('A', 0)
         T = nucs.pop('T', 0)
         C = nucs.pop('C', 0)
         G = nucs.pop('G', 0)
         N = nucs.pop('N', 0)
-        others = '|'.join([':'.join((k, v)) for k, v in nucs.items()])
+        others = '|'.join([':'.join((k, str(v))) for k, v in nucs.items()])
         return '{sname}\t{sstart}\t{send}\t{A}\t{T}\t{C}\t{G}\t{N}\t{others}\n'.format(sname=s.name, sstart=s.start, send=s.end, **locals())
     elif args.transform == 'transposed':
         return '{name}\t{start}\t{end}\t{seq}\n'.format(name=s.name, start=s.start, end=s.end, seq=str(s))



View it on GitLab: https://salsa.debian.org/med-team/python-pyfaidx/-/commit/96d9c2abe6188a06882a6a1552f9a52b41cc2529

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-pyfaidx/-/commit/96d9c2abe6188a06882a6a1552f9a52b41cc2529
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210421/e7ff5322/attachment-0001.htm>


More information about the debian-med-commit mailing list