New answers tagged

1 vote

Permutations of 4 amino acid sequence oligopeptide

Here's a bash solution using brace expansion and the single-letter codes for the 20 common amino acids: ...
user avatar
  • 463
2 votes

Permutations of 4 amino acid sequence oligopeptide

The Python solution is here. IMO Bash definitely isn't a good solution for this calculation. ...
user avatar
  • 7,721
1 vote

Improving list speed: glycosylation example

Huge thanks to @Chris_Rands, this solution increases runtime by ~ 0.5 seconds uniformly across all coded solutions, so this code has a runtime of just over 3 seconds runtime on the benchmark machine. ...
user avatar
  • 7,721
2 votes
Accepted

Improving list speed: glycosylation example

I'd start by saying that Python is inherently slow and this feels like a case of perhaps unnecessary optimisation. With that in mind here are my suggested (untested) optimisations of @gaspanic code: <...
user avatar
  • 3,527
1 vote

Parsing text within a taxonomy.csv file

The pandas solution is here: ...
user avatar
  • 7,721
3 votes
Accepted

reverse translation from amino acid string to DNA strings

Given the table above the solution for CYCLE is: ...
user avatar
  • 7,721
3 votes

RNA strings and amino acid string

I don't quite get the question but here's the answer and the code ...
user avatar
  • 7,721
1 vote
Accepted

PCA analysis of samples in a phylogenetic tree

There appear two basic issues here: The PCA would represent arbitrary lineage designation not a genetic quantification. The PCA will weight the first, second ... fourth position equally, i.e. it is ...
user avatar
  • 7,721
1 vote

R ggtree apply colors to branches with multiple colors

See change colors or line types of arbitrarily selected branches in ggtree documentation for details. Here's my R code for applying a color to a specific branch in <...
user avatar

Top 50 recent answers are included