BioSAK 1.91.3__tar.gz → 1.91.4__tar.gz
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.
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/BioSAK_config.py +1 -1
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/SankeyTaxon.py +1 -1
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/VERSION +1 -1
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/arCOG.py +1 -1
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/hpc3.py +26 -10
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/sankey.py +4 -4
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK.egg-info/PKG-INFO +2 -2
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK.egg-info/SOURCES.txt +1 -1
- {BioSAK-1.91.3 → BioSAK-1.91.4}/MANIFEST.in +1 -1
- {BioSAK-1.91.3 → BioSAK-1.91.4}/PKG-INFO +2 -2
- {BioSAK-1.91.3 → BioSAK-1.91.4}/bin/BioSAK +1 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/BLCA_op_parser.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/COG2020.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/COG_boxplot_last1row.R +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/COG_boxplot_last2row.R +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/CheckM.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/DnaFeaturesViewer.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/FastaSplitler_by_num.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/FastaSplitler_by_size.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/GTDB_for_BLCA.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/Gene2Ctg.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/KEGG.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/KEGG_boxplot_last1row.R +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/KEGG_get_eukaryotic_kos.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/KeepRemovingTmp.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/MeanMappingDepth.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/MetaBiosample.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/MetaCHIP_phylo.hmm +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/MetaCyc_reactions_with_ec.txt +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/NetEnzymes.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/Prodigal.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/Reads_simulator.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/RunGraphMB.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/SILVA_for_BLCA.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/SubsampleLongReads.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/Tax4Fun2IndOTU.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/VisBlastOp.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/VisGeneFlk.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/__init__.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/add_desc.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/bam2reads.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/boxplot.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/boxplot_last1row.R +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/boxplot_matrix_COG.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/boxplot_matrix_COG_backup.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/boxplot_matrix_KEGG.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/boxplot_matrix_dbCAN.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/cat_fa.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/cdd2cog.pl +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/checkm_marker.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/compare_sets.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/count_num.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/cross_link_seqs.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/dbCAN.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/download_GenBank_genome_subset_prokaryotes_csv.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/dwnld_sra_reads.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/enrich.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/exe_cmds.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/ezaai2mat.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/fa2id.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/fastaai.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/format_converter.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/fq2fa.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/gapseq.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/gbk2faa.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/gbk2ffn.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/gbk2fna.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/gbk2gff.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/gbk_to_ffn_faa.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/gc.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_EC_from_ko_stats_D.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_GTDB_taxon_gnm.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_MAG_reads_long.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_Pfam_hmms.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_TopHits_taxonomy.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_aa_composition.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_bin_abundance copy.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_data_matrix.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_gene_depth.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_genome_GTDB.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_genome_NCBI.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_genome_NCBI_v1.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_genome_NCBI_v2.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_gnm_size.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_ko_gene_seqs.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_krona_plot.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_reads_from_sam.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_reads_id_in_sam.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_top_hit.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/get_total_length.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/gff2chrom.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/global_functions.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/js_cmds.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/js_hpc3.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/keep_best_hit.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/ko00001.keg +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/koala.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/link_16S_MAG.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/magabund.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/magabund2.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/manipulator_fasta.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/manipulator_msa.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/manipulator_newick.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/manipulator_sam.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/mann_whitney_u.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/mean_MAG_cov.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/merge_df.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/merge_seq.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/metaAssembly.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/metabat2concoct.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/metabat2maxbin.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/msa_to_distance_matrix.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/ncbi_dataset.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/odp.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/parse_MetaCyc_RxnDB.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/parse_mmseqs_tsv.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/plot_mag.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/plot_sam_depth.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/plot_tree.R +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/prefix_file.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/prokka.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/reads2bam.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/rename_reads_for_Reago.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/rename_seq.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/rename_seqs.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/ribbon.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/sam2bam.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/sampling_GTDB_gnms.py +0 -0
- /BioSAK-1.91.3/BioSAK/get_sankey_plot.R → /BioSAK-1.91.4/BioSAK/sankey.R +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/select_seq.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/sep_reads_by_barcode.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/slice_seq.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/split_fasta.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/split_folder.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/split_sam.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/statsTaxa.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/submitHPC.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/subset_GTDB_meta.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/subset_df.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/subset_tree.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/tmp_1.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/top_16S_hits.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/top_hits_in_a_group.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/transpose.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/usearch_uc.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK/wilcox.py +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK.egg-info/dependency_links.txt +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK.egg-info/requires.txt +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/BioSAK.egg-info/top_level.txt +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/LICENSE +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/README.md +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/setup.cfg +0 -0
- {BioSAK-1.91.3 → BioSAK-1.91.4}/setup.py +0 -0
|
@@ -24,7 +24,7 @@ config_dict = {'config_file_path' : config_file_path,
|
|
|
24
24
|
'circos_HGT_R' : '%s/MetaCHIP_circos_HGT.R' % config_file_path,
|
|
25
25
|
'label_tree_R' : '%s/label_tree.R' % config_file_path,
|
|
26
26
|
'cdd2cog_perl' : '%s/cdd2cog.pl' % config_file_path,
|
|
27
|
-
'get_sankey_plot_R' : '%s/
|
|
27
|
+
'get_sankey_plot_R' : '%s/sankey.R' % config_file_path,
|
|
28
28
|
'compare_trees_R' : '%s/compare_trees.R' % config_file_path,
|
|
29
29
|
'PhyloBiAssoc_R' : '%s/PhyloBiAssoc.R' % config_file_path,
|
|
30
30
|
'ko00001_keg' : '%s/ko00001.keg' % config_file_path,
|
|
@@ -50,7 +50,7 @@ def SankeyTaxon(args):
|
|
|
50
50
|
|
|
51
51
|
pwd_self = os.path.realpath(__file__)
|
|
52
52
|
self_path = '/'.join(pwd_self.split('/')[:-1])
|
|
53
|
-
pwd_get_sankey_plot_R = '%s/
|
|
53
|
+
pwd_get_sankey_plot_R = '%s/sankey.R' % self_path
|
|
54
54
|
|
|
55
55
|
output_file_txt = '%s_sankey_taxon.txt' % output_prefix
|
|
56
56
|
|
|
@@ -477,7 +477,7 @@ def arCOG(args):
|
|
|
477
477
|
|
|
478
478
|
################################################# read db into dict ################################################
|
|
479
479
|
|
|
480
|
-
# get cog_id_to_category_dict and cog_id_to_description_dict (
|
|
480
|
+
# get cog_id_to_category_dict and cog_id_to_description_dict (arCOGdef.tab)
|
|
481
481
|
cog_category_set = set()
|
|
482
482
|
cog_id_to_category_dict = dict()
|
|
483
483
|
cog_id_to_description_dict = dict()
|
|
@@ -8,6 +8,7 @@ hpc3_usage = '''
|
|
|
8
8
|
BioSAK hpc3 -q cpu-share -n iqtree_1 -c "iqtree -h"
|
|
9
9
|
BioSAK hpc3 -q cpu -conda mybase -n iqtree_2 -c "iqtree -h"
|
|
10
10
|
BioSAK hpc3 -q cpu-share -t 1 -n wget_cog -c "wget https://ftp.ncbi.nih.gov/pub/COG/COG2020/data/cog-20.fa.gz"
|
|
11
|
+
BioSAK hpc3 -q cpu-share -t 12 -tpc 3 -n mcmctree -c mcmctree_cmds.txt
|
|
11
12
|
|
|
12
13
|
===============================================================
|
|
13
14
|
'''
|
|
@@ -15,15 +16,16 @@ BioSAK hpc3 -q cpu-share -t 1 -n wget_cog -c "wget https://ftp.ncbi.nih.gov/pub/
|
|
|
15
16
|
|
|
16
17
|
def hpc3(args):
|
|
17
18
|
|
|
18
|
-
cmd
|
|
19
|
-
job_name
|
|
20
|
-
email_address
|
|
21
|
-
walltime
|
|
22
|
-
node_num
|
|
23
|
-
core_num
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
19
|
+
cmd = args['c']
|
|
20
|
+
job_name = args['n']
|
|
21
|
+
email_address = args['m']
|
|
22
|
+
walltime = args['wt']
|
|
23
|
+
node_num = args['node']
|
|
24
|
+
core_num = args['t']
|
|
25
|
+
core_num_per_cmd = args['tpc']
|
|
26
|
+
queue_name = args['q']
|
|
27
|
+
conda_env = args['conda']
|
|
28
|
+
setting_a = args['a']
|
|
27
29
|
|
|
28
30
|
js_file = '%s.sh' % job_name
|
|
29
31
|
js_file_handle = open(js_file, 'w')
|
|
@@ -45,7 +47,20 @@ def hpc3(args):
|
|
|
45
47
|
if conda_env is not None:
|
|
46
48
|
js_file_handle.write('source ~/.bashrc\nconda activate %s\n' % conda_env)
|
|
47
49
|
|
|
48
|
-
|
|
50
|
+
if os.path.isfile(cmd) is False:
|
|
51
|
+
js_file_handle.write('%s\n' % cmd)
|
|
52
|
+
else:
|
|
53
|
+
# write out to job script using srun
|
|
54
|
+
cmd_list = []
|
|
55
|
+
for each_cmd in open(cmd):
|
|
56
|
+
if len(each_cmd.strip()) > 0:
|
|
57
|
+
cmd_list.append(each_cmd.strip())
|
|
58
|
+
|
|
59
|
+
for each_cmd in cmd_list[:-1]:
|
|
60
|
+
js_file_handle.write('srun -n %s %s &\n' % (core_num_per_cmd, each_cmd))
|
|
61
|
+
js_file_handle.write('srun -n %s %s\n' % (core_num_per_cmd, cmd_list[-1]))
|
|
62
|
+
js_file_handle.write('wait\n')
|
|
63
|
+
|
|
49
64
|
js_file_handle.close()
|
|
50
65
|
|
|
51
66
|
# submit jobscript
|
|
@@ -61,6 +76,7 @@ if __name__ == '__main__':
|
|
|
61
76
|
hpc3_parser.add_argument('-wt', required=False, default='23:59:59', help='walltime, default: 23:59:59')
|
|
62
77
|
hpc3_parser.add_argument('-node', required=False, type=int, default=1, help='number of node, default: 1')
|
|
63
78
|
hpc3_parser.add_argument('-t', required=False, type=int, default=12, help='number of core, default: 12')
|
|
79
|
+
hpc3_parser.add_argument('-tpc', required=False, type=int, default=1, help='number of core per command, default: 1')
|
|
64
80
|
hpc3_parser.add_argument('-a', required=False, default='boqianpy', help='-A, boqianpy or oces, default: boqianpy')
|
|
65
81
|
hpc3_parser.add_argument('-q', required=True, help='queue, select from: cpu, cpu-share')
|
|
66
82
|
hpc3_parser.add_argument('-conda', required=False, default=None, help='conda environment')
|
|
@@ -35,8 +35,8 @@ def sankey(args):
|
|
|
35
35
|
|
|
36
36
|
pwd_self = os.path.realpath(__file__)
|
|
37
37
|
self_path = '/'.join(pwd_self.split('/')[:-1])
|
|
38
|
-
pwd_get_sankey_plot_R = '%s/
|
|
39
|
-
output_file_txt = '%s_sankey.txt'
|
|
38
|
+
pwd_get_sankey_plot_R = '%s/sankey.R' % self_path
|
|
39
|
+
output_file_txt = '%s_sankey.txt' % output_prefix
|
|
40
40
|
|
|
41
41
|
paired_taxon_list_all = []
|
|
42
42
|
genome_number = 0
|
|
@@ -91,8 +91,8 @@ def sankey(args):
|
|
|
91
91
|
if plot_height < 600:
|
|
92
92
|
plot_height = 600
|
|
93
93
|
|
|
94
|
-
print('Rscript
|
|
95
|
-
os.system('Rscript %s -f %s -x %s -y %s'
|
|
94
|
+
print('Rscript sankey.R -f %s -x %s -y %s' % (output_file_txt, plot_width, plot_height))
|
|
95
|
+
os.system('Rscript %s -f %s -x %s -y %s' % (pwd_get_sankey_plot_R, output_file_txt, plot_width, plot_height))
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
if __name__ == '__main__':
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioSAK
|
|
3
|
-
Version: 1.91.
|
|
3
|
+
Version: 1.91.4
|
|
4
4
|
Summary: BioSAK
|
|
5
5
|
Home-page: https://github.com/songweizhi/BioSAK
|
|
6
6
|
Author: Weizhi Song
|
|
@@ -20,4 +20,4 @@ Requires-Dist: beautifulsoup4
|
|
|
20
20
|
Requires-Dist: ete3
|
|
21
21
|
Requires-Dist: statsmodels
|
|
22
22
|
|
|
23
|
-
BioSAK v1.91.
|
|
23
|
+
BioSAK v1.91.4
|
|
@@ -83,7 +83,6 @@ BioSAK/get_ko_gene_seqs.py
|
|
|
83
83
|
BioSAK/get_krona_plot.py
|
|
84
84
|
BioSAK/get_reads_from_sam.py
|
|
85
85
|
BioSAK/get_reads_id_in_sam.py
|
|
86
|
-
BioSAK/get_sankey_plot.R
|
|
87
86
|
BioSAK/get_top_hit.py
|
|
88
87
|
BioSAK/get_total_length.py
|
|
89
88
|
BioSAK/gff2chrom.py
|
|
@@ -125,6 +124,7 @@ BioSAK/rename_seqs.py
|
|
|
125
124
|
BioSAK/ribbon.py
|
|
126
125
|
BioSAK/sam2bam.py
|
|
127
126
|
BioSAK/sampling_GTDB_gnms.py
|
|
127
|
+
BioSAK/sankey.R
|
|
128
128
|
BioSAK/sankey.py
|
|
129
129
|
BioSAK/select_seq.py
|
|
130
130
|
BioSAK/sep_reads_by_barcode.py
|
|
@@ -3,7 +3,7 @@ include BioSAK/VERSION
|
|
|
3
3
|
include BioSAK/cdd2cog.pl
|
|
4
4
|
include BioSAK/select_contig.pl
|
|
5
5
|
include BioSAK/get_fasta_stats.pl
|
|
6
|
-
include BioSAK/
|
|
6
|
+
include BioSAK/sankey.R
|
|
7
7
|
include BioSAK/label_tree.R
|
|
8
8
|
include BioSAK/MetaCHIP_phylo.hmm
|
|
9
9
|
include BioSAK/ko00001.keg
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioSAK
|
|
3
|
-
Version: 1.91.
|
|
3
|
+
Version: 1.91.4
|
|
4
4
|
Summary: BioSAK
|
|
5
5
|
Home-page: https://github.com/songweizhi/BioSAK
|
|
6
6
|
Author: Weizhi Song
|
|
@@ -20,4 +20,4 @@ Requires-Dist: beautifulsoup4
|
|
|
20
20
|
Requires-Dist: ete3
|
|
21
21
|
Requires-Dist: statsmodels
|
|
22
22
|
|
|
23
|
-
BioSAK v1.91.
|
|
23
|
+
BioSAK v1.91.4
|
|
@@ -788,6 +788,7 @@ if __name__ == '__main__':
|
|
|
788
788
|
hpc3_parser.add_argument('-wt', required=False, default='23:59:59', help='walltime, default: 23:59:59')
|
|
789
789
|
hpc3_parser.add_argument('-node', required=False, type=int, default=1, help='number of node, default: 1')
|
|
790
790
|
hpc3_parser.add_argument('-t', required=False, type=int, default=12, help='number of core, default: 12')
|
|
791
|
+
hpc3_parser.add_argument('-tpc', required=False, type=int, default=1, help='number of core per command, default: 1')
|
|
791
792
|
hpc3_parser.add_argument('-a', required=False, default='boqianpy', help='-A, boqianpy or oces, default: boqianpy')
|
|
792
793
|
hpc3_parser.add_argument('-q', required=True, help='queue, select from: cpu, cpu-share')
|
|
793
794
|
hpc3_parser.add_argument('-conda', required=False, default=None, help='conda environment')
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|