The following repository contains all the codes regarding processing the TSS regions from a CSV file. Two distinct nextflow pipelines have been developed that can automatically extract sequences and the corresponding SuRE scores associated with those regions. The full pipeline would give out H5 files as output which can directly be used to train the models.
There are two processes that must be run to get the H5 files.
posex: This contains the repository that will take the TSS regions as input and will give out the corresponding SuRE scores as outputseqex: This contains the repository that will take the TSS regions (along with their corresponding scores) as input and give out the final H5 files that could be directly used for model training
Posex is a nextflow pipeline that takes the TSS regions as a CSV file and outputs the corresponding SuRE scores associated with that genomic region. The pipeline takes the following input:
dataset: location of the CSV filereads_directory: location of the chromosome-separated reads directory (in BED format)bw_file: location of the bigwig file to know the legth of the chromosomeoutput_dir: output directorylf: how much flanking sequence to take upstream of TSS (for our experiments, we had set this to 300)rf: how much flanking sequence to take downstream of TSS (for our experiments, we had set this to 300)alpha: To normalise the scores (when considering multiple animals)epsilon: added to deal withlog(0)situationscell_type: cell type of interestcell_sample: cell sample of intereststride: Our methods create a stride to look at not only the TSS regions but also the surrounding regions that has helped in increasing the information content. This is a boolean to set whether strides should be extracted during this set or notnum_strides: This number is being used to set how many strides should be used upstream/downstream of TSSstride_length: What should be the gap between each stride centre as compared to the TSSchromosomes: Which chromosomes is being preferred? Here, we have always pushed for chromosome-wise processing because this ensures parallelism
Seqex is a nextflow pipeline that takes the TSS regions as a CSV files and outputs the corresponding sequences and converts them into H5 files that could be directly used for model training. The pipeline takes the following inputs:
dataset: location of the CSV filegenome: location of the genome FASTA fileoutput_dir: output directorychromosomes: Which chromosomes is being preferred?
Please have a look at our paper[1] to have a detailed understanding about the method.
Warning
The following package of processes can not be directly used to create H5 files for model training. It has to be edited accordingly. Please see above regarding the modifications that has to be made. The following repository already has some test data files that could be used to test the proper functioning of the pipeline.