Compare commits

..

No commits in common. "587c2e753ac7275b58b7c1b0fb994cc753896f36" and "3c5e934c7cdf704203cc83a2340785344e83d571" have entirely different histories.

5 changed files with 3 additions and 32 deletions

1
.gitignore vendored
View File

@ -212,4 +212,3 @@ pyrightconfig.json
# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)
output

26
.vscode/launch.json vendored
View File

@ -1,26 +0,0 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "bmlsa.cli",
"args": [
"-I",
"id",
"-S",
"sequence",
"-B",
"BLASTp",
"${workspaceFolder}/tests/resources/SARS_CoV-2_genes.csv",
"${workspaceFolder}/tests/resources/NC_045512_coding.fasta",
"${workspaceFolder}/output"
],
"justMyCode": true
}
]
}

1
Jenkinsfile vendored
View File

@ -27,7 +27,6 @@ pipeline {
steps {
sh "pip install dist/*.whl --force-reinstall"
sh "bmlsa -h"
sh "bmlsa -I id -S sequence -B BLASTp tests/resources/SARS_CoV-2_genes.csv tests/resources/NC_045512_coding.fasta /output/"
}
}
stage("archive") {

View File

@ -28,7 +28,7 @@ def run(args):
'"--alignment-mode", or, at least "--behave-as". See help (-h) for '
"more information."
)
exit(3)
exit(1)
queries = read_annotations_from_csv(
args.annotations,
args.id_header,
@ -41,7 +41,7 @@ def run(args):
if args.behave_as and args.behave_as not in DEFAULT_ALIGNMENT_PARAMETERS:
logger.error('"--behave-as" received bad option.')
exit(3)
exit(1)
scoring_parameter = (
{
@ -56,7 +56,6 @@ def run(args):
else DEFAULT_ALIGNMENT_PARAMETERS[args.behave_as]
)
os.makedirs(args.output, exist_ok=True)
with open(args.sequence, "r") as sequence_fd:
for sequence in SeqIO.parse(sequence_fd, "fasta"):
aligned_annotations = align_many_to_one_ssw(

View File

@ -14,7 +14,7 @@ class AlignedSequence:
self._end = end
self._id = id
self._name = name
self._sequence = sequence.replace("\n", "").replace("\r", "")
self._sequence = sequence
self._score = score
@property