does import.bw with the selection argument take into account strand?
1
0
Entering edit mode
maltethodberg ▴ 170
@maltethodberg-9690
Last seen 9 days ago
Denmark

I'm generating mean coverage plots for promoters based on some BigWig files, like so:

import(con=bwFile, selection=BigWigSelection(promoters), as="NumericList) %>% do.call(rbind,.)

Which gives me a matrix of the coverage for each promoter at each position. Does the import.bw function reverse the signal of the promoters on the minus strand, or do I need to do this myself?

 

 

 

 

 

rtracklayer import.bw • 965 views
ADD COMMENT
2
Entering edit mode
@michael-lawrence-3846
Last seen 2.4 years ago
United States

You need to do it yourself.

ADD COMMENT
1
Entering edit mode

I should add that it's pretty easy to do this with revElements() on the returned list. The main issue is that BigWigSelection only indicates a list of ranges; the strand information from the GRanges is discarded during construction. At least right now, this behavior is consistent with GRanges-based extraction from Lists, e.g. RleList, NumericList, etc. It is worth revisiting though.

ADD REPLY

Login before adding your answer.

Traffic: 861 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6