Unconfigured Ad

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ErikFas
    Member
    • Jun 2014
    • 86

    #1

    NGS data directory structures

    After a recent influx of new data, I am beginning to doubt the way that I previously stored my data (both raw and processed), so I figured I might as well ask on here what people's directory structures look like. Maybe there is some kind of ideal structure that people tend to use? I've taught myself most of what I know of the bioinformatics, and while I now feel quite fluent in both Python, R and some basic bash coding, I think I'm lacking quite a bit in those basic things that are taught at computer science courses/programmes.

    This is what my first few levels of the directory structure looks like at the moment:
    Code:
    ~/data/rna/fastq/
               bam
               counts
               fpkm
               de_analyses
    ... and each directory there has subdirectories as follows:

    Code:
    .../cell_type_1/<appropriate data files>
        cell_type_2
        cell_type_3
    So, it's kind of cell type-oriented at the moment. I have some scripts (for differential expression, for example) that automatically finds the files in the structure specified in the command line argument, such as "de_analysis.R --samples cell_type_1,cell_type_2" (which run DESeq2 on cell_type_1 vs. cell_type_2).

    I started doubting this structure now that I got more data, some of which is new sequencing runs of the same cell types, but under different cultivating conditions. I could just keep my current structure and name the new data something like "cell_type_1_b", but I don't want to do anything quite yet without hearing what other people tend to do.

    I thought about making it more experiment-centric (i.e. use dates up in the hierarchy and appropriate subfolders below), but then I'd have to re-write a lot of my scripts. If that would be generally better (especially for the future, with even more data) then I'd do it, though, but It'd be nice to hear other people's thoughts first =P
  • dpryan
    Devon Ryan
    • Jul 2011
    • 3478

    #2
    For whatever it's worth, I generally group everything by project, since I've rarely needed to analyze samples across projects. So it's something like Project/[fastq|bam|counts|DE_analysis]. I've never done subdirectories for groups, I just have a sample table that has all of the group information within a project that I can parse in R (or python) when needed. My scripts for mapping are separate from this, since that involves moving files to/from a cluster. For DE and similar analyses, the scripts often get tweaked for each project anyway, so each project just has its own (normally an Rmd file, in the case of R-based analyses).

    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
    24 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-22-2026, 10:48 AM
    0 responses
    20 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-15-2026, 10:52 AM
    0 responses
    36 views
    0 reactions
    Last Post SEQadmin2  
    Started by SEQadmin2, 10-14-2026, 05:39 AM
    0 responses
    42 views
    0 reactions
    Last Post SEQadmin2  
    Working...