Commit a26efc94 authored by Aurelien Brionne's avatar Aurelien Brionne
Browse files

feature_coordinates in annot and vignette input corrections

parent 25a33ec7
^.*\.Rproj$
^\.Rproj\.user$
.Rproj.user
.Rhistory
.RData
.Ruserdata
......@@ -116,12 +116,30 @@ setMethod("genome_features_overlaps",definition=function(peaks,features,figs_pat
feature_coverage=base::round(overlaps_length/IRanges::width(
subject[S4Vectors::subjectHits(hits)])*100,digits=2)
###################
# subject_coordinates
feature_coordinates=data.table::data.table(
base::as.data.frame(
subject[S4Vectors::subjectHits(hits)]
)
)
###################
# subject_coordinates collapse
feature_coordinates=base::paste(
feature_coordinates$seqnames,
feature_coordinates$start,
feature_coordinates$end,
feature_coordinates$strand,
sep=":")
###################
# convert to table
Data<-data.table::data.table(
feature_type=y,
query_DT[S4Vectors::queryHits(hits)],
subject_DT[S4Vectors::subjectHits(hits)],
feature_coordinates,
peak_coverage,
feature_coverage
)
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment