Skip to content

Commit

Permalink
Fixed merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkonecn committed Oct 14, 2024
2 parents 5ebc9a8 + f4e870b commit 5451d14
Show file tree
Hide file tree
Showing 30 changed files with 986 additions and 366 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/after-branch-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ jobs:
- name: 'Setup Java'
uses: actions/setup-java@v4
with:
java-version: 8
distribution: 'temurin'
java-version: 17

- name: 'Get Current Version Level'
id: version_level
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>org.mskcc.oncokb.curation</groupId>
<artifactId>oncokb-curation</artifactId>
<version>2.0.23</version>
<version>2.0.25</version>
<packaging>jar</packaging>
<name>OncoKB Curation</name>
<description>Description for oncokb-curation</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public void importOncoKbSequence() throws ApiException, IOException {
@PostConstruct
public void initFirebase() throws IOException {
if (applicationProperties.getFirebase().isEnabled()) {
String serviceAccountPath = applicationProperties.getFrontend().getFirebase().getServiceAccountCredentialsPath();
String serviceAccountPath = applicationProperties.getFirebase().getServiceAccountCredentialsPath();
if (serviceAccountPath == null) {
log.error("application.firebase.service-account-credentials-path is not specified");
return;
Expand All @@ -113,7 +113,7 @@ public void initFirebase() throws IOException {
try {
FirebaseOptions options = FirebaseOptions.builder()
.setCredentials(GoogleCredentials.fromStream(serviceAccountFileUrl.openStream()))
.setDatabaseUrl(applicationProperties.getFrontend().getFirebase().getDatabaseUrl())
.setDatabaseUrl(applicationProperties.getFirebase().getDatabaseUrl())
.build();

FirebaseApp.initializeApp(options);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public AlterationAnnotationStatus annotateAlteration(ReferenceGenome referenceGe

// update associated genes
Set<Gene> genes = alteration.getGenes();
if (parsedAlteration.getType().equals(STRUCTURAL_VARIANT) && !parsedAlteration.getGenes().isEmpty()) {
if (STRUCTURAL_VARIANT.equals(parsedAlteration.getType()) && !parsedAlteration.getGenes().isEmpty()) {
genes = parsedAlteration.getGenes();
}
Set<Gene> annotatedGenes = genes
Expand Down Expand Up @@ -230,7 +230,8 @@ public AlterationAnnotationStatus annotateAlteration(ReferenceGenome referenceGe
) {
String refRe = String.valueOf(canonicalSequenceOptional.orElseThrow().getSequence().charAt(alteration.getStart() - 1));
if (!StringUtils.isEmpty(refRe)) {
if (StringUtils.isEmpty(alteration.getRefResidues())) {
// only set the reference AA when the alteration happens on one position
if (StringUtils.isEmpty(alteration.getRefResidues()) && alteration.getStart().equals(alteration.getEnd())) {
alteration.setRefResidues(refRe);
} else {
// If The AA in alteration is differed from the canonical transcript, and it's not X, we give warning
Expand Down
Loading

0 comments on commit 5451d14

Please sign in to comment.