unable to find an inherited method for function matchPWM for signature "list"match
1
0
Entering edit mode
9.8 years ago

Hi I am trying to use the function matchPWM which needs the pwm, sequence and the min score cutoff as the arguments,

I am giving the pwm and seq as follows:

> matchPWM(pwm, seq, min.score="60%")

and it is throwing me an error:

unable to find an inherited method for function matchPWM for signature '"list"'

Please let me know what could possibly be going wrong.

Biostrings R • 5.8k views
ADD COMMENT
0
Entering edit mode

Can you post the output of the following?

class(pwm)
class(seq)
ADD REPLY
0
Entering edit mode
> class(pwm)
[1] "matrix"
> class(seq)
[1] "list"
ADD REPLY
0
Entering edit mode
9.8 years ago

seq should be a DNAString, not a list. Have a read through help(matchPWM).

ADD COMMENT
0
Entering edit mode

Ok thank you so much.

ADD REPLY
0
Entering edit mode

How do I convert a fasta sequence into DNAstring Object

ADD REPLY

Login before adding your answer.

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