ssi-analysis-result-parsers 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/02_template.ipynb.
2
+
3
+ # %% auto 0
4
+ __all__ = []
5
+
6
+ # %% ../nbs/02_template.ipynb 3
7
+ # standard libs
8
+ import os
9
+ import re
10
+
11
+ # Common to template
12
+ # add into settings.ini, requirements, package name is python-dotenv, for conda build ensure `conda config --add channels conda-forge`
13
+ import dotenv # for loading config from .env files, https://pypi.org/project/python-dotenv/
14
+ import envyaml # Allows to loads env vars into a yaml file, https://github.com/thesimj/envyaml
15
+ import fastcore # To add functionality related to nbdev development, https://github.com/fastai/fastcore/
16
+ from fastcore import (
17
+ test,
18
+ )
19
+ from fastcore.script import (
20
+ call_parse,
21
+ ) # for @call_parse, https://fastcore.fast.ai/script
22
+ import json # for nicely printing json and yaml
23
+
24
+ # import functions from core module (optional, but most likely needed).
25
+ from . import core
26
+
27
+ # Project specific libraries
@@ -0,0 +1,109 @@
1
+ Metadata-Version: 2.4
2
+ Name: ssi_analysis_result_parsers
3
+ Version: 0.0.1
4
+ Summary: TODO
5
+ Home-page: https://github.com/thej-ssi/ssi_analysis_result_parsers
6
+ Author: thej-ssi
7
+ Author-email: thej@ssi.dk
8
+ License: MIT License
9
+ Keywords: nbdev jupyter notebook python
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Natural Language :: English
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Programming Language :: Python :: 3.12
17
+ Classifier: License :: OSI Approved :: MIT License
18
+ Requires-Python: >=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: fastcore
22
+ Requires-Dist: python_dotenv
23
+ Requires-Dist: envyaml
24
+ Requires-Dist: pandas
25
+ Requires-Dist: black
26
+ Provides-Extra: dev
27
+ Dynamic: author
28
+ Dynamic: author-email
29
+ Dynamic: classifier
30
+ Dynamic: description
31
+ Dynamic: description-content-type
32
+ Dynamic: home-page
33
+ Dynamic: keywords
34
+ Dynamic: license
35
+ Dynamic: license-file
36
+ Dynamic: provides-extra
37
+ Dynamic: requires-dist
38
+ Dynamic: requires-python
39
+ Dynamic: summary
40
+
41
+ # ssi_analysis_result_parsers
42
+
43
+
44
+ <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->
45
+
46
+ This file will become your README and also the index of your
47
+ documentation.
48
+
49
+ ## Developer Guide
50
+
51
+ If you are new to using `nbdev` here are some useful pointers to get you
52
+ started.
53
+
54
+ ### Install ssi_analysis_result_parsers in Development mode
55
+
56
+ ``` sh
57
+ # make sure ssi_analysis_result_parsers package is installed in development mode
58
+ $ pip install -e .
59
+
60
+ # make changes under nbs/ directory
61
+ # ...
62
+
63
+ # compile to have changes apply to ssi_analysis_result_parsers
64
+ $ nbdev_prepare
65
+ ```
66
+
67
+ ## Usage
68
+
69
+ ### Installation
70
+
71
+ Install latest from the GitHub
72
+ [repository](https://github.com/$GIT_USER_NAME/ssi_analysis_result_parsers):
73
+
74
+ ``` sh
75
+ $ pip install git+https://github.com/$GIT_USER_NAME/ssi_analysis_result_parsers.git
76
+ ```
77
+
78
+ or from
79
+ [conda](https://anaconda.org/$GIT_USER_NAME/ssi_analysis_result_parsers)
80
+
81
+ ``` sh
82
+ $ conda install -c $GIT_USER_NAME ssi_analysis_result_parsers
83
+ ```
84
+
85
+ or from [pypi](https://pypi.org/project/ssi_analysis_result_parsers/)
86
+
87
+ ``` sh
88
+ $ pip install ssi_analysis_result_parsers
89
+ ```
90
+
91
+ ### Documentation
92
+
93
+ Documentation can be found hosted on this GitHub
94
+ [repository](https://github.com/$GIT_USER_NAME/ssi_analysis_result_parsers)’s
95
+ [pages](https://$GIT_USER_NAME.github.io/ssi_analysis_result_parsers/).
96
+ Additionally you can find package manager specific guidelines on
97
+ [conda](https://anaconda.org/$GIT_USER_NAME/ssi_analysis_result_parsers)
98
+ and [pypi](https://pypi.org/project/ssi_analysis_result_parsers/)
99
+ respectively.
100
+
101
+ ## How to use
102
+
103
+ Fill me in please! Don’t forget code examples:
104
+
105
+ ``` python
106
+ 1+1
107
+ ```
108
+
109
+ 2
@@ -0,0 +1,21 @@
1
+ ssi_analysis_result_parsers/Legionella_parser.py,sha256=cDaBYC6UjuXLI1GGSihY6zlVFBcqYDhmhFZ5xfchSSQ,3279
2
+ ssi_analysis_result_parsers/__init__.py,sha256=sXLh7g3KC4QCFxcZGBTpG2scR7hmmBsMjq6LqRptkRg,22
3
+ ssi_analysis_result_parsers/_modidx.py,sha256=Kojwrr-9jPtuKhxTDhjhs5cn1FBm_A-U9J1AND_eujw,5159
4
+ ssi_analysis_result_parsers/blast_parser.py,sha256=Yam04LnF2-eECalVGyyq7DDq3ZYRqrQ6I8dX0Z0V8-w,7389
5
+ ssi_analysis_result_parsers/core.py,sha256=6j6mQQws-mcR2Ef7KY_9F8jenrT9a_DtGYVH-9D9rzw,10335
6
+ ssi_analysis_result_parsers/hello_world.py,sha256=jpN94sqYuNHqUbUZMCJ35qGY5iLPB_emucgnDGDUk_U,1895
7
+ ssi_analysis_result_parsers/some_string.py,sha256=JwmAXKbX_JgY8UGh4FAu5-7ZjezcAEhq4Q2B73pWp2M,923
8
+ ssi_analysis_result_parsers/config/config.default.env,sha256=Zt6bfPbVV3rYCksoebX1ruAdFgeD9wqAnKDtswhtJJM,1390
9
+ ssi_analysis_result_parsers/config/config.default.yaml,sha256=3qgUrUtQpxrzYv7WQaHsvz9dQB0RALKNU0idxv7oRqM,460
10
+ ssi_analysis_result_parsers-0.0.1.dist-info/licenses/LICENSE,sha256=p6aTb6QIfqyZ2Uux2VjV4F2zthdUSHZOjB4mfwGc7fo,1094
11
+ test_input/.DS_Store,sha256=sdTEvl9DTKPHNPYYjMqDepX7q7ZETlonk21tGEuWLao,6148
12
+ test_input/Legionella/lag-1_blast.tsv,sha256=MN5QL_iBn9gQ8VTYEcTnT0JwKgpkD8G15-QFOrSWxkU,1133
13
+ test_input/Legionella/test.sbt.tsv,sha256=ibhaH3is2dxHaABPvR2QM2HAq9bKOs1AwOTmrwSrcd8,168
14
+ test_input/blast_parser/allele_matches_test.tsv,sha256=7vfQAOxz3fKc84HtxN9eoCyQoF9G8MFd-GKH3Krw_Cs,233035
15
+ test_input/blast_parser/gene_presence_absence_test.tsv,sha256=qCvMkBC-1GuXx83RDhnGAuuBXAlIq4e_IW0rrNVn2yA,1447
16
+ test_output/output_with_sample_name.tsv,sha256=NQG7WaxczuWCCsX2a9MUxCCYpbuAirz9gw08OLdEdUo,41
17
+ ssi_analysis_result_parsers-0.0.1.dist-info/METADATA,sha256=lLlQweqBO3vbnxiQdvfIXyOJtDZjJ5Xv4D4fA4lL8Pw,2753
18
+ ssi_analysis_result_parsers-0.0.1.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
19
+ ssi_analysis_result_parsers-0.0.1.dist-info/entry_points.txt,sha256=nR2p-a6E4W1Xg7oR-f4OXXcnR7ohtT64ZdyaCPG7N7k,355
20
+ ssi_analysis_result_parsers-0.0.1.dist-info/top_level.txt,sha256=3q56bBc2Wv2a6ZQ1l_9m66vot2-Qu6tM9tDr3QQ8auM,81
21
+ ssi_analysis_result_parsers-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (78.1.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,7 @@
1
+ [console_scripts]
2
+ blast_parser_allele_matches = ssi_analysis_result_parsers.blast_parser:allele_matches
3
+ blast_parser_presence_absence = ssi_analysis_result_parsers.blast_parser:presence_absence
4
+ legionella_parser = ssi_analysis_result_parsers.Legionella_parser:legionella_parser
5
+
6
+ [nbdev]
7
+ ssi_analysis_result_parsers = ssi_analysis_result_parsers._modidx:d
@@ -0,0 +1,8 @@
1
+ The MIT License (MIT)
2
+ Copyright © 2023 Statens Serum Institut
3
+
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
5
+
6
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
7
+
8
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,8 @@
1
+ _proc
2
+ config
3
+ input
4
+ nbs
5
+ output
6
+ ssi_analysis_result_parsers
7
+ test_input
8
+ test_output
test_input/.DS_Store ADDED
Binary file
@@ -0,0 +1 @@
1
+ lag-1 contig_5 99.907 1074 1074 1 1074 4693 5766 ATGTACAATAAACTCACAGCAAGTCAAGCAGCCTACCTAAATTTTCTTCGAGGGTTTTCAGCTATAATAGTTTTGGCTGGACATACCTTATCAGGCATATCCGGGGTAATTTCATTTGGAAAACAATTGCCTTTCCAATCCTTGGCAGTAAATGCTTTTTTTTGGCTCTCTGGATTTTTGATTACGTATCATTGTATAACAAAGAAACCGTATTCATTTGTAGAATATATGATTGATCGTTTCTGCAGAATTTATGTCATTTACATTCCTGTGTTGATTTTATCAGTTTTTTTGTTAGTGGAGGCAGAGTTGGCATCAATGCCTAAACTTAAAGAGTGGATTGCTAATATTCTCATGATACAACATACTCCTTTTAATCGAATTTTTGAATTTTTACCTACTATTCCACCTTTAGCTCAAATTTCCCCATTGTGGTCAATAGCAGTTGAGTGGTGGTTATATACTTTGTTTGGGATAGCCTTTTTTTTTCATAAAAGCTCTTTTGCTACCAGGCTTATAATGAGCTTATTAATTATTCCTGCTTTGCTAGTTGCTGGATATTTCACATTAAAAGAGTATGTTGCTTTGGTATGGTTTCTGGGTTCTGGGTGCGCCTATCATTTCTGTAATATAAATAGGAAGTATAATAATCACGCGATTTTAATGCTTAGTTTAATCACAGGCGCAGCTTTTCTGGTTAGATTCTATGTCTTAAAGCATTCACTAATGAATATGTATGATTTGCAATTAGTCATTCCTGGCTGTATCTTTTTGTATTCACTGTTGTTATTACTGTCAACAAACAAACAAAACAAAAAAATTGAATTAATTTCAACATTTCTTGCATTTATTTCCTATACACTGTATTTGAGCCATGAGCCAATAAGAAGAGTTGTATCCACATTTATTGAACCGACGAATTTAAAGAGGGGCTTCCTTATTTGTGGAGTTTGTATTGCTTGCGCAACTATCATCGCTTATTTATTAGAGAACAAACATCTCGTAGTTCGCGAGTGGCTAAAAAATAAACTTTTGCAAAAAAATACATCAAACAAGTTGGCTTATTCAACATAA 0.0 1978
@@ -0,0 +1,2 @@
1
+ sample ST flaA pilE asd mip mompS proA neuA notes
2
+ LEG-2024-R10861.fasta 23 2 3 9 10 2 1 6 Exact ST match, Heterozygous mompS alleles, High confidence mompS allele call