Skip to content

Commit

Permalink
Merge branch 'alpha' into SCRUM-4509
Browse files Browse the repository at this point in the history
  • Loading branch information
VarunReddy1111 authored Nov 8, 2024
2 parents 531d8b6 + e640b3c commit f8d6832
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> ids = codingSequenceDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> ids = exonDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> ids = transcriptDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.CODING_SEQUENCE_ASSOCIATION_SUBJECT_DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.CODING_SEQUENCE_ASSOCIATION_SUBJECT_TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> associationIds = codingSequenceGenomicLocationAssociationDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.EXON_ASSOCIATION_SUBJECT_DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.EXON_ASSOCIATION_SUBJECT_TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> associationIds = exonGenomicLocationAssociationDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.GENE_ASSOCIATION_SUBJECT_DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.GENE_ASSOCIATION_SUBJECT_TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> associationIds = geneGenomicLocationAssociationDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.TRANSCRIPT_ASSOCIATION_SUBJECT_DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.TRANSCRIPT_ASSOCIATION_SUBJECT_TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> associationIds = transcriptCodingSequenceAssociationDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.TRANSCRIPT_ASSOCIATION_SUBJECT_DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.TRANSCRIPT_ASSOCIATION_SUBJECT_TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> associationIds = transcriptExonAssociationDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.TRANSCRIPT_ASSOCIATION_SUBJECT_DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.TRANSCRIPT_ASSOCIATION_SUBJECT_TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> associationIds = transcriptGeneAssociationDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected void init() {
public List<Long> getIdsByDataProvider(BackendBulkDataProvider dataProvider) {
Map<String, Object> params = new HashMap<>();
params.put(EntityFieldConstants.TRANSCRIPT_ASSOCIATION_SUBJECT_DATA_PROVIDER, dataProvider.sourceOrganization);
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD")) {
if (StringUtils.equals(dataProvider.sourceOrganization, "RGD") || StringUtils.equals(dataProvider.sourceOrganization, "XB")) {
params.put(EntityFieldConstants.TRANSCRIPT_ASSOCIATION_SUBJECT_TAXON, dataProvider.canonicalTaxonCurie);
}
List<Long> associationIds = transcriptGenomicLocationAssociationDAO.findIdsByParams(params);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static Map<String, String> getAttributes(Gff3DTO dto, BackendBulkDataProv
}

// Ensure identifiers have MOD prefix
for (String key : List.of("ID", "Parent")) {
for (String key : List.of("ID", "Parent", "gene_id")) {
if (attributes.containsKey(key)) {
String idsString = attributes.get(key);
if (StringUtils.equals(dataProvider.sourceOrganization, "WB")) {
Expand Down

0 comments on commit f8d6832

Please sign in to comment.