[med-svn] [Git][med-team/python-pyfaidx][master] 4 commits: Fix watch URL
Nilesh Patra
gitlab at salsa.debian.org
Wed Apr 21 09:45:13 BST 2021
Nilesh Patra pushed to branch master at Debian Med / python-pyfaidx
Commits:
119d6fe5 by Nilesh Patra at 2021-04-21T14:11:10+05:30
Fix watch URL
- - - - -
96d9c2ab by Nilesh Patra at 2021-04-21T14:11:28+05:30
New upstream version 0.5.9.5
- - - - -
03d383e3 by Nilesh Patra at 2021-04-21T14:11:30+05:30
Update upstream source from tag 'upstream/0.5.9.5'
Update to upstream version '0.5.9.5'
with Debian dir b1f854f76a50e11cb48793475d5e7b352169d07e
- - - - -
d83d0a7e by Nilesh Patra at 2021-04-21T14:14:25+05:30
Interim changelog entry
- - - - -
4 changed files:
- debian/changelog
- debian/watch
- pyfaidx/__init__.py
- pyfaidx/cli.py
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+python-pyfaidx (0.5.9.5-1) UNRELEASED; urgency=medium
+
+ * Team Upload.
+ * Fix watch URL
+ * New upstream version 0.5.9.5
+
+ -- Nilesh Patra <nilesh at debian.org> Wed, 21 Apr 2021 14:12:19 +0530
+
python-pyfaidx (0.5.9.2-1) unstable; urgency=medium
* Team upload.
=====================================
debian/watch
=====================================
@@ -1,2 +1,2 @@
version=4
-https://github.com/mdshw5/pyfaidx/releases .*/archive/v(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)
\ No newline at end of file
+https://github.com/mdshw5/pyfaidx/releases .*/archive/.*/v(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)
=====================================
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/-/compare/d7dc7eaf8b11cef65628aed56ac5659d290a7c6c...d83d0a7e6379874f669e4b6f7d9f617b8fc4fe76
--
View it on GitLab: https://salsa.debian.org/med-team/python-pyfaidx/-/compare/d7dc7eaf8b11cef65628aed56ac5659d290a7c6c...d83d0a7e6379874f669e4b6f7d9f617b8fc4fe76
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/88a339f5/attachment-0001.htm>
More information about the debian-med-commit
mailing list