Skip to content

hoagiang/align

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Align: polite, proper sequence alignment

Authors

Marcin Cieślik, Brent Pedersen (brentp)

Email

(marcin), bpederse@gmail.com

License

MIT

About

Various packages implement sequence alignment algorithms with various levels of success. This package is an attempt to handle the sequence alignment properly, including edge-cases.

Usage

usage will change. currently :

>>> from align.matrix import DNAFULL
>>> from align import aligner

>>> aligner('WW','WEW', method= 'global')
('W-W', 'WEW')

>>> aligner('WW','WEWWEW', method= 'glocal')
('WW', 'WW')


>>> aligner('TAATTC', 'TAAT', method='global', matrix=DNAFULL, gap_open=-10, gap_extend=-1)
('TAATTC', 'TAAT--')

>>> aligner('PYNCHAN', 'YNCH', method='local')
('YNCH', 'YNCH')

>>> a, b = aligner('AAAAAAAAAAAAACCTGCGCCCCAAAAAAAAAAAAAAAAAAAA', 'CCTGCGCACCCC', method='global_cfe')
>>> print "%s\n%s" % (a, b)
AAAAAAAAAAAAACCTGCGC-CCCAAAAAAAAAAAAAAAAAAAA
-------------CCTGCGCACCCC-------------------

About

sequence alignment. global, local, glocal.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%