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

EVA-3605 Add Contig translation service #178

Merged
merged 12 commits into from
Sep 16, 2024

Conversation

nitin-ebi
Copy link
Contributor

No description provided.

@nitin-ebi nitin-ebi self-assigned this Sep 5, 2024
@@ -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,
Copy link
Contributor

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...

Copy link
Member

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.

Copy link
Member

@tcezard tcezard left a comment

Choose a reason for hiding this comment

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

It looks good

Comment on lines 111 to 115
public String translateContigFromInsdc(String genbankContig, ContigNamingConvention contigNamingConvention) {
if (contigNamingConvention == null) {
return "";
}
String url = contigAliasUrl + CONTIG_ALIAS_CHROMOSOMES_GENBANK_ENDPOINT + genbankContig;
Copy link
Member

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

Suggested change
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;

Copy link
Contributor Author

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,
Copy link
Member

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.

@nitin-ebi nitin-ebi merged commit fe26df2 into EBIvariation:master Sep 16, 2024
1 check passed
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