for coordslice in msaslice.regions(): # most likely just one coord system...
Once you have that you can do something like
l = coordslice.edges()
coordmin, coordmax = min([t[0].start for t in l]), max([t[0].stop for t in l])
for coords, otherSeq, e in l:
orgName = seq2name[otherSeq].split('.')[0]
if orgName in allowedIndexes:
orgIndex = allowedIndexes[orgName]
alignmentStrs[orgIndex,coords.start - coordmin\
:coords.stop - coordmin] = list(str(otherSeq))
A couple notes on regions():
- regions() does not work over XMLRPC. You have to be accessing the NLMSA locally.
- as far as I know, not very many people have used this, so you may run into problems. If you do, we'll fix them.
Yours,
Chris
-- Chris
git clone git://github.com/cjlee112/pygr.git
Then to checkout my "regions" branch:
cd pygr
git checkout remotes/origin/regions
-- Chris