-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): export revocation versions to SILO, make sure all meta…
- Loading branch information
1 parent
7857907
commit 53b4f92
Showing
20 changed files
with
465 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
backend/src/main/kotlin/org/loculus/backend/service/submission/EmptyProcessedDataProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package org.loculus.backend.service.submission | ||
|
||
import com.fasterxml.jackson.databind.node.NullNode | ||
import org.loculus.backend.api.Organism | ||
import org.loculus.backend.api.ProcessedData | ||
import org.loculus.backend.config.BackendConfig | ||
import org.springframework.stereotype.Component | ||
|
||
@Component | ||
class EmptyProcessedDataProvider(private val backendConfig: BackendConfig) { | ||
fun provide(organism: Organism): ProcessedData { | ||
val (schema, referenceGenomes) = backendConfig.getInstanceConfig(organism) | ||
|
||
val nucleotideSequences = referenceGenomes.nucleotideSequences.map { it.name }.associateWith { null } | ||
return ProcessedData( | ||
metadata = schema.metadata.map { it.name }.associateWith { NullNode.instance }, | ||
unalignedNucleotideSequences = nucleotideSequences, | ||
alignedNucleotideSequences = nucleotideSequences, | ||
alignedAminoAcidSequences = referenceGenomes.genes.map { it.name }.associateWith { null }, | ||
nucleotideInsertions = referenceGenomes.nucleotideSequences.map { it.name }.associateWith { emptyList() }, | ||
aminoAcidInsertions = referenceGenomes.genes.map { it.name }.associateWith { emptyList() }, | ||
) | ||
} | ||
} |
File renamed without changes.
Oops, something went wrong.