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

            • kinpict.com
              Reply to 16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
              by kinpict.com
              The part about this topic feels surprisingly grounded, and the details on the page is the bit that made me slow down. I’d keep <a href="https://kinpict.com/">ai family photo generator</a> bookmarked for later.
              Today, 06:37 PM
            • SEQadmin2
              16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
              by SEQadmin2





              NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification,...
              10-30-2026, 06:46 AM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by SEQadmin2, 11-12-2026, 07:59 AM
            0 responses
            27 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 11-05-2026, 09:25 AM
            0 responses
            35 views
            0 reactions
            Last Post SEQadmin2  
            Started by SEQadmin2, 11-03-2026, 11:54 AM
            2 responses
            56 views
            0 reactions
            Last Post kinpict.com  
            Started by SEQadmin2, 10-28-2026, 09:57 AM
            0 responses
            175 views
            0 reactions
            Last Post SEQadmin2  
            Working...