-
Notifications
You must be signed in to change notification settings - Fork 305
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
Conversation
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. |
There was a problem hiding this comment.
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
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
concensus
→ consensus
* 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.
Addressed typos and rebased. |
Test PASSed. |
Thank you, @fnothaft! |
org.bdgenomics.adam.models.Concensus
toorg.bdgenomics.adam.algorithms.consensus.Consensus
.org.bdgenomics.adam.algorithms.consensus
package private toorg.bdgenomics.adam
, along withIndelTable
andNormalizationUtils
.org.bdgenomics.adam.algorithms.consensus.Consensus
.Consensus
method to useReferenceRegion
instead ofstart
/end
to check overlap bounds. This led to the discovery of an off by one error inConsensusSuite
, which was then fixed.