Seqanswers Leaderboard Ad

Collapse

Announcement

Collapse
No announcement yet.
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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


        • #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


          • #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

            • seqadmin
              Essential Discoveries and Tools in Epitranscriptomics
              by seqadmin


              The field of epigenetics has traditionally concentrated more on DNA and how changes like methylation and phosphorylation of histones impact gene expression and regulation. However, our increased understanding of RNA modifications and their importance in cellular processes has led to a rise in epitranscriptomics research. “Epitranscriptomics brings together the concepts of epigenetics and gene expression,” explained Adrien Leger, PhD, Principal Research Scientist on Modified Bases...
              Yesterday, 07:01 AM
            • seqadmin
              Current Approaches to Protein Sequencing
              by seqadmin


              Proteins are often described as the workhorses of the cell, and identifying their sequences is key to understanding their role in biological processes and disease. Currently, the most common technique used to determine protein sequences is mass spectrometry. While still a valuable tool, mass spectrometry faces several limitations and requires a highly experienced scientist familiar with the equipment to operate it. Additionally, other proteomic methods, like affinity assays, are constrained...
              04-04-2024, 04:25 PM

            ad_right_rmr

            Collapse

            News

            Collapse

            Topics Statistics Last Post
            Started by seqadmin, 04-11-2024, 12:08 PM
            0 responses
            39 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 10:19 PM
            0 responses
            41 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-10-2024, 09:21 AM
            0 responses
            35 views
            0 likes
            Last Post seqadmin  
            Started by seqadmin, 04-04-2024, 09:00 AM
            0 responses
            55 views
            0 likes
            Last Post seqadmin  
            Working...
            X