Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Using your own data

Each module page shows its commands on the example data in tests/fixtures/, and the Workflow Builder says whether the route you pick runs on that data as written. To run a command on your study, you swap the example files for yours. This page lists what your files must look like so the swap works the first time.

The general rule

  1. Run the module’s Minimal Working Example on the example data first, so you know the command works on your machine or cluster.

  2. Open the example input files (zcat file.gz | head) and make your files match them: same columns, same header line, same compression and index files.

  3. Replace each tests/fixtures/... path in the command with your file, and change --cwd to a new output folder.

  4. Run with -n first. SoS checks the inputs and prints what it would run, without running it.

  5. Run it for real, on a small piece first (one chromosome or a few regions), then on everything.

Rules that apply to every input

Checklist by input

Genotypes

Starts at: Genotype VCF File Quality Control. Example: tests/fixtures/vcf_qc/protocol_example.genotype.chr22.vcf.gz.

Molecular phenotype matrix (expression, splicing, methylation, protein)

#chr   start     end       ID               SAMPLE_001  SAMPLE_002
chr22  10939387  10961337  ENSG00000283047  37.077      0.0

Starts at: Phenotype preprocessing. If you start from raw reads, begin with your data type under Molecular Phenotypes instead.

Raw RNA-seq reads

Starts at: Quantifying expression from RNA-seq data.

Covariates

#id  SAMPLE_001  SAMPLE_002  SAMPLE_003
sex  1           1           2
age  90.97       80.24       83.9

Starts at: Covariate data preprocessing. Genotype PCs and hidden factors are added for you there.

GWAS summary statistics (for colocalization, TWAS, MR)

Starts at: GWAS and xQTL integration mini-protocol.

Check before the long run

When the inputs are ready, run the full analysis on your cluster: see Running on a cluster.