Announcement

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

  • Working with sam file as a table

    Hey all,

    I am working with a sam file and i want edit it and manipulate it as a normal table. there are few limited options in galaxy but it takes forever in queue and I want a more freedom. Is there any free program similar to excel or something sql based i can upload my file to and treat it like a normal table?
    Any pointer will be highly appreciated
    Thanks in advanced

  • #2
    Sam files are millions of lines long. I think you need to rethink what you are doing. Editing a file like that manually is almost certainly not the right way to do whatever you want to do. You should either pull out a smaller subset of reads to examine, or use a script to go through all the lines for you.

    Comment


    • #3
      Thank you for your answer, I guess i wasn't clear enough i wanna query the sam file by addressing it as a table, like i would have done if i could upload it to mysql server and query it using sql tools or BI tools like oracle.
      If not how can i manipulate the data, even if it will be working on a smaller subset?

      Comment


      • #4
        Assuming the file is coordinate sorted, you can simply "samtools view file.bam region" to get reads over a region. If you need things done more programatically, there are APIs that yield direct access. The C API is described on the samtools webpage on sourceforge and I find it pretty convenient. There's likely to be a similar API for whatever language you normally prefer.

        Comment

        Latest Articles

        Collapse

        • seqadmin
          Advanced Methods for the Detection of Infectious Disease
          by seqadmin




          The recent pandemic caused worldwide health, economic, and social disruptions with its reverberations still felt today. A key takeaway from this event is the need for accurate and accessible tools for detecting and tracking infectious diseases. Timely identification is essential for early intervention, managing outbreaks, and preventing their spread. This article reviews several valuable tools employed in the detection and surveillance of infectious diseases.
          ...
          11-27-2023, 01:15 PM
        • seqadmin
          Strategies for Investigating the Microbiome
          by seqadmin




          Microbiome research has led to the discovery of important connections to human and environmental health. Sequencing has become a core investigational tool in microbiome research, a subject that we covered during a recent webinar. Our expert speakers shared a number of advancements including improved experimental workflows, research involving transmission dynamics, and invaluable analysis resources. This article recaps their informative presentations, offering insights...
          11-09-2023, 07:02 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by seqadmin, Yesterday, 10:48 AM
        0 responses
        16 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-29-2023, 08:26 AM
        0 responses
        12 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-29-2023, 08:12 AM
        0 responses
        13 views
        0 likes
        Last Post seqadmin  
        Started by seqadmin, 11-27-2023, 08:12 AM
        0 responses
        22 views
        0 likes
        Last Post seqadmin  
        Working...
        X