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
          16S/ITS Profiling vs. Shotgun Metagenomics: What Changes in Your Workflow?
          by SEQadmin2




          NGS has revolutionized clinical microbiology by offering new ways to identify and surveil pathogens without prior knowledge of the target. One popular approach is 16S rRNA and ITS amplicon sequencing, which targets specific microbial markers. But studies are increasingly incorporating shotgun metagenomics, a technique that sequences all DNA from a sample without targeting specific microbial markers. This approach allows more detailed taxonomic classification, detection...
          Today, 06:46 AM
        • 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

        ad_right_rmr

        Collapse

        News

        Collapse

        Topics Statistics Last Post
        Started by SEQadmin2, 10-28-2026, 09:57 AM
        0 responses
        22 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-28-2026, 09:51 AM
        0 responses
        14 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 11:13 AM
        0 responses
        67 views
        0 reactions
        Last Post SEQadmin2  
        Started by SEQadmin2, 10-22-2026, 10:48 AM
        0 responses
        47 views
        0 reactions
        Last Post SEQadmin2  
        Working...