5
$\begingroup$

I have a vector sequence and would like to find the following nucleotide sequence in it.

AASYWSRA

This query sequence uses several degenerate symbols, defined as:

  • S = C or G (Strong)
  • Y = C or T (pYrimidine)
  • W = A or T (Weak)
  • R = A or G (puRine)

(See this page for a complete description of the IUPAC nucleotide codes.)

Is there a tool to align this sequence with the vector and find all the possible sites?

EDIT: I found this website but couldn't find any of the resources helpful. Maybe one of these will work but I found most of them too complicated. If you know which one will work and explain how to use it I will be grateful.

$\endgroup$
1
  • $\begingroup$ I could've sworn NCBI BLAST can do that? Have you tried it? $\endgroup$
    – Armatus
    Commented Apr 30, 2013 at 22:12

3 Answers 3

2
$\begingroup$

If you're looking for an exact match, you don't really need a complex aligner. Perl regular expressions are pretty powerful at string transformations or conditional matching of substrings. For example, to find all matches of AASYWSRA in a nucleotide sequence $seq, you can do:

@matches = $seq =~ m/AA[CG][CT][AT][CG][AG]A/g;

The [] brackets are known as Perl character classes, which allow different characters in a position.

$\endgroup$
0
$\begingroup$

I've never utilized the feature, but I know Vmatch allows you to define your own alphabets and symbol mappings, which should allow you to handle the IUPAC ambiguous nucleotide symbols. The default alphabet/mapping may even include these symbols.

$\endgroup$
1
  • $\begingroup$ Unfortunately, vmatch treats the letters in symbol mappings as equivalent (e.g. S = C). It does not handle that S can be C or G. The symbol mapping is intended for handling case (e.g. t = T) or to group similar amino acids. $\endgroup$
    – Peter
    Commented May 20, 2020 at 23:01
0
$\begingroup$

I have used MAST to search for particular motifs in a sequence.

From the MAST intro page, it looks like you'll have to reformat your motif a little, but it should suffice for your purposes:

Motifs are represented as position-dependent scoring matrices that describe the score of each possible letter at each position in the pattern.

Here is more info on formatting, which also indicates that the alphabet you use will be interpreted correctly.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .