merge_sort_count | R Documentation |
Sort the peak files by end of peak, start of peak, and chr of peak
merge_sort_count(count_all, gtf)
count_all |
data.frame, indicating counts of peaks, generated by htseq-count. If you calculate counts for each sample separately, you need to combine these counts firstly through cbind(). |
gtf |
data.frame, indicating gtf file of all peaks, generated by generate_gtf function |
return sorted counts
## Not run:
SSC_patient1_Counts <- read.delim("SSC_patient1_Counts.txt", header=FALSE)
SSC_patient2_Counts <- read.delim("SSC_patient2_Counts.txt", header=FALSE)
esc_Counts_Counts <- read.delim("esc_Counts.txt", header=FALSE)
peaks_gtf <- read.delim("peak_merged.gtf", header=FALSE)
count_all <- cbind(SSC_patient1_Counts, SSC_patient2_Counts[,2],
esc_Counts_Counts[,2])
merged_count <- merge_sort_count(count_all, peaks_gtf)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.