creating PDIct from AAStringSets
1
0
Entering edit mode
Assa Yeroslaviz ★ 1.5k
@assa-yeroslaviz-1597
Last seen 3 months ago
Germany

Hi,

Is there a way to create a PDict object from amino acid sequences?

I would like to run a pattern search in a protein sequence for multiple pattern. With just one pattern I can do it with

       hits <- matchPattern("K", protein1)

but how can I do it, if I would like to search for e.g. c("K", "R")?

 

thanks

Assa

PDict Biostrings aastring • 1.0k views
ADD COMMENT
0
Entering edit mode
@herve-pages-1542
Last seen 1 day ago
Seattle, WA, United States

Hi Assa,

PDict objects are for DNA sequences only.  Please check matching of AAStringSet vs. another AAStringSet for a similar question and an efficient solution for the exact matching case based on CRAN package AhoCorasickTrie. If you need to perform inexact (a.k.a. fuzzy) matching, please check Creating a Biostrings PDict object from amino-acid sequences.

Cheers,

H.

ADD COMMENT

Login before adding your answer.

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