Multiple Sequence Alignments In R
1
0
Entering edit mode
10.0 years ago
l.roca ▴ 10

Hi,

Is there a native R package that does Multiple Sequence Alignments In R?

I am looking for something like pairwiseAlignment in Bioconductor which does not need installation of other softwares (e.g., CLUSTW and MUSCLE) to run.

Thanks

alignment r • 4.1k views
ADD COMMENT
1
Entering edit mode
10.0 years ago
komal.rathi ★ 4.1k

There is an R package muscle and I don't think it requires MUSCLE to be installed. Just to get you started:

> library(muscle)
> muscle(seqs = 'multi_sample.fa')
ADD COMMENT
0
Entering edit mode

I tried and I get this error:
Error in rep(" ", jl) : invalid 'times' argument

what does it mean?

ADD REPLY
0
Entering edit mode

Is there any way you can share the link to your multi-fasta file?

ADD REPLY
0
Entering edit mode

Thanks for the comment. It is a small file so I just copy pasted it:

>tr|A5H237|A5H237_ELAGV Class I KNOX-like 1 protein OS=Elaeis guineensis var. tenera GN=KNOX1 PE=2 SV=1
MVSQYTSRTDRQIAREMEGRGGSGGGGDNSGLMGGFSDGSGSLSPLMIMPLMASRPVLPP
TPHMSNNGLFLPPPLSNAAGEDYDNSVIKAKIMAHPQYPRLLSAYVNCHKVGAPPEVVAR
LEEACATSLMMGRASSSSAAGDGGSGGGGGEDPALDQFMEAYCEMLTKYEQELSKPFKEA
MLFLSRIDAQFKSLSLSTPPPPQVYGEQLERNGSSEEEFGASENYVDPQAEDRELKGQLL
RKYSGYLSSLKQEFLKKRKKGKLPKEARQQLLDWWNRHYKWPYPSEAQKLALAQSTGLDQ
KQINNWFINQRKRHWKPSEEMQFVVMDTAHPHYFMDNSLGNPFPLDCAPALL
>tr|Q5GAB7|Q5GAB7_9TRAC KNOTTED1-like protein OS=Selaginella kraussiana GN=KNOX1 PE=2 SV=1
MELRGRRSTSQSPASTQDSTEVSMEQHLPPPRHPHPQQHEMGAMMVLMEESSNAHHHHLG
STSSMPPHQEQQQNPYRPSAAGEHQQQFFLPGMIKEESSPHHQQQQQNFLLPSSVFSMEN
ICWPTNDQADLMESMSPESADLCRNLSSQLEHFRKEIGTYHGAESSSQQHHLVSSASGSS
SGSYGVDKSLSVVPAVSLASDLLGSTSSQSSESEMLRAAIVSHPHYPELVVAHMNCHKVA
ASPEVVSQIDEIIQNFKDFQPPVAASLGANPELDQFMVAYYSMLLKCEKEVRKTFKEAVA
FCKKLDQQFQVITNGSASSVTSVESDDRNEAYDSSEDEDSGAEVEIEVDPMAKDKELKEQ
LMRKYSGYISSLKHEFLKKKKKGKLPKDSRQILLNWWSVHYKWPYPSESEKASLAESTGL
DQKQINNWFINQRKRHWKPSDELTALSGQPSQSTEASSGS
>tr|I6LJ15|I6LJ15_9LAMI KNOX1 (Fragment) OS=Streptocarpus glandulosissimus GN=KNOX1 PE=2 SV=1
AYLDCQKVGAPPEVVARLTAIRHEFEARQRAGGAAARDVSKDPELDQFMEAYYDMLVKYR
EELSRPLQEAMEFMRRIESQLNMITNCPVRILNSEEKCEGVVSSEEDQENSGGETELAEI
DPRAEDKELKNHLLRKYSGYLSSLKQELSKKKKKGKLPKDARQKLLSWWELHYKWPYPSE
SEKVALAESTGLDQKQIYNWFINQRKRHWEPSEDMQFMVM
ADD REPLY
1
Entering edit mode

I changed the names of your sequences to something short, and it is working fine.

ADD REPLY
0
Entering edit mode

Thanks. Any idea what was the problem?

ADD REPLY
0
Entering edit mode

Honestly I don't know. I tried to figure it out by removing the special characters like '|', '=', '-' and '_' but it doesn't seem to affect it. However, when I rename the sequences to something short, it works. Did you try renaming your sequences and re-running the command?

ADD REPLY
0
Entering edit mode

Yep, I changed it and it works. I just wonder what is the reason :-)

ADD REPLY

Login before adding your answer.

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