TeXshade package - ruler missing position when “-” in consensus











up vote
2
down vote

favorite
1












I am using the texshade package, and have run into a problem I was hoping someone may be able to help with.



I am using the diverse shading mode to compare mutated antibody sequences to their unmutated germline precursor. There is an insertion in the antibody sequences relative to germline. If I represent the insertion as "-", it causes the ruler to miss a numbering position at that point. Does anyone know of a way this can be corrected?



Thanks in advance for your help.



Tex code:



documentclass[10pt]{article}
usepackage{texshade}
headheight=0pt
headsep=0pt
hoffset=0pt
voffset=0pt
paperwidth=8.27in
paperheight=11.69in
ifxpdfoutputundefined
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}


And the aligned.heavy.fasta file:



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









share|improve this question














bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1




    This seems to be a feature, the germline line is the reference sequence, and the numbering follows the reference, which seems to be a valid consideration. I don't think texshade provides an option to change this. It could be done by changing the package source, but that is a rather difficult task.
    – Marijn
    Jan 20 '17 at 20:56






  • 1




    What is it that you want to do? The numbering is by default relative to the first sequence, and "-" is a gap, so not counted. If you want your numbering to include this gap as a position, then you should take the sequence that has no gaps for the numbering reference. From the texshade manual (page 58): showruler[〈color〉]{〈position〉}{〈seqref〉}
    – Joe H.
    Sep 6 '17 at 7:58

















up vote
2
down vote

favorite
1












I am using the texshade package, and have run into a problem I was hoping someone may be able to help with.



I am using the diverse shading mode to compare mutated antibody sequences to their unmutated germline precursor. There is an insertion in the antibody sequences relative to germline. If I represent the insertion as "-", it causes the ruler to miss a numbering position at that point. Does anyone know of a way this can be corrected?



Thanks in advance for your help.



Tex code:



documentclass[10pt]{article}
usepackage{texshade}
headheight=0pt
headsep=0pt
hoffset=0pt
voffset=0pt
paperwidth=8.27in
paperheight=11.69in
ifxpdfoutputundefined
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}


And the aligned.heavy.fasta file:



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









share|improve this question














bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1




    This seems to be a feature, the germline line is the reference sequence, and the numbering follows the reference, which seems to be a valid consideration. I don't think texshade provides an option to change this. It could be done by changing the package source, but that is a rather difficult task.
    – Marijn
    Jan 20 '17 at 20:56






  • 1




    What is it that you want to do? The numbering is by default relative to the first sequence, and "-" is a gap, so not counted. If you want your numbering to include this gap as a position, then you should take the sequence that has no gaps for the numbering reference. From the texshade manual (page 58): showruler[〈color〉]{〈position〉}{〈seqref〉}
    – Joe H.
    Sep 6 '17 at 7:58















up vote
2
down vote

favorite
1









up vote
2
down vote

favorite
1






1





I am using the texshade package, and have run into a problem I was hoping someone may be able to help with.



I am using the diverse shading mode to compare mutated antibody sequences to their unmutated germline precursor. There is an insertion in the antibody sequences relative to germline. If I represent the insertion as "-", it causes the ruler to miss a numbering position at that point. Does anyone know of a way this can be corrected?



Thanks in advance for your help.



Tex code:



documentclass[10pt]{article}
usepackage{texshade}
headheight=0pt
headsep=0pt
hoffset=0pt
voffset=0pt
paperwidth=8.27in
paperheight=11.69in
ifxpdfoutputundefined
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}


And the aligned.heavy.fasta file:



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









share|improve this question













I am using the texshade package, and have run into a problem I was hoping someone may be able to help with.



I am using the diverse shading mode to compare mutated antibody sequences to their unmutated germline precursor. There is an insertion in the antibody sequences relative to germline. If I represent the insertion as "-", it causes the ruler to miss a numbering position at that point. Does anyone know of a way this can be corrected?



Thanks in advance for your help.



Tex code:



documentclass[10pt]{article}
usepackage{texshade}
headheight=0pt
headsep=0pt
hoffset=0pt
voffset=0pt
paperwidth=8.27in
paperheight=11.69in
ifxpdfoutputundefined
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}


And the aligned.heavy.fasta file:



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






packages align environments






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jan 20 '17 at 10:58









shakey

111




111





bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 14 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1




    This seems to be a feature, the germline line is the reference sequence, and the numbering follows the reference, which seems to be a valid consideration. I don't think texshade provides an option to change this. It could be done by changing the package source, but that is a rather difficult task.
    – Marijn
    Jan 20 '17 at 20:56






  • 1




    What is it that you want to do? The numbering is by default relative to the first sequence, and "-" is a gap, so not counted. If you want your numbering to include this gap as a position, then you should take the sequence that has no gaps for the numbering reference. From the texshade manual (page 58): showruler[〈color〉]{〈position〉}{〈seqref〉}
    – Joe H.
    Sep 6 '17 at 7:58
















  • 1




    This seems to be a feature, the germline line is the reference sequence, and the numbering follows the reference, which seems to be a valid consideration. I don't think texshade provides an option to change this. It could be done by changing the package source, but that is a rather difficult task.
    – Marijn
    Jan 20 '17 at 20:56






  • 1




    What is it that you want to do? The numbering is by default relative to the first sequence, and "-" is a gap, so not counted. If you want your numbering to include this gap as a position, then you should take the sequence that has no gaps for the numbering reference. From the texshade manual (page 58): showruler[〈color〉]{〈position〉}{〈seqref〉}
    – Joe H.
    Sep 6 '17 at 7:58










1




1




This seems to be a feature, the germline line is the reference sequence, and the numbering follows the reference, which seems to be a valid consideration. I don't think texshade provides an option to change this. It could be done by changing the package source, but that is a rather difficult task.
– Marijn
Jan 20 '17 at 20:56




This seems to be a feature, the germline line is the reference sequence, and the numbering follows the reference, which seems to be a valid consideration. I don't think texshade provides an option to change this. It could be done by changing the package source, but that is a rather difficult task.
– Marijn
Jan 20 '17 at 20:56




1




1




What is it that you want to do? The numbering is by default relative to the first sequence, and "-" is a gap, so not counted. If you want your numbering to include this gap as a position, then you should take the sequence that has no gaps for the numbering reference. From the texshade manual (page 58): showruler[〈color〉]{〈position〉}{〈seqref〉}
– Joe H.
Sep 6 '17 at 7:58






What is it that you want to do? The numbering is by default relative to the first sequence, and "-" is a gap, so not counted. If you want your numbering to include this gap as a position, then you should take the sequence that has no gaps for the numbering reference. From the texshade manual (page 58): showruler[〈color〉]{〈position〉}{〈seqref〉}
– Joe H.
Sep 6 '17 at 7:58












1 Answer
1






active

oldest

votes

















up vote
0
down vote













You can add in a Dummy sequence on the second line with no gaps:



>Dummy
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


And then use the commands:



showruler{2}{top}
hideseq{2}


to use it for numbering and prevent it from being displayed. This will fix the numbering.






share|improve this answer





















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "85"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f349618%2ftexshade-package-ruler-missing-position-when-in-consensus%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    0
    down vote













    You can add in a Dummy sequence on the second line with no gaps:



    >Dummy
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


    And then use the commands:



    showruler{2}{top}
    hideseq{2}


    to use it for numbering and prevent it from being displayed. This will fix the numbering.






    share|improve this answer

























      up vote
      0
      down vote













      You can add in a Dummy sequence on the second line with no gaps:



      >Dummy
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


      And then use the commands:



      showruler{2}{top}
      hideseq{2}


      to use it for numbering and prevent it from being displayed. This will fix the numbering.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        You can add in a Dummy sequence on the second line with no gaps:



        >Dummy
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


        And then use the commands:



        showruler{2}{top}
        hideseq{2}


        to use it for numbering and prevent it from being displayed. This will fix the numbering.






        share|improve this answer












        You can add in a Dummy sequence on the second line with no gaps:



        >Dummy
        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


        And then use the commands:



        showruler{2}{top}
        hideseq{2}


        to use it for numbering and prevent it from being displayed. This will fix the numbering.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 13 '17 at 17:22









        Nick

        1011




        1011






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f349618%2ftexshade-package-ruler-missing-position-when-in-consensus%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt