-
Notifications
You must be signed in to change notification settings - Fork 21
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
EVA-3605 Add Contig translation service #178
Conversation
eva-server/src/main/java/uk/ac/ebi/eva/server/ws/RegionWSServer.java
Outdated
Show resolved
Hide resolved
eva-server/src/main/java/uk/ac/ebi/eva/server/ws/RegionWSServerV2.java
Outdated
Show resolved
Hide resolved
eva-server/src/main/java/uk/ac/ebi/eva/server/ws/contigalias/ContigAliasService.java
Show resolved
Hide resolved
@@ -56,6 +61,8 @@ public GA4GHBeaconResponse beacon(@RequestParam("referenceName") String chromoso | |||
@RequestParam("start") long start, | |||
@RequestParam("allele") String allele, | |||
@RequestParam("datasetIds") List<String> studies, | |||
@RequestParam(name = "contigNamingConvention", required = false) | |||
ContigNamingConvention contigNamingConvention, |
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.
Did we decide to change the GA4GH endpoints as well? Asking because I'm just not sure what the spec allows...
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.
The specs allow to have more parameters but not mandatory.
In any case we're not compliant with the spec already and the specs have moved on to Beacon v2.
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.
It looks good
public String translateContigFromInsdc(String genbankContig, ContigNamingConvention contigNamingConvention) { | ||
if (contigNamingConvention == null) { | ||
return ""; | ||
} | ||
String url = contigAliasUrl + CONTIG_ALIAS_CHROMOSOMES_GENBANK_ENDPOINT + genbankContig; |
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.
I know the endpoint is still called genbank but we should change it.
This is the INSDC accession and genbank can also issue a contig name that might be different from ENA's
public String translateContigFromInsdc(String genbankContig, ContigNamingConvention contigNamingConvention) { | |
if (contigNamingConvention == null) { | |
return ""; | |
} | |
String url = contigAliasUrl + CONTIG_ALIAS_CHROMOSOMES_GENBANK_ENDPOINT + genbankContig; | |
public String translateContigFromInsdc(String insdcContig, ContigNamingConvention contigNamingConvention) { | |
if (contigNamingConvention == null) { | |
return ""; | |
} | |
String url = contigAliasUrl + CONTIG_ALIAS_CHROMOSOMES_GENBANK_ENDPOINT + insdcContig; |
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.
updated
@@ -56,6 +61,8 @@ public GA4GHBeaconResponse beacon(@RequestParam("referenceName") String chromoso | |||
@RequestParam("start") long start, | |||
@RequestParam("allele") String allele, | |||
@RequestParam("datasetIds") List<String> studies, | |||
@RequestParam(name = "contigNamingConvention", required = false) | |||
ContigNamingConvention contigNamingConvention, |
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.
The specs allow to have more parameters but not mandatory.
In any case we're not compliant with the spec already and the specs have moved on to Beacon v2.
No description provided.