Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation cleanup and minor refactor on the consensus package. #1055

Merged
merged 1 commit into from
Jul 6, 2016

Conversation

fnothaft
Copy link
Member

  • Moved org.bdgenomics.adam.models.Concensus to org.bdgenomics.adam.algorithms.consensus.Consensus.
  • Made all classes in org.bdgenomics.adam.algorithms.consensus package private to org.bdgenomics.adam, along with IndelTable and NormalizationUtils.
  • Fleshed out documentation for all classes and methods in org.bdgenomics.adam.algorithms.consensus.Consensus.
  • Refactored Consensus method to use ReferenceRegion instead of start/end to check overlap bounds. This led to the discovery of an off by one error in ConsensusSuite, which was then fixed.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1283/
Test PASSed.

* @note This method can only generate a single consensus from a read. Reads
* with more than one INDEL operator are ignored.
*
* @param sequence Read sequence.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@param comments don't need to be full sentences

@heuermh
Copy link
Member

heuermh commented Jun 27, 2016

Left some comments regarding doc comment style.

The style I suggest is more in line with other major Java code bases, such as Apache Commons and Google Guava. It does not match the style of comments already in the ADAM code base, so perhaps the general open source principle of matching the style already in the code should win.

@@ -68,7 +76,16 @@ class ConsensusGeneratorFromReads extends ConsensusGenerator {
}

/**
* Generates concensus sequences from reads with indels.
* Generates concensus sequences from reads with INDELs.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

concensusconsensus

* Moved `org.bdgenomics.adam.models.Concensus` to
  `org.bdgenomics.adam.algorithms.consensus.Consensus`.
* Made all classes in `org.bdgenomics.adam.algorithms.consensus` package private
  to `org.bdgenomics.adam`, along with `IndelTable` and `NormalizationUtils`.
* Fleshed out documentation for all classes and methods in
  `org.bdgenomics.adam.algorithms.consensus.Consensus`.
* Refactored `Consensus` method to use `ReferenceRegion` instead of
  `start`/`end` to check overlap bounds. This led to the discovery of an off by
  one error in `ConsensusSuite`, which was then fixed.
@fnothaft
Copy link
Member Author

fnothaft commented Jul 4, 2016

Addressed typos and rebased.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/ADAM-prb/1297/
Test PASSed.

@heuermh heuermh merged commit 9a4a1b7 into bigdatagenomics:master Jul 6, 2016
@heuermh
Copy link
Member

heuermh commented Jul 6, 2016

Thank you, @fnothaft!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants