File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,7 @@ functional annotation and classification results are output.
152
152
-h, --help show this help message and exit
153
153
-i , --infile Input query protein fasta file
154
154
-o , --outdir Output directory
155
- -d , --download_dir Download COG & CDD FTP data directory (Default: './cog_download ')
155
+ -d , --download_dir Download COG & CDD resources directory (Default: '~/.cache/cogclassifier ')
156
156
-t , --thread_num RPS-BLAST num_thread parameter (Default: MaxThread - 1)
157
157
-e , --evalue RPS-BLAST e-value parameter (Default: 0.01)
158
158
-v, --version Print version information
Original file line number Diff line number Diff line change 1
1
[tool .poetry ]
2
2
name = " cogclassifier"
3
- version = " 1.0.3 "
3
+ version = " 1.0.4 "
4
4
description = " A tool for classifying prokaryote protein sequences into COG functional category"
5
5
authors = [" moshi" ]
6
6
license = " MIT"
Original file line number Diff line number Diff line change 19
19
import pandas as pd
20
20
import requests
21
21
22
- __version__ = "1.0.3 "
22
+ __version__ = "1.0.4 "
23
23
24
24
25
25
def main ():
@@ -38,7 +38,7 @@ def main():
38
38
def run (
39
39
query_fasta_file : Union [str , Path ],
40
40
outdir : Union [str , Path ],
41
- download_dir : Union [str , Path ] = Path ( "./cog_download" ) ,
41
+ download_dir : Union [str , Path ] = Path . home () / ".cache" / "cogclassifier" ,
42
42
thread_num : int = 1 ,
43
43
evalue : float = 1e-2 ,
44
44
) -> None :
@@ -56,7 +56,7 @@ def run(
56
56
download_dir = Path (download_dir )
57
57
58
58
outdir .mkdir (exist_ok = True )
59
- download_dir . mkdir ( exist_ok = True )
59
+ os . makedirs ( download_dir , exist_ok = True )
60
60
61
61
print ("# Step1: Download COG & CDD FTP data" )
62
62
# Setup COG functional category files
@@ -639,12 +639,12 @@ def get_args() -> argparse.Namespace:
639
639
help = "Output directory" ,
640
640
metavar = "" ,
641
641
)
642
- default_dl_dir = "./cog_download "
642
+ default_dl_dir = Path . home () / ".cache" / "cogclassifier "
643
643
parser .add_argument (
644
644
"-d" ,
645
645
"--download_dir" ,
646
646
type = Path ,
647
- help = f"Download COG & CDD FTP data directory (Default: '{ default_dl_dir } ')" ,
647
+ help = f"Download COG & CDD resources directory (Default: '{ default_dl_dir } ')" ,
648
648
default = default_dl_dir ,
649
649
metavar = "" ,
650
650
)
You can’t perform that action at this time.
0 commit comments