19 lines
382 B
TeX
19 lines
382 B
TeX
\documentclass[tikz]{standalone}
|
|
|
|
\usepackage{tikz}
|
|
\usepackage{luatextra}
|
|
\begin{document}
|
|
|
|
\begin{tikzpicture}
|
|
\begin{luacode}
|
|
lcsq = require('lcsq')
|
|
seq2 = "ATCTGAT"
|
|
seq1 = "TGCATA"
|
|
matrix = lcsq.lcsq_matrix(seq1, seq2)
|
|
tikz_code = lcsq.draw_lcsq_matrix_graph(seq1, seq2, matrix)
|
|
tex.print(tikz_code)
|
|
\end{luacode}
|
|
\end{tikzpicture}
|
|
|
|
\end{document}
|