Loading Fasta Failed: Expected sequence of length 29866 instead of 29885 for taxon ......

347 views
Skip to first unread message

PRINCE KUMAR SAH

unread,
Jul 6, 2022, 5:16:14 PM7/6/22
to beast-users
Hi all,

My name is Prince Kumar Sah. I am a new BEAST user.

While loading my fasta file in beauti, I get this error: "Loading of 10.sequence.fasta failed: Expected sequence of length 29866 instead of 29885 for taxon hCoV-19/India/HR-MDU-IGIB1210607500611313/2022". 

I have attached my fasta file which I downloaded from GISAID with this mail and also picture of the Message I got from Beauti.

Thank You in Advance.

Pawan Kr. Gupta

unread,
Jul 6, 2022, 5:24:03 PM7/6/22
to beast...@googlegroups.com
Hi, Prince 

Try converting FASTA format to .nex ( nexus file) using MEGA and then try to load the file. 

I believe this might resolve the problem. 

Thank you 


--
You received this message because you are subscribed to the Google Groups "beast-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beast-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beast-users/a74ca5d9-7315-42cc-b9e2-fad0b1adca10n%40googlegroups.com.

PRINCE KUMAR SAH

unread,
Jul 7, 2022, 3:02:32 PM7/7/22
to beast-users
Thank You for your help. 

But sequences length are not equal. I tried to convert it but it shows sequence must be same length. The data is downloaded from GISAID.

Can I delete the N values of the sequence to match the length of the sequence. But, here also, the problem if I have 5000 sequence then how will I do the same? 
Screenshot from 2022-07-07 03-47-18.png

Pawan Kr. Gupta

unread,
Jul 7, 2022, 3:44:26 PM7/7/22
to beast...@googlegroups.com
You should align the sequence 1st 
Using MEGA. 

Pawan Kr. Gupta

unread,
Jul 7, 2022, 3:59:45 PM7/7/22
to beast...@googlegroups.com
Hi, prince 

For alignment you can use online tools also 
Like MUSCLE or MAFFT

Jordan Douglas

unread,
Jul 7, 2022, 4:30:58 PM7/7/22
to beast-users
Hi Prince,

Yes, you'll need to align the genomes first. In the case of covid genomes, I recommend you make the alignments with NextAlign


It takes a little more work to get it installed than MAFFT or MUSCLE for example, but it generates much more high quality alignments, which don't need as much manual correction, and also runs a lot faster (by incorporating known information about the viral genome)

Jordan

PRINCE KUMAR SAH

unread,
Jul 7, 2022, 5:10:13 PM7/7/22
to beast-users
Thanks, Jordan, the Nextalign thing works. 

Thanks, Pawan for your help. 

PRINCE KUMAR SAH

unread,
Jul 7, 2022, 6:54:04 PM7/7/22
to beast-users
Hello,

I have one more question. How to add lineages and clade information in the Tree which we get from FigTree after many steps. 

Thank You, in Advance.

On Friday, 8 July 2022 at 02:00:58 UTC+5:30 Jordan Douglas wrote:

Omar Mejía

unread,
Jul 7, 2022, 8:35:57 PM7/7/22
to beast...@googlegroups.com
You can load the sequences in seaview, align and export as Nexus file

Reply all
Reply to author
Forward
0 new messages