Skip to content

Commit

Permalink
Fix cleanup bug for XB GFF loads
Browse files Browse the repository at this point in the history
  • Loading branch information
markquintontulloch committed Nov 7, 2024
1 parent 9172255 commit 4234159
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 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

0 comments on commit 4234159

Please sign in to comment.