Skip to main content

Preparing your samples

NextPyper expects a 4-column table that defines the identity and ploidy of your samples, and where to find their associated data.

The table requires a header with 4 columns:

Knowledge about your samples’ ploidy is not required to run NextPyper. Simply set it to 0, if you do not know it, or do not want to take it into account.

You can use nextpyper gather to help you create the sample table. From a data folder with only the paired-end data (forward and reverse files), you can run:

nextpyper gather --input reads/ --output sample.tsv

Which will take the reads/ and write the sample table to use with NextPyper in sample.tsv.

Example of reads/
reads/
├── sample1_R1.fastq
├── sample1_R2.fastq
├── sample2_R1.fastq
├── sample2_R2.fastq
├── sample3_R1.fastq
└── sample3_R2.fastq

Your sample table will look similar to this:

sample.tsv
PolarsRows3Columns4
sample
str
path_forward
str
path_reverse
str
ploidy
i64
0 sample1 reads/sample1_R1.fastq reads/sample1_R2.fastq 0
1 sample2 reads/sample2_R1.fastq reads/sample2_R2.fastq 0
2 sample3 reads/sample3_R1.fastq reads/sample3_R2.fastq 0
Note

Sample names are inferred based on the common prefix between the forward and reverse files.