TeXshade 包 - 共识中出现“-”时标尺缺失位置

TeXshade 包 - 共识中出现“-”时标尺缺失位置

我正在使用 texshade 包,遇到了一个问题,希望有人能够帮助解决。

我正在使用多样化阴影模式将突变的抗体序列与其未突变的种系前体进行比较。抗体序列中有一个相对于种系的插入。如果我将插入表示为“-”,则会导致标尺在该点处错过编号位置。有人知道可以纠正此问题的方法吗?

在此先感谢您的帮助。

特克斯代码:

\documentclass[10pt]{article}
\usepackage{texshade}
\headheight=0pt
\headsep=0pt
\hoffset=0pt
\voffset=0pt
\paperwidth=8.27in
\paperheight=11.69in
\ifx\pdfoutput\undefined
\relax
\else
\pdfpagewidth=\paperwidth
\pdfpageheight=\paperheight
\fi
\oddsidemargin=-0.25in
\topmargin=0.3in
\textwidth=7in
\textheight=11.62in
\pagestyle{empty}
\begin{document}
\newline
\begin{texshade}{aligned.heavy.fasta}
\setsize{features}{footnotesize}
\shadingmode{diverse}
\hidenumbering
\showruler{1}{top}
\setsize{ruler}{scriptsize}
\rulersteps{1}
\shownames{left}
\end{texshade}
\end{document}

还有 aligned.heavy.fasta 文件:

>germline_comparator
EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE-EEEEEEEEEEEEEEE
>seq1
EEEEQEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEETEEEEEEEEEEEEEEE
>seq2
EEEEQEEEEEEEEEEEEEEEEEEEEAEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEETEEEEEEEEEEEEEEE
>seq3
EEEEQEEEEEEEEEEEEFEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEETEEEEEEEEEEEEEEE

答案1

您可以在第二行添加无间隙的虚拟序列:

>Dummy
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

然后使用以下命令:

\showruler{2}{top}
\hideseq{2}

使用它进行编号并防止其显示。这将修复编号问题。

相关内容