forked from cogent3/cogent3
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request cogent3#1827 from cogent3/refactor-of-map
API: refactor of map into IndelMap and FeatureMap, fixes cogent3#1726
- Loading branch information
Showing
22 changed files
with
2,827 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!-- | ||
A new scriv changelog fragment. | ||
Uncomment the section that is right (remove the HTML comment wrapper). | ||
--> | ||
|
||
<!-- | ||
### Contributors | ||
- A bullet item for the Contributors category. | ||
--> | ||
|
||
### ENH | ||
|
||
- The new IndelMap class uses numpy arrays to store information about gap | ||
locations for aligned sequences. This will greatly reduce the memory | ||
overhead for aligned sequences. The class also provides explicit methods | ||
for inter-converting between sequence and alignment coordinates. An important | ||
difference to the original Map implementation is that IndelMap is memoryless, | ||
meaning the history of slice operations is now fully delegated to the SeqView | ||
class. | ||
- The new FeatureMap class is a slightly modified version of the original Map | ||
class. It is used solely for handling sequence feature mappings to sequences | ||
and alignments. Like IndelMap, it is memoryless but it does record its | ||
orientation with respect to the parent sequence. | ||
- Note that both IndelMap and FeatureMap replace the spans attribute with a | ||
generator. | ||
|
||
<!-- | ||
### BUG | ||
- A bullet item for the BUG category. | ||
--> | ||
<!-- | ||
### DOC | ||
- A bullet item for the DOC category. | ||
--> | ||
<!-- | ||
### Deprecations | ||
- A bullet item for the Deprecations category. | ||
--> | ||
|
||
### Discontinued | ||
|
||
- The cogent3.core.location.Map class is now marked for deprecation. It is | ||
being replaced by two classes, IndelMap and FeatureMap. The latter has | ||
largely the same functionality of Map. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.