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 issue #401 #412

Merged
merged 3 commits into from
Aug 30, 2019
Merged

Fixed issue #401 #412

merged 3 commits into from
Aug 30, 2019

Conversation

josephhearnshaw
Copy link
Contributor

Sorts correctly & enables genes without evidence to show.

Works correctly, apologies for reformatting causing the large diff. Changes in OndexServiceProvider is in line 705, method getScoredGenesMap - see Public Map<ONDEXConcept, Double> getScoredGenesMap(Map<ONDEXConcept, Float> hit2score)

Altered use of ValueComparator and TreeMap to simply sorting via map stream - see below:

sortedCandidates = scoredCandidates .entrySet() .stream() .sorted(Collections.reverseOrder(Map.Entry.comparingByValue())) .collect( toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e2, LinkedHashMap::new)); // Sort the candidate values

Also ensured that the user genes are added back to the geneMap

Sorts correctly & enables genes without evidence to show
@KeywanHP KeywanHP requested a review from mdonepudi August 29, 2019 12:17
Noted that network legend doesn't update with menu option; fixed this.
@AjitPS
Copy link
Collaborator

AjitPS commented Aug 30, 2019

thoughts on this @mdonepudi , we can pull this to close issue #401 if it doesn't conflict at your end.. would be good to update dockerhub too with this and location fix.

@KeywanHP KeywanHP requested review from marco-brandizi and removed request for mdonepudi August 30, 2019 20:54
@marco-brandizi marco-brandizi merged commit 25f0079 into Rothamsted:master Aug 30, 2019
AjitPS added a commit that referenced this pull request Feb 23, 2021
backend refactoring and builds
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.

3 participants