edinburgh-genome-foundry / sequenticon Goto Github PK
View Code? Open in Web Editor NEW:space_invader: Generate identicons for DNA sequences with Python
License: MIT License
:space_invader: Generate identicons for DNA sequences with Python
License: MIT License
This is what I did:
pip install sequenticon
into a fresh venv.from sequenticon import sequenticon
# Write a sequence to a PNG sequenticon file
sequenticon("ATGGTGCA", size=120, output_path="icon.png")
# Get a self-contained "<img/>" HTML string, to embed in a webpage
img_tag = sequenticon("ATGGTGCA", size=60, output_format="html_image")
Traceback (most recent call last):
File "/Users/Jonas/Documents/Programming/Temp_01/debug_it.py", line 1, in <module>
from sequenticon import sequenticon
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/sequenticon/__init__.py", line 5, in <module>
from .sequenticon import (sequenticon,
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/sequenticon/sequenticon.py", line 8, in <module>
from pdf_reports import pug_to_html, write_report
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/pdf_reports/__init__.py", line 1, in <module>
from .pdf_reports import pug_to_html, write_report, GLOBALS
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/pdf_reports/pdf_reports.py", line 2, in <module>
import weasyprint
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/weasyprint/__init__.py", line 375, in <module>
from .css import preprocess_stylesheet # noqa
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/weasyprint/css/__init__.py", line 29, in <module>
from . import computed_values
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/weasyprint/css/computed_values.py", line 16, in <module>
from .. import text
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/weasyprint/text.py", line 18, in <module>
import cairocffi as cairo
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/cairocffi/__init__.py", line 41, in <module>
cairo = dlopen(ffi, 'cairo', 'cairo-2')
File "/Users/Jonas/.virtualenvs/Temp_01/lib/python3.6/site-packages/cairocffi/__init__.py", line 38, in dlopen
raise OSError("dlopen() failed to load a library: %s" % ' / '.join(names))
OSError: dlopen() failed to load a library: cairo / cairo-2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.