Skip to content

Improve comments in code #31

@jonblack

Description

@jonblack

There are a lot of comments but they give much useful information. For example:

  ///
  /// Holds a single residue codon, and a list of its features
  ///
  struct Residue {
    Residue(std::string codon, std::vector<std::string> features) 
      : codon(codon),
        features(features) {}
    Residue(std::string codon) : codon(codon) {}
    Residue(){};

    std::string codon;
    std::vector<std::string> features;
  };

I recall you explaining the each "residue" in your fasta format has 3 values per residue. Is that what you mean by "codon" here? An example would help.

Another example:

  ///
  /// takes an alignment and residues to remove; returns an alignment with
  /// removed residues
  ///
  std::vector<fasta::SequenceList> move_residues(
      const std::vector<fasta::SequenceList>& alignment,
      const std::vector<MoveData>& move_data);

The function is called move_residues but the comment mentions removing. What I totally miss is why residues need moving or removing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions