8000 start bug fix · fmalmeida/pythonScripts@4e34f20 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4e34f20

Browse files
committed
start bug fix
1 parent 976a3d4 commit 4e34f20

File tree

8 files changed

+31
-153
lines changed

8 files changed

+31
-153
lines changed

build_conda.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ conda convert -p osx-64 $(find build -name "falmeida-py*.tar.bz2")
99

1010
# upload osx
1111
anaconda upload $(find osx-64 -name "falmeida-py*.tar.bz2") --force
12+
sleep 140
1213
anaconda upload $(find build/linux-64 -name "falmeida-py*.tar.bz2") --force
1314

1415
# rm dirs

conda.recipe/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package:
22
name: falmeida-py
3-
version: '1.2.3'
3+
version: '1.2.4'
44

55
source:
66
path: ..

docs/align2subsetgbk_help.txt

Lines changed: 6 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,6 @@
1-
A script meant to subset a genbank annotation file based on alignments against a query (Nucleotide) FASTA file
2-
3-
---
4-
Copyright (C) 2020 Felipe Marques de Almeida (almeidafmarques@gmail.com)
5-
License: Public Domain
6-
7-
Usage:
8-
falmeida-py align2subsetgbk [ -h|--help ]
9-
falmeida-py align2subsetgbk [ --gbk <in_gbk> --fasta <fasta> --out <out_gbk> --minid <int> --mincov <int> --culling_limit <int> --extension <int> ]
10-
11-
Options:
12-
-h --help Show this screen.
13-
-g --gbk=<in_gbk> Gbk file for subset
14-
-f --fasta=<fasta> FASTA (nucl) file for querying the gbk
15-
-o --out=<out_gbk> Gbk filtered output file [Default: out.gbk].
16-
--extension=<int> Base pair length to extend the flank regions in the alignment [Default: 0].
17-
--minid=<int> Min. Identity percentage for gene annotation [Default: 80].
18-
--mincov=<int> Min. Covereage for gene annotation [Default: 80].
19-
--culling_limit=<int> Blast culling_limit for best hit only [Default: 1].
20-
falmeida-py: a package to the simple distribution of my custom scripts.
21-
22-
Copyright (C) 2020 Felipe Marques de Almeida (almeidafmarques@gmail.com)
23-
License: Public Domain
24-
25-
usage:
26-
falmeida-py [ -h|--help ] [ -v|--version ] [ --license ]
27-
falmeida-py <command> [ -h|--help ] [ <args>... ]
28-
29-
options:
30-
-h --help Show this screen
31-
-v --version Show version information
32-
--license Show LEGAL LICENSE information
33-
34-
commands:
35-
tsv2markdown Command for rapid convertion of tsv or csv to markdown tables.
36-
splitgbk Command to split multisequence genbank files into individual files.
37-
align2subsetgbk Command to subset genbank files based on alignments to a FASTA file.
38-
gbk2fasta Command to convert genbank files to fasta files.
39-
blasts Command to execute automatized blast commands.
40-
replace_fasta_seq Command to replace strings in a FASTA using defitinitions from a BED file
41-
mpgap2csv Command to summarize main mpgap multiqc assembly statistics into a CSV file
42-
bacannot2json Command to summarize main bacannot annotation results into JSON file
43-
44-
Use: `falmeida-py <commmand> -h` to get more help and see examples.
1+
Traceback (most recent call last):
2+
File "/home/falmeida/Documents/GitHub/pythonScripts/falmeida-py-runner.py", line 18, in <module>
3+
from falmeida_py.__main__ import main
4+
File "/home/falmeida/Documents/GitHub/pythonScripts/falmeida_py/__main__.py", line 47, in <module>
5+
from docopt import docopt
6+
ModuleNotFoundError: No module named 'docopt'

docs/help_message.txt

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
1-
falmeida-py: a package to the simple distribution of my custom scripts.
2-
3-
Copyright (C) 2020 Felipe Marques de Almeida (almeidafmarques@gmail.com)
4-
License: Public Domain
5-
6-
usage:
7-
falmeida-py [ -h|--help ] [ -v|--version ] [ --license ]
8-
falmeida-py <command> [ -h|--help ] [ <args>... ]
9-
10-
options:
11-
-h --help Show this screen
12-
-v --version Show version information
13-
--license Show LEGAL LICENSE information
14-
15-
commands:
16-
tsv2markdown Command for rapid convertion of tsv or csv to markdown tables.
17-
splitgbk Command to split multisequence genbank files into individual files.
18-
align2subsetgbk Command to subset genbank files based on alignments to a FASTA file.
19-
gbk2fasta Command to convert genbank files to fasta files.
20-
blasts Command to execute automatized blast commands.
21-
replace_fasta_seq Command to replace strings in a FASTA using defitinitions from a BED file
22-
mpgap2csv Command to summarize main mpgap multiqc assembly statistics into a CSV file
23-
bacannot2json Command to summarize main bacannot annotation results into JSON file
24-
25-
Use: `falmeida-py <commmand> -h` to get more help and see examples.
1+
Traceback (most recent call last):
2+
File "/home/falmeida/Documents/GitHub/pythonScripts/falmeida-py-runner.py", line 18, in <module>
3+
from falmeida_py.__main__ import main
4+
File "/home/falmeida/Documents/GitHub/pythonScripts/falmeida_py/__main__.py", line 47, in <module>
5+
from docopt import docopt
6+
ModuleNotFoundError: No module named 'docopt'

docs/splitgbk_help.txt

Lines changed: 6 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,6 @@
1-
A very simple script to split multisequence genbank files into separate files
2-
Copyright (C) 2020 Felipe Marques de Almeida (almeidafmarques@gmail.com)
3-
License: Public Domain
4-
5-
usage:
6-
falmeida-py splitgbk
7-
falmeida-py splitgbk [ -h|--help ]
8-
falmeida-py splitgbk [ --gbk <file> ] [ --outdir <outdir> ]
9-
10-
options:
11-
-h --help Show this screen.
12-
-g --gbk=<file> Input genbank file to split into multiple individual files.
13-
-o --outdir=<outdir> Directory (must already exist) in which to write the splitted files [Default: ./].
14-
falmeida-py: a package to the simple distribution of my custom scripts.
15-
16-
Copyright (C) 2020 Felipe Marques de Almeida (almeidafmarques@gmail.com)
17-
License: Public Domain
18-
19-
usage:
20-
falmeida-py [ -h|--help ] [ -v|--version ] [ --license ]
21-
falmeida-py <command> [ -h|--help ] [ <args>... ]
22-
23-
options:
24-
-h --help Show this screen
25-
-v --version Show version information
26-
--license Show LEGAL LICENSE information
27-
28-
commands:
29-
tsv2markdown Command for rapid convertion of tsv or csv to markdown tables.
30-
splitgbk Command to split multisequence genbank files into individual files.
31-
align2subsetgbk Command to subset genbank files based on alignments to a FASTA file.
32-
gbk2fasta Command to convert genbank files to fasta files.
33-
blasts Command to execute automatized blast commands.
34-
replace_fasta_seq Command to replace strings in a FASTA using defitinitions from a BED file
35-
mpgap2csv Command to summarize main mpgap multiqc assembly statistics into a CSV file
36-
bacannot2json Command to summarize main bacannot annotation results into JSON file
37-
38-
Use: `falmeida-py <commmand> -h` to get more help and see examples.
1+
Traceback (most recent call last):
2+
File "/home/falmeida/Documents/GitHub/pythonScripts/falmeida-py-runner.py", line 18, in <module>
3+
from falmeida_py.__main__ import main
4+
File "/home/falmeida/Documents/GitHub/pythonScripts/falmeida_py/__main__.py", line 47, in <module>
5+
from docopt import docopt
6+
ModuleNotFoundError: No module named 'docopt'

docs/tsv2markdown_help.txt

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,6 @@
1-
A simple script to convert tsv (or csv) files to markdown tables using tabulate!
2-
Copyright (C) 2020 Felipe Marques de Almeida (almeidafmarques@gmail.com)
3-
License: Public Domain
4-
5-
usage:
6-
falmeida-py tsv2markdown
7-
falmeida-py tsv2markdown [ -h|--help ]
8-
falmeida-py tsv2markdown [ --tsv <file> --csv <file> --header <list> ]
9-
10-
options:
11-
-h --help Show this screen.
12-
--tsv=<file> Input tsv file to print as markdown table
13-
--csv=<file> Input csv file to print as markdown table
14-
--header=<list> If file does not have a header, set a
15-
custom header. E.g. --header "Planet,R (km),mass (x 10^29 kg)".
16-
falmeida-py: a package to the simple distribution EF5E of my custom scripts.
17-
18-
Copyright (C) 2020 Felipe Marques de Almeida (almeidafmarques@gmail.com)
19-
License: Public Domain
20-
21-
usage:
22-
falmeida-py [ -h|--help ] [ -v|--version ] [ --license ]
23-
falmeida-py <command> [ -h|--help ] [ <args>... ]
24-
25-
options:
26-
-h --help Show this screen
27-
-v --version Show version information
28-
--license Show LEGAL LICENSE information
29-
30-
commands:
31-
tsv2markdown Command for rapid convertion of tsv or csv to markdown tables.
32-
splitgbk Command to split multisequence genbank files into individual files.
33-
align2subsetgbk Command to subset genbank files based on alignments to a FASTA file.
34-
gbk2fasta Command to convert genbank files to fasta files.
35-
blasts Command to execute automatized blast commands.
36-
replace_fasta_seq Command to replace strings in a FASTA using defitinitions from a BED file
37-
mpgap2csv Command to summarize main mpgap multiqc assembly statistics into a CSV file
38-
bacannot2json Command to summarize main bacannot annotation results into JSON file
39-
40-
Use: `falmeida-py <commmand> -h` to get more help and see examples.
1+
Traceback (most recent call last):
2+
File "/home/falmeida/Documents/GitHub/pythonScripts/falmeida-py-runner.py", line 18, in <module>
3+
from falmeida_py.__main__ import main
4+
File "/home/falmeida/Documents/GitHub/pythonScripts/falmeida_py/__main__.py", line 47, in <module>
5+
from docopt import docopt
6+
ModuleNotFoundError: No module named 'docopt'

falmeida_py/general_stats_function.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def general_stats(bacannot_summary):
3737
# save annotation stats
3838
bacannot_summary[sample]['general_annotation'] = {}
3939
bacannot_summary[sample]['general_annotation']['mlst'] = str(mlst_results[2].item()).replace('-', 'null')
40-
bacannot_summary[sample]['general_annotation']['cds'] = general_results['CDS']
41-
bacannot_summary[sample]['general_annotation']['rrna'] = general_results['rRNA']
42-
bacannot_summary[sample]['general_annotation']['trna'] = general_results['tRNA']
43-
bacannot_summary[sample]['general_annotation']['tmrna'] = general_results['tmRNA']
40+
bacannot_summary[sample]['general_annotation']['cds'] = general_results.get('CDS', 0)
41+
bacannot_summary[sample]['general_annotation']['rrna'] = general_results.get('rRNA', 0)
42+
bacannot_summary[sample]['general_annotation']['trna'] = general_results.get('tRNA', 0)
43+
bacannot_summary[sample]['general_annotation']['tmrna'] = general_results.get('tmRNA', 0)
4444

4545
bacannot_summary[sample]['general_annotation']['closest_reference'] = {}
4646
bacannot_summary[sample]['general_annotation']['closest_reference']['strain'] = refseq_masher_results.head(1)['top_taxonomy_name'].item()

falmeida_py/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
If not, see <http://www.gnu.org/licenses/>.
1515
"""
1616

17-
__version__ = '1.2.3'
17+
__version__ = '1.2.4'
1818

1919
def get_version():
2020
return __version__

0 commit comments

Comments
 (0)
0