MantisBT - MEGA
View Issue Details
0002466MEGAAlignment Explorerpublic2021-01-03 13:042021-01-04 14:40
guest 
gstecher 
normalminorhave not tried
resolvedfixed 
PCLinuxDebian
MEGA 11 (Graphical Interface version) 
 
James
Gibbs
jgibbs@niaid.nih.gov
jgibbs@niaid.nih.gov
0002466: Underscore characters are replaced by spaces in alignment and exported Nexus files
Hi,
Whenever I export any alignment to nexus format, all underscore characters in taxa names are replaced by spaces. This causes an error when importing the Nexus file into BEAUTi "number of taxa does not match NTAX field". (Taxa with spaces are considered two taxa) Oddly, the underscore characters in the taxa names are properly included in the nexus file below, adjacent to where the sequences are listed.

This seems to be a problem upon import because the underscores are gone in the alignment right after I import the fasta file.

I am using MEGA version 10.2.2 on Linux.
Click Align button and select "Edit/Build Alignment" Select "Retrieve a sequence from a file". Choose the fasta file. Underscores are removed from alignment window at this point. Exporting alignment to Nexus format or fasta format confirms this.

Creating an alignment then importing the data results in the same problem.
No tags attached.
? underscoretest.nexus (16,963) 2021-01-03 13:04
https://megasoftware.net/mantis_bt/
Issue History
2021-01-03 13:04guestNew Issue
2021-01-03 13:04guestFile Added: underscoretest.nexus
2021-01-04 14:40gstecherNote Added: 0004535
2021-01-04 14:40gstecherStatusnew => resolved
2021-01-04 14:40gstecherResolutionopen => fixed
2021-01-04 14:40gstecherAssigned To => gstecher

Notes
(0004535)
gstecher   
2021-01-04 14:40   
fixed in 10.2.3 and 11.0.1