Dear Devs,
I recently found this library provides a very nice way to parse CIGAR, and wrote a snippet to implement a representation of a transcript. I am wondering whether any similar functionality exists? Or is GenomicInterval the most beloved class to use?
class GenomicIntervalDeque(collections.deque):
'''
An ordered iterable of HTSeq.GenomicInterval(), intended to represent a transcript.
property:
cigarstring: inherited from an alignment if applicable
iv: merge contained intervals to a big GenomicInterval()
method:
defaults inherited from collections.deque
fromCigar: init from parsing a cigar string
fromAlignment: init from parsing pysam.AlignedSegment().cigarstring
countMissWithModel: assuming self is a read, count mismatch against a model
countMissWithRead: assuming self is a model, ccount mismatch against a read
(deprecated) compatibleWithModel: assuming self is a read, check compatibility against a model
(deprecated) compatibleWithRead: assuming self is a model, check compatibility against a read
'''
I guess it's good to tie this to CigarOperation() class, but I can't seem to find good document on how to initialise it or manipulate it except this page. Is there anything more comprehensive? I found HTSeq.parse_cigar() quite helpful but again I found it poorly documented... And I did not see anything like HTSeq.write_cigar.
BTW, I am developing on Python2.
PS: None of the class seems to allow simple shifting of coordinate e.g. GenomicInterval(), GenomicArray() .
Dear Devs, I recently found this library provides a very nice way to parse CIGAR, and wrote a snippet to implement a representation of a transcript. I am wondering whether any similar functionality exists? Or is
GenomicInterval
the most beloved class to use?I guess it's good to tie this to
CigarOperation()
class, but I can't seem to find good document on how to initialise it or manipulate it except this page. Is there anything more comprehensive? I foundHTSeq.parse_cigar()
quite helpful but again I found it poorly documented... And I did not see anything likeHTSeq.write_cigar
.BTW, I am developing on Python2.
PS: None of the class seems to allow simple shifting of coordinate e.g.
GenomicInterval(), GenomicArray()
.Kind regards Feng