Unconfigured Ad

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • anunn
    Junior Member
    • Sep 2010
    • 7

    Manipulating .sam files

    Hi Guys,

    I want to do something very simple, but I'm finding it very difficult to make any headway.

    I have .sam files from a sequencing experiment, and I want to visualise a few small regions by uploading them to UCSC. The problem is, I can't even open a .sam file let alone select specific information.

    I can't seem to open the .sam file in MySQL Workbench - is this even the right program to use?

    I suppose the question I'm asking is, what is the *simplest* way of taking a 4GB .sam file, and extracting the reads that align to say, Chr1, and saving them as a new .sam file?

    Many thanks!

    Adam
  • colindaven
    Senior Member
    • Oct 2008
    • 417

    #2
    Try Tablet, it's very good. You'll need the reference sequence, and the chromosome of the reference sequence you use should exactly match that in the SAM file.

    To look at your SAM file try the Large Text File Viewer if you're using windows. If in Linux use the commands head or more.

    I would stay well clear of Mysql workbench here.

    And to answer your concrete question : I would use the "grep" command to filter chr1 sequences on a Linux (or, I think, Mac) system. On Windows I don't know!

    You can also try SAM-> BAM conversion using Picard.

    Comment

    • ttnguyen
      Member
      • Mar 2010
      • 41

      #3
      Also try SeqMonk http://www.bioinformatics.bbsrc.ac.uk/projects/seqmonk/
      This java-based tool is OS independent.

      Comment

      • krobison
        Senior Member
        • Nov 2007
        • 734

        #4
        SAM files are not MySQL files.

        samtools are a good basic tool for this. Not only can you pull out a chromosome, but also specify a specific region

        Your new SAM file may not be usable by anything downstream if you aren't careful with grep (you need to make sure the header comes along), but that doesn't mean I don't trod that thin ice routinely!

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Nine Things a Sample Prep Scientist Thinks About Before Sequencing
          by SEQadmin2


          I’m not a sequencing expert. I’m a purification scientist who uses NGS to evaluate workflows my group develops. With this perspective, we think about the sample first and the NGS workflow second. The sequencer is an exceptionally honest reporter, but it can only report on what you give it, so whether you get clean, interpretable data from an NGS workflow is largely determined before you begin.

          Here are nine questions we think about, in roughly the order they matter, before...
          06-18-2026, 07:11 AM
        • SEQadmin2
          From Collection to Sequencing: Why Sample Preparation and Preservation Define Sequencing Data
          by SEQadmin2


          Data variability is still an issue in sequencing technologies despite the advances in reproducibility and accuracy of these platforms. But the problem does not originate in the sequencing itself, but in the previous steps, before the sample reaches the sequencer.


          The first step is collection, followed by preservation and sample preparation for analysis. Most scientists overlook those steps, but not being careful might just be skewing the experiment’s results.
          ...
          06-02-2026, 10:05 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 06-26-2026, 11:10 AM
        0 responses
        12 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-17-2026, 06:09 AM
        0 responses
        48 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-09-2026, 11:58 AM
        0 responses
        106 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 06-05-2026, 10:09 AM
        0 responses
        125 views
        0 reactions
        Last Post SEQadmin2  
        Working...