Skip to main content
5 votes
Accepted

Convert Symmetrix Matrix into Lower Triangular Matrix

NumPy has a convenient built-in function for accessing the lower-triangular or upper-trianglar entries of an array. To get the lower-triangular entries, you can use ...
Harry Richman's user avatar
1 vote

Converting .tsv to .meg for visualization

Note, its a while since I've used scipy and I don't fancy loading an deleting for this test ... so in the absence of pdist() the ...
M__'s user avatar
  • 13k
1 vote

MEGA11 gives the error "stop codons are found in the translated sequences", even though there are not!

The solution is very simply, MegaX will not allow any stop codons within the "translated" sequence. The reason is simple MEGAX's function is phylogenetic models with nucleotide or protein ...
M__'s user avatar
  • 13k
1 vote

Convert Symmetrix Matrix into Lower Triangular Matrix

There seems to be a scipy method that retains the lower triangle but with the 0s. See: https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.tril.html#scipy.sparse.tril
Ram RS's user avatar
  • 2,498
1 vote
Accepted

MegaX Pairwise Matrix Error

Criteria, matrix. There must be a blank line between the last sample name and the start of the matrix. Also better to use #mega. The tree from the matrix in the question is. It's simply the carriage ...
M__'s user avatar
  • 13k

Only top scored, non community-wiki answers of a minimum length are eligible