mirror of
https://github.com/lh3/minimap2.git
synced 2026-10-07 21:48:12 +08:00
minor
This commit is contained in:
+3
-3
@@ -26,9 +26,9 @@ a = mm.Aligner("test/MT-human.fa")
|
|||||||
for hit in a.map("GGTTAAATACAGACCAAGAGCCTTCAAAGCCCTCAGTAAGTTGCAATACTTAATTTCTGT"):
|
for hit in a.map("GGTTAAATACAGACCAAGAGCCTTCAAAGCCCTCAGTAAGTTGCAATACTTAATTTCTGT"):
|
||||||
print("{}\t{}\t{}\t{}".format(hit.ctg, hit.r_st, hit.r_en, hit.cigar_str))
|
print("{}\t{}\t{}\t{}".format(hit.ctg, hit.r_st, hit.r_en, hit.cigar_str))
|
||||||
```
|
```
|
||||||
It builds an index from `myref.fa` (or loads an index if a pre-built index is
|
It builds an index from the specified sequence file (or loads an index if a
|
||||||
supplied), aligns a sequence against it, traverses each hit and prints them
|
pre-built index is supplied), aligns a sequence against it, traverses each hit
|
||||||
out.
|
and prints them out.
|
||||||
|
|
||||||
### APIs
|
### APIs
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -35,7 +35,7 @@ cdef class Alignment:
|
|||||||
def strand(self): return self.strand
|
def strand(self): return self.strand
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def trans_strand(self): return self.trans_strand
|
def trans_strand(self): return self._trans_strand
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def NM(self): return self._NM
|
def NM(self): return self._NM
|
||||||
|
|||||||
Reference in New Issue
Block a user