Skip to content

ASLeonard/SLAM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

107 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Square Lattice tile Assembly Model (SLAM)

Note this module is dependent on

matplotlib

c++11 (and a suitably recent compiler)

Install

This should work

cd /path/to/download
tar xvzf SLAM-(VERSION)tar.gz (or otherwise extract it)
cd /SLAM-(VERSION)
python setup.py install --user 

ignore the compiler warnings

additionally this seems to work (and is more safe(?))

cd /path/to/download (containing only the compressed download)
pip install . --user

Usage

Should (in theory) be able to use like

TestScript.py

#!/usr/bin/env python
import polyominomodel
polyominomodel.GrowPoly([1,1,1,1,2,0,0,0])

Functions

GenerateGenotype
GenerateBDGenotype
GraphAssemblyOutcome
GrowPoly

Examples

Some other nice examples to try

  • SIFs
    • [0,0,1,0,2,0,0,3,0,4,0,5,7,6,0,0,0,0,8,0]
    • [1,1,1,1,2,0,3,0,4,9,5,9,6,7,7,7,8,0,9,0,10,0,0,0]
  • Loops
    • [1,2,3,3,4,0,0,0]
    • [1,5,3,0,2,4,0,0,6,0,0,0]
  • Nested Loops
    • [1,1,1,1,0,3,2,5,0,0,6,4]
    • [1,2,3,5,4,7,0,0,0,0,8,6]
  • Unbounds
    • [1,1,1,1,2,0,2,0]
    • [1,2,0,3,0,4,0,4]
  • Sterics
    • [0,5,2,0,1,3,0,0,1,0,0,4,0,0,0,6]
    • [1,3,0,0,4,5,2,0,0,0,0,6]

Advanced bits

More information can be found via source or using

help(NAME_OF_FUNCTION)

in an interactive setting


Misc

Homepage!

https://www.tcm.phy.cam.ac.uk/profiles/asl47/

About

Square Lattice Assembly Model

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published