Skip to content

biopilot create

Create the folders of a standard bioinformatics project.

biopilot create [--print] <project>

Examples

$ biopilot create rnaseq-2026
created rnaseq-2026/ with data/raw/ data/processed/ metadata/ reference/ results/ scripts/ logs/ envs/ notebooks/ docs/
to enter it: cd rnaseq-2026
$ cd rnaseq-2026

Folders already there are kept, with their files; only the missing ones are made. To also enter the project, add --print:

$ biopilot create --print rnaseq-2026
mkdir -p rnaseq-2026/data/raw rnaseq-2026/data/processed … rnaseq-2026/docs && cd rnaseq-2026
$ pwd
/home/me/rnaseq-2026

The project can also be a path:

biopilot create ~/projects/wgs_trio

Options

Option Effect
--print show the mkdir -p … && cd … command and run it in your shell: the project is created and you are in it

How --print enters the project

A program cannot change the folder of the shell that runs it. In a BioPilot session, the shell integration (bash, zsh, fish) defines a biopilot function: for create --print, it runs the printed line in your shell, once it has checked that it is the mkdir -p … && cd … line. Every other biopilot command goes to the program unchanged.

Outside a BioPilot session, --print only prints the line, creating nothing. Run it yourself:

eval "$(biopilot create --print rnaseq-2026)"
biopilot create --print rnaseq-2026 | source

The layout

rnaseq-2026/
├── data/
│   ├── raw/          the reads as received, never modified
│   └── processed/    intermediate files: trimmed reads, alignments
├── metadata/         sample sheets, experimental design
├── reference/        genome, annotation, indexes
├── results/          final outputs
├── scripts/          analysis code
├── logs/             the tools' logs
├── envs/             conda environment files
├── notebooks/        exploration, figures
└── docs/             notes, protocols, reports

Recognised at once

Right after the command, BioPilot recognises the project from any of its folders, by its layout alone: no hidden file is written.

  • biopilot status names the project, with the marker project layout;
  • the reads you put in data/raw are paired, R1 with R2;
  • output names are derived in results/, for example results/s1_R1.trimmed.fastq.gz.

The layout counts as long as data/raw, metadata, reference and results are there; the other folders can be removed. A project marker nearer to where you are, such as a Snakefile in scripts/pipeline/, takes precedence.

Put the reads directly in data/raw

BioPilot reads file names three levels deep from the project root. data/raw/s1_R1.fastq.gz is seen; data/raw/run1/fastq/s1_R1.fastq.gz is not.

Project names

Letters, digits, ., _, + and -, not starting with - or ., in a folder name or a path (~/…, /…, ../…). That way the printed command works unquoted in bash, zsh and fish, and is safe to run with eval. A name with a space, ;, $, * or a backslash is refused.

Exit code

0 when the layout is there (made now or before); 1 when a folder could not be made (a file in the way, no permission); 2 when the project name is missing, repeated or not usable.

See also

status · How suggestions work · Project file (.biopilot.toml)