Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LizBent
    Member
    • Jan 2012
    • 31

    #1

    Is there a utility to detect how sff files are compressed?

    Hi all. My lab partner has given me some sff files to work with, file name format NAME.sff.

    They seem to be compressed- the biopieces command read_sff does not work with them, and when I try to look at the files I get a warning that they may be in binary format, then when the file is open I see only gibberish.

    How can I tell how they were compressed? there is nothing in the file name to indicate that the files are compressed, or how. My lab partner is off on vacation and I can't reach him, so I have no way to know if he took off a file extension or used some kind of compression software before he gave me these files. Is there a utility that can help with this? I also have fasta and qual files I can work with that seem uncompressed, but I would prefer to use the sff files since the read_sff command in biopieces allows for automatic trimming of adapter keys using the -c option, and that would be pretty nice.
  • maasha
    Senior Member
    • Apr 2009
    • 153

    #2
    sff files are binary encoded but not compressed.

    Read about sff files here.

    If Biopieces read_sff fail it may very well indicate a corrupt file. You can test if the file is compressed with the UNIX command "file". On my system this shows:

    Code:
    maasha@mel:~$ file test.sff.gz 
    test.sff.gz: gzip compressed data, was "test.sff", from Unix, last modified: Tue Feb  8 20:46:46 2011
    maasha@mel:~$ gunzip test.sff.gz 
    maasha@mel:~$ file test.sff 
    test.sff: data

    Comment

    • LizBent
      Member
      • Jan 2012
      • 31

      #3
      Thanks a lot- the file does seem to be corrupt (I tried a different sff file and it was read OK by read_sff, so it may just be the one file) and not compressed. This makes sense now.

      Comment

      • maubp
        Peter (Biopython etc)
        • Jul 2009
        • 1544

        #4
        I'd look at the first few bytes with hexdump - that is enough to spot commonly used compression formats, or if it is an SFF file.

        Comment

        Latest Articles

        Collapse

        • SEQadmin2
          Multiomic Liquid Biopsy: What DNA/RNA Panels Reveal That DNA Alone Can’t
          by SEQadmin2



          Tumors contain complex mixtures of cell populations that evolve in response to treatment and host-specific factors. Tissue biopsies provide only static snapshots of a tumor’s state. But what if we could follow that evolution over time using a minimally invasive technique?

          Liquid biopsies can detect tumor-derived material circulating in the bloodstream, providing a way to study treatment response, detect emerging resistance, and discover new biomarkers. Circulating
          ...
          10-14-2026, 09:55 AM
        • SEQadmin2
          New Genomics Technologies Take Aim at Long-Standing Limits
          by SEQadmin2


          Researchers using sequencing and genomics tools often have to make trade-offs. They can choose between speed or scale, short reads or long-range information, or targeted panels or a view of the whole transcriptome. New technologies that have been released this year are built to address those tough choices.

          We asked six companies the same four questions to learn about their latest products. The new technologies bring a lot to the table, including rethinking sequencing
          ...
          09-28-2026, 10:25 AM

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        43 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        33 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-15-2026, 10:52 AM
        0 responses
        44 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-14-2026, 05:39 AM
        0 responses
        45 views
        0 reactions
        Last Post SEQadmin2  
        Working...