getBackgroundFrequencies for Arabidopsis
3
0
Entering edit mode
oliwindram ▴ 10
@oliwindram-8536
Last seen 8.4 years ago
United Kingdom

 

Hi

I am trying to use PWMEnrich to look for promoter enrichment in a group of Arabidopsis genes.

As the Arabidopsis genome is not supported I am trying to create the relevant backgrounds etc

I tried the command bellow and got the following:

> genomic.acgt = getBackgroundFrequencies(BSgenome.Athaliana.TAIR.TAIR9)
Error in getPromoters(organism) : 
  Promoter sequences cannot be retrieved automatically for TAIR9, please provide a set of background sequences explicitely.

I then built  a DNAStringSet of promoters of the Arabidopsis Genome (Prom1000bp) and tried this:

 > Prom1000bp.genomic.acgt = getBackgroundFrequencies(Prom1000bp)
Error in getPromoters(organism) : 
  The input parameter needs to be a valid genome name ('dm3', 'mm9' or 'hg19') or a set of background sequences.

 

My question is what structure is "a set of background sequences" if they are not a DNAStringSet?

 

pwmenrich bsgenome • 1.6k views
ADD COMMENT
1
Entering edit mode
@robert-stojnic-6136
Last seen 8.7 years ago
United Kingdom

Hi,

This function should be taking a set of background sequences, but isn't. It will be fixed in the next release, thanks for the report!

Until then, this function will give you an equivalent output (it's what getBackgroundFrequencies is internally calling):

Prom1000bp.genomic.acgt = makePriors(Prom1000bp, 1)

 

Cheers, Robert

 

ADD COMMENT
0
Entering edit mode
@robert-stojnic-6136
Last seen 8.7 years ago
United Kingdom

Hi,

This function should be taking a set of background sequences, but isn't. It will be fixed in the next release, thanks for the report!

Until then, this function will give you an equivalent output (it's what getBackgroundFrequencies is internally calling):

Prom1000bp.genomic.acgt = makePriors(Prom1000bp, 1)

 

Cheers, Robert

 

ADD COMMENT
0
Entering edit mode
oliwindram ▴ 10
@oliwindram-8536
Last seen 8.4 years ago
United Kingdom

That is great thanks

ADD COMMENT

Login before adding your answer.

Traffic: 952 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