Skip to content

Commit

Permalink
Merge pull request #193 from Clinical-Genomics/revert-192-add-pubmlst…
Browse files Browse the repository at this point in the history
…-utils

Revert "fix: Add pubmlst utils"
  • Loading branch information
karlnyr authored Jan 8, 2025
2 parents fa80486 + e7aa6bb commit 62469e8
Show file tree
Hide file tree
Showing 16 changed files with 750 additions and 1,023 deletions.
23 changes: 11 additions & 12 deletions configExample.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,24 @@
"project": "production",
"type": "core"
},
"regex": {

"regex": {
"mail_recipient": "username@suffix.com",
"_comment": "File finding patterns. Only single capture group accepted (for reverse/forward identifier)",
"file_pattern": "\\w{8,12}_\\w{8,10}(?:-\\d+)*_L\\d_(?:R)*(\\d{1}).fastq.gz",
"_comment": "Organisms recognized enough to be considered stable",
"verified_organisms": []
},

"_comment": "Folders",
"folders": {
"folders": {
"_comment": "Root folder for ALL output",
"results": "/tmp/MLST/results/",
"_comment": "Report collection folder",
"reports": "/tmp/MLST/reports/",
"_comment": "Log file position and name",
"log_file": "/tmp/microsalt.log",

"_comment": "Root folder for input fasta sequencing data",
"seqdata": "/tmp/projects/",
"_comment": "ST profiles. Each ST profile file under 'profiles' have an identicial folder under references",
Expand All @@ -32,18 +35,18 @@
"_comment": "Resistances. Commonly from resFinder",
"resistances": "/tmp/MLST/references/resistances",
"_comment": "Download path for NCBI genomes, for alignment usage",
"genomes": "/tmp/MLST/references/genomes",
"_comment": "PubMLST credentials",
"pubmlst_credentials": "/tmp/MLST/credentials"
"genomes": "/tmp/MLST/references/genomes"
},

"_comment": "Database/Flask configuration",
"database": {
"SQLALCHEMY_DATABASE_URI": "sqlite:////tmp/microsalt.db",
"SQLALCHEMY_TRACK_MODIFICATIONS": "False",
"DEBUG": "True"
},

"_comment": "Thresholds for Displayed results",
"threshold": {
"threshold": {
"_comment": "Typing thresholds",
"mlst_id": 100,
"mlst_novel_id": 99.5,
Expand All @@ -69,15 +72,11 @@
"bp_50x_warn": 50,
"bp_100x_warn": 20
},

"_comment": "Genologics temporary configuration file",
"genologics": {
"baseuri": "https://lims.facility.se/",
"username": "limsuser",
"password": "mypassword"
},
"_comment": "PubMLST credentials",
"pubmlst": {
"client_id": "",
"client_secret": ""
}
}
}
7 changes: 0 additions & 7 deletions microSALT/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,8 @@
app.config["folders"] = preset_config.get("folders", {})

# Ensure PubMLST configuration is included

app.config["pubmlst"] = preset_config.get("pubmlst", {
"client_id": "",
"client_secret": ""
})

app.config["pubmlst"] = preset_config.get("pubmlst", {"client_id": "", "client_secret": ""})


# Add extrapaths to config
preset_config["folders"]["expec"] = os.path.abspath(
os.path.join(pathlib.Path(__file__).parent.parent, "unique_references/ExPEC.fsa")
Expand Down
Empty file.
106 changes: 0 additions & 106 deletions microSALT/utils/pubmlst/authentication.py

This file was deleted.

116 changes: 0 additions & 116 deletions microSALT/utils/pubmlst/client.py

This file was deleted.

79 changes: 0 additions & 79 deletions microSALT/utils/pubmlst/constants.py

This file was deleted.

Loading

0 comments on commit 62469e8

Please sign in to comment.