2 Commits

Author SHA1 Message Date
2ea2f63f29 Pipeline will now only publish to git.reslate.systems on main branch
All checks were successful
autoBIGS.engine/pipeline/tag This commit looks good
autoBIGS.engine/pipeline/head This commit looks good
2025-02-26 06:31:53 +00:00
17932ecd71 Alleles IDs obtained from one sequence is named the ID of that sequence
Some checks failed
autoBIGS.engine/pipeline/head There was a failure building this commit
Instead of generating a tuple comprised of the one sequence ID repeated
2025-02-26 06:15:56 +00:00
2 changed files with 5 additions and 1 deletions

4
Jenkinsfile vendored
View File

@@ -35,6 +35,10 @@ pipeline {
stage("publish") { stage("publish") {
parallel { parallel {
stage ("git.reslate.systems") { stage ("git.reslate.systems") {
when {
branch '**/main'
}
environment { environment {
CREDS = credentials('username-password-rs-git') CREDS = credentials('username-password-rs-git')
} }

View File

@@ -127,7 +127,7 @@ class RemoteBIGSdbMLSTProfiler(BIGSdbMLSTProfiler):
raise ValueError("Passed in no alleles.") raise ValueError("Passed in no alleles.")
result_mlst_profile = MLSTProfile(allele_set, scheme_fields_returned["ST"], scheme_fields_returned["clonal_complex"]) result_mlst_profile = MLSTProfile(allele_set, scheme_fields_returned["ST"], scheme_fields_returned["clonal_complex"])
if len(names_list) > 0: if len(names_list) > 0:
result_mlst_profile = NamedMLSTProfile(str(tuple(names_list)), result_mlst_profile) result_mlst_profile = NamedMLSTProfile(str(tuple(names_list)) if len(set(names_list)) > 1 else names_list[0], result_mlst_profile)
return result_mlst_profile return result_mlst_profile
async def profile_string(self, query_sequence_strings: Iterable[Union[NamedString, str]]) -> Union[NamedMLSTProfile, MLSTProfile]: async def profile_string(self, query_sequence_strings: Iterable[Union[NamedString, str]]) -> Union[NamedMLSTProfile, MLSTProfile]: