Skip to content

Commit

Permalink
logged a bit more
Browse files Browse the repository at this point in the history
cleaned up test by removing unuseful comments
  • Loading branch information
ChemMitch committed Jan 24, 2024
1 parent ebcfd4b commit fae4b7b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -655,13 +655,6 @@ public void proteinMolFormulaDisulfidesTest() {
protein.subunits.add(subunit1);
subunit1.sequence =
"CMMC";
// M C5H11NO2S
// C C3H7NO2S
// expected formula for entire thing before disulfides: (C (5*2 + 3*2) H (11*2 + 7*2 -2) N (2 + 2) O (2+2*2 -1)
// C 16 H (22+14-3*2) N 4 O (2*2 +2*2 - 3)
// C 16 H 30 N 4 O 5
// -2 H for one disulfide
// C16H28N4O5S4

DisulfideLink disulfideLink = new DisulfideLink();
List<Site> sitesDisulfide = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ public static MolecularWeightAndFormulaContribution generateProteinWeightAndForm
total, makeFormulaFromMap(formulaCounts), disulfideContribution));
total -= disulfideContribution;
int numberOfHydrogensToRemove = getNumberOfHydrogensToRemoveForDisulfides(ps.protein);
log.warn("numberOfHydrogensToRemove: {}", numberOfHydrogensToRemove);
Map<String, SingleThreadCounter> formulaMapWithContrib[] =new Map[1];
formulaMapWithContrib[0]=formulaCounts;
if (ps.hasModifications() && ps.modifications.structuralModifications.size() > 0) {
Expand Down

0 comments on commit fae4b7b

Please sign in to comment.