First time:
conda env create --file environment.yml
conda activate tracertools
ipython kernel install --user --name tracertoolsUpdate:
conda env update --file environment.ymlRequired software:
- Place .fastq files in a directory named
fastq.
experiment/
├── fastq/
├── sample1_S1_L001_R1.fastq.gz
├── sample1_S1_L001_R2.fastq.gz
- Name create CSV sample sheet with id and sample columns:
id,sample
1,sample1
- Copy
/templates/bowtie_paired.slurmor/templates/bowtie.slurmto experiment directory. - Edit the
.slurmfile to set parameters:array=1-2specifies the number of samples to process is parallel (--array=1-Nfor N samples).r1_patternspecifies the naming pattern for R1 reads.r2_patternspecifies the naming pattern for R2 reads.forward_primerandreverse_primerare the primers used in the experiment.refis the path to bowtie reference index.samples_fileis the path to the CSV file with sample information.sitesis a dictionary with site names and their positions in the reference (set to"{}"for intID detection only).
- Submit the job array with:
sbatch bowtie_paired.slurm- After all jobs are complete, you will have a directory for each sample with the following structure:
experiment/
├── bam/
├── sample1.bam
├── sample1.bam.bai
├── data/
├── sample1_allele_counts.csv
├── fastq/
├── sample1_S1_L001_R1.fastq.gz
├── sample1_S1_L001_R2.fastq.gz
conda activate tracertools
tracertools count-integrations --path ./data/conda activate tracertools
tracertools edit-fractions --path ./data/- Place .fastq files in a directory named
fastq. - Name .fastq files with sample and library type:
experiment/
├── fastq/
├── sample1_GEX_S1_R1_001.fastq.gz
├── sample1_GEX_S1_R2_001.fastq.gz
├── sample1_TS_S1_R1_001.fastq.gz
├── sample1_TS_S1_R2_001.fastq.gz
- Copy
/templates/cellranger.slurmto the experiment directory. - Edit the
cellranger.slurmfile to set parameters:array=1-4specifies the number of samples to process in parallel (--array=1-Nfor N samples).samplesis a list of sample names to process.transcriptomeis the path to the cellranger reference transcriptome.
- Submit the job array with:
sbatch cellranger.slurm- After all jobs are complete, you will have a directory for each sample with the following structure:
experiment/
├── bam/
├── sample1.bam
├── sample1.bam.bai
├── data/
├── sample1
├── sample1_allele_counts.csv
├── sample1_filtered_counts.h5
├── sample1_raw_counts.h5
├── sample1_summary.html
├── fastq/
├── sample1_GEX_S1_R1_001.fastq.gz
├── sample1_GEX_S1_R2_001.fastq.gz
├── sample1_TS_S1_R1_001.fastq.gz
├── sample1_TS_S1_R2_001.fastq.gz
- Make a copy of
/templates/process_10.ipynband follow instruction to complete processing and QC.