PROPERseqTools

Overview

Protein-protein Interaction Sequencing (PROPER-seq) is a high-throughput sequencing technology that efficiently maps cell wide protein-protein interactions in vitro. Here, we distribute PROPERseqTools, a standardized data processing pipeline to identify protein-protein interactions from fastq files of PROPER-seq experiments.
The schematic diagram below describes the various stages of the PROPERseqTools pipeline including pre-processing of the raw reads, alignment to the transcritome, identification of chimeric read pairs and identification of protein-protein interactions.

  • At the pre-processing stage, with raw read pairs from the sequencing library as input, linker and adapter sequences are first removed. Low-quality and too short reads are then removed to get processed read pairs.
  • At the alignment stage, the pre-processed read pairs are mapped to the target transcriptome separately to get mapped read pairs.
  • At the next stage, we identify chimeric read pairs from the mapped read pairs. We select read pairs whose two ends’ primary alignments are mapped to different protein-coding genes and further check their mapping qualities. The read pairs passing the quality checks above are further deduplicated to get identified as chimeric read pairs.
  • At the stage of protein-protein interactions identification, for each chimeric read pair, we apply various statistical test and cutoffs inculding chi-square test, an odds ratio cutoff and a positive read count cutoff to to finally identify protein-protein interactions.

Workflow

  1. Raw read pairs from the PROPER-seq experiment are present in .fastq files.
  2. Cutadpt is applied to remove 3' linker sequences and 5' adapter sequences from the read pairs.
  3. Fastp is then applied to remove low-quality reads whose mean quality is lower than Q20 and too short reads whose length is shorter than 20 bp.
  4. The remaing read pairs are output as pre-processed read pairs in .fastq files.
  5. The pre-processed read pairs are mapped to transcriptome with BWA separately. ‘-a’ option is enabled to keep all found alignments using default threshold of BWA. This is used in the later filtering of potential homologous read pairs.
  6. The mapped read pairs are output in .csv file with aligned genes and transcriptome alignment information.
  7. The transcriptome alignment information of mapped read pairs is utilized to select read pairs whose two ends’ primary alignments are mapped to different protein-coding genes. The selected read pairs are further checked to see if both ends have over 50% of their read bases matches the reference transcriptome based on the CIGAR string and if both ends have no shared lesser alignments.
  8. The read pairs passing the quality checks are then deduplicated based on the external coordinates of their primary alignments.
  9. The deduplicated read pairs are identified as chimeric read pairs from the library. Their read ids and alignment infomation of the primary alignment are output in chimericReadPairs.csv.
  10. Chi-square test is applied to the chimeric read pairs. Benjamini-Hochberg adjustment is applied to correct all the p-values. Gene pairs with an adjusted p-value less than 0.05 (default) and with an odds ratio larger than 1 (default) are kept. Gene pairs with mapped chimeric read pair count in the library larger than 4 (default) times the average number of mapped chimeric read pairs per gene pair in the positive library are kept.
  11. The kept gene pairs are output as protein-protein interactions in proteinProteinInteractions.csv.

Software Requirements

  • Cutadapt (2.5 or later)
  • fastp (0.14.1 or later)
  • bwa (0.7.12-r1039 or later)
  • samtools (1.8 or later)
  • bedtools (2.26.0 or later)
  • Python 3.4 or later, the following python libraries are required:
    • sys
    • collections
    • cigar
    • glob
    • scipy
    • rpy2
    • datetime

Additional files required

BWA Index of the transcriptome to be aligned
You will need to download or build the bwa index of the target trancriptome for PROPERseqTools to use. Here we provide the compressed bwa index built from RefSeq GRCh38 transcriptome

Transcript, gene and gene type dictionary file
You will also need a dictionary file that contains the information of transcript ids to their corresponding gene names/gene ids and corresponding gene types in a csv format with the first column being transcript ids, the second column being gene names and the third column being gene types. Here we provide an example dictionary file for RefSeq GRCh38 genome

Usage

Installation

  1. Clone the current github repository to your local machine. For example
    git clone https://github.com/Zhong-Lab-UCSD/PROPERseqTools
  2. Add the following path of the cloned directory to your .bashrc file
    export PATH=$PATH:/home/path/to/PROPERseqTools/bin

To excute PROPERseqTools, run


properseqTools -a /path/to/read1.fastq
               -b /path/to/read2.fastq
               -i /path/to/bwaIndex/transcriptome.fa
               -o /path/to/outputDir
               -g /path/to/refSeq_tx_gene_type.csv
           

Required parameters


-a     |String, Path to read1 fastq file, fastq.gz also supported
-b     |String, Path to read2 fastq file, fastq.gz also supported
-o     |String, Path to output directory
-i     |String, Path to bwa index of the target transcriptome
-g     |String, Path to transcirpt, gene and gene type dictionary file

Other parameters


-d     |Float, odds ratio cutoff used to identify protein-protein interactions, default=1
-p     |Float, false discovery rate cutoff used to identify protein-protein interactions, default=0.05
-c     |Float, read count cutoff coefficient used to identify protein-protein interactions, default=4
-j     |String, Job ID to be prepended to the output files and directories, optional, default=PROPERseq"
-t     |Int, Number of working threads, default=2
-r     |Char, (T or F), removal of intermediate files or not, default=T
-h     |Print usage message" 
           

PROPERseqTools Output

A variety of output files are created for each sample as they are run through the pipeline. The highest level of the output directory contains the following files and subdirectories:


proteinProteinInteractions.csv    |a file that contains the identified protein-protein interactions from the sample
chimericReadPairs.csv             |a file that contains the read ids of the identified chimeric read pairs from the sample
summary.csv                       |a file that contains the summary statistics of running the sample with PROPERseqTools
errorLog.txt                      |a file that contains error message from the pipeline if any
processedFastq/                   |a directory that contains the pre-processed fastq files from the sample
alignment/mappedReadPairs.csv     |a file that contains the alignment infomation of all mapped read pairs from the sample
alignment/*/                      |subdirectories that contain the alignment files of the pre-processed fastq files from the sample
intermediateFiles/                |an optional directory contains all the intermediat files generated from running the pipeline, this direcotry only exists if '-r' option is set to 'F' 
           

Example Output

In this repository, we provide example outputs of this pipeline using the PROPER-seq data published in xxx.

DOI

https://doi.org/10.5281/zenodo.5009171