1. pchines
  2. bx-python-nhgri

Commits

James Taylor  committed 527fe00

Documentation comment for chop

  • Participants
  • Parent commits 06f86fb
  • Branches default

Comments (0)

Files changed (1)

File lib/bx/align/tools/chop.py

View file
+"""
+Support for chopping a list of alignment blocks to only the portion that
+intersects a particular interval.
+"""
+
 def chop_list( blocks, src, start, end ):
+    """
+    For each alignment block in the sequence `blocks`, chop out the portion
+    of the block that overlaps the interval [`start`,`end`) in the
+    component/species named `src`.
+    """
     new_blocks = []
     for block in blocks: 
         ref = block.get_component_by_src( src )