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

Fixed issues around reduced format #41

Merged
merged 10 commits into from Jun 14, 2017
Merged

Fixed issues around reduced format #41

merged 10 commits into from Jun 14, 2017

Conversation

pwrose
Copy link
Collaborator

@pwrose pwrose commented Jun 13, 2017

No description provided.

declared List<Entity> entities transient to avoid serializing temporary
data structures, added setMmtfProducer method.
comprehensive test for the reduced data structure.
@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 81.266% when pulling b2777aa on pwrose:master into d4cb41e on rcsb:master.

Copy link
Member

@josemduarte josemduarte left a comment

Choose a reason for hiding this comment

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

Looks good! I've commented on a couple of issues. Specially it'd be good to have testing on other edge cases.

else if (chainType.equals("non-polymer")){
for(int i=0; i<structureDataInterface.getNumAtomsInGroup(groupType); i++){
outList.add(i);
} else if (! structure.getGroupName(groupIndex).equals("HOH")){
Copy link
Member

Choose a reason for hiding this comment

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

How about deuterated water?

public void test() throws IOException, ParseException {
StructureDataInterface full = getDefaultFullData();
StructureDataInterface reduced = ReducedEncoder.getReduced(getDefaultFullData());
compareFullVsReduced(full.getStructureId(), full, reduced);
Copy link
Member

Choose a reason for hiding this comment

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

How about including a few more cases here, not only 4cup. E.g. structure with nucleotides, structure with water marked as non-polymer, structure with alt conformations, etc...

@coveralls
Copy link

Coverage Status

Coverage increased (+0.3%) to 81.277% when pulling d55ac03 on pwrose:master into d4cb41e on rcsb:master.

@josemduarte
Copy link
Member

Thanks for the changes @pwrose ! One issue now, could you check why the tests are not passing?

By the way, I forgot to mention yesterday that a possible way to do the tests is by using https://github.com/rcsb/mmtf/tree/master/test-suite

@coveralls
Copy link

Coverage Status

Coverage increased (+1.0%) to 81.904% when pulling 204ca00 on pwrose:master into d4cb41e on rcsb:master.

@pwrose
Copy link
Collaborator Author

pwrose commented Jun 13, 2017 via email

@coveralls
Copy link

Coverage Status

Coverage increased (+1.0%) to 81.904% when pulling 7e7d078 on pwrose:master into d4cb41e on rcsb:master.

@josemduarte josemduarte merged commit 282c393 into rcsb:master Jun 14, 2017
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