Pysam

Latest version: v0.22.1

Safety actively analyzes 685838 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 8

0.15.1

==============

Bugfix release.

* [716] raise ValueError if tid is out of range when writing
* [697] release version using cython 0.28.5 for python 3.7
compatibility

0.15.0

==============

This release wraps htslib/samtools/bcftools version 1.9.

* [673] permit dash in chromosome name of region string
* [656] Support `text` when opening a SAM file for writing
* [658] return None in get_forward_sequence if sequence not in record
* [683] allow lower case bases in MD tags
* Ensure that = and X CIGAR ops are treated the same as M

0.14.1

==============

This is mostly a bugfix release, though bcftools has now also been
upgraded to 1.7.0.

* [621] Add a warning to count_coverage when an alignment has an
empty QUAL field
* [635] Speed-up of AlignedSegment.find_intro()
* treat border case of all bases in pileup column below quality score
* [634] Fix access to pileup reference_sequence

0.14.0

==============

This release wraps htslib/samtools versions 1.7.0.

* SAM/BAM/CRAM headers are now managed by a separate AlignmentHeader
class.
* AlignmentFile.header.as_dict() returns an ordered dictionary.
* Use "stop" instead of "end" to ensure consistency to
VariantFile. The end designations have been kept for backwards
compatibility.

* [611] and [293] CRAM repeated fetch now works, each iterator
reloads index if multiple_iterators=True
* [608] pysam now wraps htslib 1.7 and samtools 1.7.
* [580] reference_name and next_reference_name can now be set to "*"
(will be converted to None to indicate an unmapped location)
* [302] providing no coordinate to count_coverage will not count from
start/end of contig.
* [325] SQ records will be automatically added to header if they are
absent from text section of header.
* [529] add get_forward_sequence() and get_forward_qualities()
methods
* [577] add from_string() and to_dict()/from_dict() methods to
AlignedSegment. Rename tostring() to to_string() throughout for
consistency
* [589] return None from build_alignment_sequence if no MD tag is set
* [528] add PileupColumn.__len__ method

Backwards incompatible changes:

* AlignmentFile.header now returns an AlignmentHeader object. Use
AlignmentFile.header.to_dict() to get the dictionary as
previously. Most dictionary accessor methods (keys(), values(),
__getitem__, ...) have been implemented to ensure some level of
backwards compatibility when only reading.

The rationale for this change is to have consistency between
AlignmentFile and VariantFile.

* AlignmentFile and FastaFile now raise IOError instead of OSError

Medium term we plan to have a 1.0 release. The pysam
interface has grown over the years and the API is cluttered with
deprecated names (Samfile, getrname(), gettid(), ...). To work towards
this, the next release (0.15.0) will yield DeprecationWarnings
for any parts of the API that are considered obsolete and will not be
in 1.0. Once 1.0 has been reached, we will use semantic versioning.

0.13.0

===============

This release wraps htslib/samtools/bcftools versions 1.6.0 and
contains a series of bugfixes.

* [544] reading header from remote TabixFiles now works.
* [531] add missing tag types H and A. A python float will now be
added as 'f' type instead of 'd' type.
* [543] use FastaFile instead of Fastafile in pileup.
* [546] set is_modified flag in setAttribute so updated attributes
are output.
* [537] allow tabix index files to be created in a custom location.
* [530] add get_index_statistics() method

0.12.0.1

================

Bugfix release to solve compilation issue due to missinge
bcftools/config.h file.

Page 3 of 8

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.