# scGestaltPrepFunc # ------------------------------------------------------------------------------------------- # The following functions will handle pre-processing of inDrops scGestalt data # prior to running the scGestalt analysis pipeline (if necessary) # ------------------------------------------------------------------------------------------- # Starting with a single inDrops sequence fastq file containing reads for all inDrops cell index identifiers, # split the fastq into individual fastq files for each cell. # Cell index identifier will be in the header for each read SplitReadsByBarcode = function(read.dat, filepath, sample.id) { # read.dat = vector with fasta sequence # filepath = full path name for output directory # sample.id = sample prefix for file name # Outputs directory with as many files as cell index identifiers # Structure of filename: SampleId_Barcode.fq i=1 while(i