Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nielsl
    Junior Member
    • Apr 2010
    • 4

    #1

    samtools tview -d T problem

    Samtools gurus,

    I would like to generate multiple text files with alignment regions
    like that shown in the attached tview.png, which is a screenshot
    from the interactive tview. When tview is given the -d T option,
    the region is truncated (see tview-d.png) and I do not see a mpileup
    option for it. It would be good if -p seq:from-to was possible with
    tview, but its not. How is this done?

    Niels L
    Attached Files
    Niels Larsen, http://genomics.dk
  • lindenb
    Senior Member
    • Apr 2010
    • 143

    #2
    as far as I remember, tview use the env variable ${COLUMNS} . If this variable is not set, 80 is used by default. http://pubs.opengroup.org/onlinepubs...bd/envvar.html

    if COLUMNS is not set, try:

    Code:
    export COLUMNS=200

    Comment

    • nielsl
      Junior Member
      • Apr 2010
      • 4

      #3
      That worked - merci, bravo. I can now let the script set that variable for each desired region. I will suggest they extend the -p option to accept from:to instead of just from, though.
      Niels Larsen, http://genomics.dk

      Comment

      • nielsl
        Junior Member
        • Apr 2010
        • 4

        #4
        ps - well, the number of columns needed to accomodate all sequences so they line up is not known before the tview routine is finished. So really, setting COLUMNS to a fixed value is only half a solution and a tview option is needed. Either that, or an option for mpileup that shows the alignment the same way as tview, instead of rotating it 90 degrees. I will ask them, but the samtools mailing list has not responded to new subscription requests for a few days.
        Niels Larsen, http://genomics.dk

        Comment

        • lindenb
          Senior Member
          • Apr 2010
          • 143

          #5
          Originally posted by nielsl View Post
          That worked - merci, bravo. I can now let the script set that variable for each desired region. I will suggest they extend the -p option to accept from:to instead of just from, though.
          not so easy as tview displays the insertions in the reads. So if you have a very large insertion the screen matrix could be very large. That is why tview only use a starting position.

          FYI , I wrote a small tool displaying the BAM as a SVG file: https://github.com/lindenb/jvarkit/wiki/Bam2SVG

          Comment

          • nielsl
            Junior Member
            • Apr 2010
            • 4

            #6
            Ah thanks. Well I resorted to extending the columns, check ends, trim and show. I am using it for a quick one-off thing, but thank you for the link, its useful. I got some old alignment viewer archaeology from 2005 that used Perl PDL, there is still a copy alive here, on a tiny and slow VM: http://rnp.uthscsa.edu:8001/UTHSCSA/...i?menu_1=tmrnp .. it removes gap-only columns at display time, which samtools cannot ( true?). There is also a html tree browser (click Organisms).
            Niels Larsen, http://genomics.dk

            Comment

            Latest Articles

            Collapse

            • SEQadmin2
              Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
              by SEQadmin2



              Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

              Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
              ...
              Yesterday, 09:55 AM
            • SEQadmin2
              New Genomics Technologies Take Aim at Long-Standing Limits
              by SEQadmin2


              Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

              We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
              ...
              09-28-2026, 10:25 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, Yesterday, 05:39 AM
            0 responses
            13 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-13-2026, 09:56 AM
            0 responses
            15 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 10-09-2026, 11:14 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 09-29-2026, 09:51 AM
            0 responses
            78 views
            0 reactions
            Last Post SEQadmin2  
            Working...