Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • samtools tview

    I am having a problem with the tview option in samtools.

    I am using this command
    samtools tview 5673_5_t8.sortedbam.bam ./genomes/NC_013316.fna

    but keep getting this error -
    [bam_index_load] fail to load BAM index.

    I have previously used this exact command to view the file correctly, but now it wont work!!

    Is anyone else having similar problems? I have tried to index the sorted bam file, but this doesn't help either.

    Has anyone any suggestions?

    Cheers

    Emma

  • #2
    Maybe you should try re-index the bam file with the same ref? For example: samtools faidx ref.fasta, then use the .fai to get the sorted bam?
    I'm just a beginner,not sure about it~ Hope can help

    Comment


    • #3
      tview

      Hi,

      Thanks for your post. I tried indexing the BAM file and it didn't work.
      The problem seems to be temperamental, I just retyped my original command and tview worked, then I quit the programme retyped the exact same command and it did not work!

      very puzzling!

      Comment


      • #4
        samtools is complaining about not finding an index file in the same directory: 5673_5_t8.sortedbam.bam.bai. Is one there?

        If not, then you want to create one using:
        samtools index 5673_5_t8.sortedbam.bam

        I'm not sure why tview would succeed/fail on the same command, but hopefully the problem will be fixed if you create the index.

        Comment


        • #5
          tview

          Thanks for the replies.
          I started again from the original BAM files, sorted and indexed them.
          All seems to be fine now, so I think I must have been mistyping something!

          Oh to be a Unix newbie (NOT)!

          Cheer

          Emma

          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...
            04-22-2024, 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, Yesterday, 08:47 AM
          0 responses
          16 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-11-2024, 12:08 PM
          0 responses
          60 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 10:19 PM
          0 responses
          60 views
          0 likes
          Last Post seqadmin  
          Started by seqadmin, 04-10-2024, 09:21 AM
          0 responses
          54 views
          0 likes
          Last Post seqadmin  
          Working...
          X