Seqanswers Leaderboard Ad

Collapse

Announcement

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

  • purpose of faidx and bai

    Hello,
    What is the purpose of faidx and bai?

    Is it possible to view faidx and bai?

    Are they any examples how is it possible to use faidx and bai in a programming language?

    Thank you in advance.

  • #2
    As far as I know, the purpose of the index files are to allow fast and memory-efficient retrieval of alignments/subsequences in specific regions. They contain non-human readable binary content and are really only useful in combination with the BAM or FASTA file they were made for.

    Comment


    • #3
      Sounds good.

      Are there any examples how to use fast and memory-efficient retrieval of informations?

      Comment


      • #4
        I would look at the source code for various open source genome browsers, like Gambit which is from the Marth lab.

        Comment


        • #5
          Originally posted by bioxyz View Post
          Hello,
          What is the purpose of faidx and bai?

          Is it possible to view faidx and bai?

          Are they any examples how is it possible to use faidx and bai in a programming language?

          Thank you in advance.
          The faidx is the index file for a reference sequence (FASTA format), while the bai is an index file for the read alignments (SAM format). They can be generated using SAMtools or Picard, with both having a C and Java API, respectively, to give you access to these files.

          Comment


          • #6
            Do you know about any examples how to use faidx and bai with C or Java API or any technical explanation how the both files are working?

            Comment


            • #7
              Originally posted by bioxyz View Post
              Do you know about any examples how to use faidx and bai with C or Java API or any technical explanation how the both files are working?
              Here's the Picard API documentation.

              Here's the Samtools API documentation.

              The rest can be found in the two source codes (the best documentation of them all).

              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, 11:49 AM
              0 responses
              15 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-24-2024, 08:47 AM
              0 responses
              16 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-11-2024, 12:08 PM
              0 responses
              61 views
              0 likes
              Last Post seqadmin  
              Started by seqadmin, 04-10-2024, 10:19 PM
              0 responses
              60 views
              0 likes
              Last Post seqadmin  
              Working...
              X