Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Aurelien Brionne
GenomeFeatures
Commits
a26efc94
Commit
a26efc94
authored
Mar 29, 2018
by
Aurelien Brionne
Browse files
feature_coordinates in annot and vignette input corrections
parent
25a33ec7
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
.Rbuildignore
0 → 100644
View file @
a26efc94
^.*\.Rproj$
^\.Rproj\.user$
.gitignore
0 → 100644
View file @
a26efc94
.Rproj.user
.Rhistory
.RData
.Ruserdata
R/genome_features_overlaps.R
View file @
a26efc94
...
...
@@ -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
)
...
...
inst/extdata/data/input/H3K27Me3.bed
View file @
a26efc94
This diff is collapsed.
Click to expand it.
inst/extdata/data/input/H3K4Me3.bed
View file @
a26efc94
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment