Unconfigured Ad

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

    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
              Proteomic Platforms: How to Choose the Right Analytical Strategy to Improve Detection and Clinical Applications
              by SEQadmin2


              Proteomics platforms are evolving rapidly, with advances in mass spectrometry and affinity-based approaches expanding what researchers can detect and at what scale. As the field moves toward deeper proteome coverage and clinical applications, scientists face an increasingly complex landscape of tools. This article will explore how researchers are navigating these choices to find the right platform for their work.

              The systematic characterization of the human proteome has
              ...
              07-20-2026, 11:48 AM
            • SEQadmin2
              Advanced Sequencing Platforms Tackle Neuroscience’s Toughest Genomics Problems
              by SEQadmin2



              Genomics studies in neuroscience face a special challenge due to the brain’s complexity and scarcity of samples. Mapping changes in cell type and state using conventional next-generation sequencing methods remains challenging. Advances in technologies like single-cell sequencing, spatial transcriptomics, and long-read sequencing have opened the door to deeper studies of the brain and diseases like Alzheimer’s, amyotrophic lateral sclerosis (ALS), and schizophrenia.
              ...
              07-09-2026, 11:10 AM
            • SEQadmin2
              Cancer Drug Resistance: The Lingering Barrier to Rising Survival
              by SEQadmin2



              Cancer survival rates have significantly increased in the last few decades in the United States, reaching a combined 70% 5-year survival rate by 2021. Behind this number, there are years of research to find new therapies, drug targets, and early detection methods. But there is one core challenge that keeps slowing down these advances, and it’s about drug resistance.

              There is no single reason why many patients don’t respond to treatment as expected. Cancer is...
              07-08-2026, 05:17 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 07-24-2026, 12:17 PM
            0 responses
            18 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-23-2026, 11:41 AM
            0 responses
            18 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-20-2026, 11:10 AM
            0 responses
            25 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 07-13-2026, 10:26 AM
            0 responses
            38 views
            0 reactions
            Last Post SEQadmin2  
            Working...