xflouris / libpll

Phylogenetic Likelihood Library
GNU Affero General Public License v3.0
26 stars 6 forks source link

Rename pll_msa_t fields "count" and "length" to "taxa" and "sites" respectively #113

Closed pierrebarbera closed 6 years ago

pierrebarbera commented 7 years ago

Current definition:

/* multiple sequence alignment */
typedef struct pll_msa_s
{
  int count;
  int length;

  char ** sequence;
  char ** label;
} pll_msa_t;

count and length are completely ambiguous. Renaming them to taxa and sites (or equivalent) would clear up confusion.

Side note: I think their type should be brought into line with the rest of pll also (unsigned int, maybe even long)

pierrebarbera commented 7 years ago

Also lets pluralize sequence and label :)

amkozlov commented 7 years ago

|count| and |length| are completely ambiguous. Renaming them to |taxa| and |sites| (or equivalent) would clear up confusion.

I guess |count| [of sequences] and |length| [of sequences] are still a bit more general, e.g. sequences are not necessarily taxa, strictly speaking - think EPA reads etc.

Side note: I think their type should be brought into line with the rest of pll also (|unsigned int|, maybe even |long|)

Yes, it must be unsigned long, we already agreed upon it with Tomas.

stamatak commented 7 years ago

On 21.09.2016 15:14, Alexey Kozlov wrote:

|count| and |length| are completely ambiguous. Renaming them to |taxa| and |sites| (or equivalent) would clear up confusion.

I guess |count| [of sequences] and |length| [of sequences] are still a bit more general, e.g. sequences are not necessarily taxa, strictly speaking - think EPA reads etc.

up to you guys to decide

Side note: I think their type should be brought into line with the rest of pll also (|unsigned int|, maybe even |long|)

Yes, it must be unsigned long, we already agreed upon it with Tomas.

yes :-)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/xflouris/libpll/issues/113#issuecomment-248608505, or mute the thread https://github.com/notifications/unsubscribe-auth/AA1w-rsrNhN1oOK46k75ZTTUqbr7Xo9Wks5qsS2-gaJpZM4KCwZx.

Alexandros (Alexis) Stamatakis

Research Group Leader, Heidelberg Institute for Theoretical Studies Full Professor, Dept. of Informatics, Karlsruhe Institute of Technology Adjunct Professor, Dept. of Ecology and Evolutionary Biology, University of Arizona at Tucson

www.exelixis-lab.org