BioSAK 1.90.2__tar.gz → 1.91.0__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.90.2 → BioSAK-1.91.0}/BioSAK/COG2020.py +0 -2
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/VERSION +4 -1
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/mann_whitney_u.py +7 -2
- BioSAK-1.91.0/BioSAK/sankey.py +91 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK.egg-info/PKG-INFO +2 -2
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK.egg-info/SOURCES.txt +1 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/PKG-INFO +2 -2
- {BioSAK-1.90.2 → BioSAK-1.91.0}/bin/BioSAK +11 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/BLCA_op_parser.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/BioSAK_config.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/COG_boxplot_last1row.R +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/COG_boxplot_last2row.R +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/CheckM.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/DnaFeaturesViewer.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/FastaSplitler_by_num.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/FastaSplitler_by_size.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/GTDB_for_BLCA.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/Gene2Ctg.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/KEGG.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/KEGG_boxplot_last1row.R +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/KEGG_get_eukaryotic_kos.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/KeepRemovingTmp.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/MeanMappingDepth.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/MetaBiosample.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/MetaCHIP_phylo.hmm +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/MetaCyc_reactions_with_ec.txt +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/NetEnzymes.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/Prodigal.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/Reads_simulator.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/RunGraphMB.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/SILVA_for_BLCA.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/SankeyTaxon.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/SubsampleLongReads.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/Tax4Fun2IndOTU.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/VisBlastOp.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/VisGeneFlk.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/__init__.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/add_desc.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/arCOG.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/bam2reads.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/boxplot.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/boxplot_last1row.R +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/boxplot_matrix_COG.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/boxplot_matrix_COG_backup.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/boxplot_matrix_KEGG.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/boxplot_matrix_dbCAN.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/cat_fa.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/cdd2cog.pl +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/checkm_marker.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/compare_sets.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/count_num.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/cross_link_seqs.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/dbCAN.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/download_GenBank_genome_subset_prokaryotes_csv.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/dwnld_sra_reads.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/enrich.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/exe_cmds.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/ezaai2mat.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/fa2id.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/fastaai.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/format_converter.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/fq2fa.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/gapseq.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/gbk2faa.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/gbk2ffn.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/gbk2fna.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/gbk2gff.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/gbk_to_ffn_faa.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/gc.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_EC_from_ko_stats_D.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_GTDB_taxon_gnm.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_MAG_reads_long.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_Pfam_hmms.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_TopHits_taxonomy.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_aa_composition.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_bin_abundance copy.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_data_matrix.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_gene_depth.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_genome_GTDB.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_genome_NCBI.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_genome_NCBI_v1.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_genome_NCBI_v2.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_gnm_size.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_ko_gene_seqs.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_krona_plot.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_reads_from_sam.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_reads_id_in_sam.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_sankey_plot.R +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_top_hit.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/get_total_length.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/gff2chrom.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/global_functions.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/hpc3.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/js_cmds.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/js_hpc3.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/keep_best_hit.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/ko00001.keg +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/koala.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/link_16S_MAG.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/magabund.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/magabund2.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/manipulator_fasta.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/manipulator_msa.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/manipulator_newick.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/manipulator_sam.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/mean_MAG_cov.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/merge_df.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/merge_seq.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/metaAssembly.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/metabat2concoct.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/metabat2maxbin.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/msa_to_distance_matrix.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/ncbi_dataset.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/odp.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/parse_MetaCyc_RxnDB.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/parse_mmseqs_tsv.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/plot_mag.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/plot_sam_depth.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/plot_tree.R +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/prefix_file.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/prokka.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/reads2bam.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/rename_reads_for_Reago.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/rename_seq.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/rename_seqs.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/ribbon.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/sam2bam.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/sampling_GTDB_gnms.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/select_seq.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/sep_reads_by_barcode.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/slice_seq.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/split_fasta.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/split_folder.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/split_sam.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/statsTaxa.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/submitHPC.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/subset_GTDB_meta.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/subset_df.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/subset_tree.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/tmp_1.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/top_16S_hits.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/top_hits_in_a_group.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/transpose.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/usearch_uc.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK/wilcox.py +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK.egg-info/dependency_links.txt +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK.egg-info/requires.txt +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/BioSAK.egg-info/top_level.txt +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/LICENSE +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/MANIFEST.in +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/README.md +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/setup.cfg +0 -0
- {BioSAK-1.90.2 → BioSAK-1.91.0}/setup.py +0 -0
|
@@ -36,9 +36,7 @@ wget https://ftp.ncbi.nih.gov/pub/COG/COG2020/data/cog-20.def.tab
|
|
|
36
36
|
wget https://ftp.ncbi.nih.gov/pub/COG/COG2020/data/fun-20.tab
|
|
37
37
|
wget https://ftp.ncbi.nih.gov/pub/COG/COG2020/data/Readme.2020-11-25.txt
|
|
38
38
|
gunzip cog-20.fa.gz
|
|
39
|
-
module load blast-plus/2.12.0
|
|
40
39
|
makeblastdb -in cog-20.fa -dbtype prot -parse_seqids -logfile cog-20.fa.log
|
|
41
|
-
module load diamond/2.1.6
|
|
42
40
|
diamond makedb --in cog-20.fa --db cog-20.fa.dmnd --quiet
|
|
43
41
|
|
|
44
42
|
# How it works:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import argparse
|
|
2
|
+
import numpy as np
|
|
2
3
|
from scipy.stats import mannwhitneyu
|
|
3
4
|
|
|
4
5
|
|
|
@@ -37,10 +38,14 @@ def mann_whitney_u(args):
|
|
|
37
38
|
print('Currently has: %s' % ','.join(cate_list))
|
|
38
39
|
exit()
|
|
39
40
|
|
|
40
|
-
|
|
41
|
+
cate_list_sorted = sorted(list(value_dict.keys()))
|
|
42
|
+
value_lol = [value_dict[i] for i in cate_list_sorted]
|
|
41
43
|
_, p_value = mannwhitneyu(value_lol[0], value_lol[1])
|
|
42
44
|
|
|
43
|
-
print('
|
|
45
|
+
print('sample\tsize\tmean\tstd')
|
|
46
|
+
print('%st\t%s\t%s\t%s' % (cate_list_sorted[0], len(value_lol[0]), float("{0:.2f}".format(np.mean(value_lol[0]))), float("{0:.2f}".format(np.std(value_lol[0])))))
|
|
47
|
+
print('%st\t%s\t%s\t%s' % (cate_list_sorted[1], len(value_lol[1]), float("{0:.2f}".format(np.mean(value_lol[1]))), float("{0:.2f}".format(np.std(value_lol[1])))))
|
|
48
|
+
print('p-value: %s' % p_value)
|
|
44
49
|
|
|
45
50
|
|
|
46
51
|
if __name__ == '__main__':
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import argparse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
sankey_parser_usage = '''
|
|
6
|
+
=============================== sankey example commands ===============================
|
|
7
|
+
|
|
8
|
+
BioSAK sankey -p demo -i sankey_matrix.txt
|
|
9
|
+
|
|
10
|
+
# Requires R and its packages optparse, tools and googleVis.
|
|
11
|
+
# Format of input file: tab separated, non column header, first column as sample id.
|
|
12
|
+
|
|
13
|
+
=======================================================================================
|
|
14
|
+
'''
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
def unique_list_elements(list_input):
|
|
18
|
+
|
|
19
|
+
list_output = []
|
|
20
|
+
for each_element in list_input:
|
|
21
|
+
if each_element not in list_output:
|
|
22
|
+
list_output.append(each_element)
|
|
23
|
+
|
|
24
|
+
return list_output
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
def sankey(args):
|
|
28
|
+
|
|
29
|
+
input_datamatrix_txt = args['i']
|
|
30
|
+
output_prefix = args['p']
|
|
31
|
+
plot_width = args['x']
|
|
32
|
+
plot_height = args['y']
|
|
33
|
+
|
|
34
|
+
pwd_self = os.path.realpath(__file__)
|
|
35
|
+
self_path = '/'.join(pwd_self.split('/')[:-1])
|
|
36
|
+
pwd_get_sankey_plot_R = '%s/get_sankey_plot.R' % self_path
|
|
37
|
+
output_file_txt = '%s.txt' % output_prefix
|
|
38
|
+
|
|
39
|
+
paired_taxon_list_all = []
|
|
40
|
+
genome_number = 0
|
|
41
|
+
max_col_num = 0
|
|
42
|
+
for each_line in open(input_datamatrix_txt):
|
|
43
|
+
each_line_split = each_line.strip().split('\t')
|
|
44
|
+
print(each_line_split)
|
|
45
|
+
genome_number += 1
|
|
46
|
+
|
|
47
|
+
if (len(each_line_split) - 1) > max_col_num:
|
|
48
|
+
max_col_num = (len(each_line_split) - 1)
|
|
49
|
+
|
|
50
|
+
n = 1
|
|
51
|
+
while n < (len(each_line_split) - 1):
|
|
52
|
+
print()
|
|
53
|
+
paired_taxon_list_all.append('%s,%s' % (each_line_split[n], each_line_split[n+1]))
|
|
54
|
+
n += 1
|
|
55
|
+
|
|
56
|
+
paired_taxon_list_uniq = unique_list_elements(paired_taxon_list_all)
|
|
57
|
+
paired_taxon_list_uniq_count_dict = {}
|
|
58
|
+
for each_key in paired_taxon_list_uniq:
|
|
59
|
+
paired_taxon_list_uniq_count_dict[each_key] = paired_taxon_list_all.count(each_key)
|
|
60
|
+
|
|
61
|
+
output_file_handle = open(output_file_txt, 'w')
|
|
62
|
+
output_file_handle.write('C1,C2,Number\n')
|
|
63
|
+
for each_genome_taxon in paired_taxon_list_uniq_count_dict:
|
|
64
|
+
for_out = '%s,%s\n' % (each_genome_taxon, paired_taxon_list_uniq_count_dict[each_genome_taxon])
|
|
65
|
+
output_file_handle.write(for_out)
|
|
66
|
+
output_file_handle.close()
|
|
67
|
+
|
|
68
|
+
# run R script
|
|
69
|
+
if plot_width is None:
|
|
70
|
+
if max_col_num <= 5:
|
|
71
|
+
plot_width = (max_col_num - 1) * 300
|
|
72
|
+
else:
|
|
73
|
+
plot_width = (max_col_num - 1) * 250
|
|
74
|
+
|
|
75
|
+
if plot_height is None:
|
|
76
|
+
plot_height = genome_number * 2
|
|
77
|
+
if plot_height < 600:
|
|
78
|
+
plot_height = 600
|
|
79
|
+
|
|
80
|
+
os.system('Rscript %s -f %s -x %s -y %s' % (pwd_get_sankey_plot_R, output_file_txt, plot_width, plot_height))
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
if __name__ == '__main__':
|
|
84
|
+
|
|
85
|
+
sankey_parser = argparse.ArgumentParser(description='', add_help=True)
|
|
86
|
+
sankey_parser.add_argument('-i', required=True, help='input datamatrix')
|
|
87
|
+
sankey_parser.add_argument('-p', required=True, help='output prefix')
|
|
88
|
+
sankey_parser.add_argument('-x', required=False, type=int, help='plot width')
|
|
89
|
+
sankey_parser.add_argument('-y', required=False, type=int, help='plot height')
|
|
90
|
+
args = vars(sankey_parser.parse_args())
|
|
91
|
+
sankey(args)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioSAK
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.91.0
|
|
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.
|
|
23
|
+
BioSAK v1.91.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioSAK
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.91.0
|
|
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.
|
|
23
|
+
BioSAK v1.91.0
|
|
@@ -122,6 +122,7 @@ def print_main_help():
|
|
|
122
122
|
KeepRemovingTmp -> Keep removing old files in a folder
|
|
123
123
|
ribbon -> Make a ribbon diagram
|
|
124
124
|
compare_sets -> compare_sets
|
|
125
|
+
sankey -> get sankey plot
|
|
125
126
|
|
|
126
127
|
1. Phylogenetic tree-related modules have been moved to TreeSAK
|
|
127
128
|
2. Upgrade with: pip3 install --upgrade BioSAK
|
|
@@ -971,6 +972,16 @@ if __name__ == '__main__':
|
|
|
971
972
|
args = vars(parser.parse_args())
|
|
972
973
|
statsTaxa.statsTaxa(args)
|
|
973
974
|
|
|
975
|
+
elif sys.argv[1] == 'sankey':
|
|
976
|
+
from BioSAK import sankey
|
|
977
|
+
sankey_parser = subparsers.add_parser('statsTaxa', usage=sankey.sankey_usage)
|
|
978
|
+
sankey_parser.add_argument('-i', required=True, help='input datamatrix')
|
|
979
|
+
sankey_parser.add_argument('-p', required=True, help='output prefix')
|
|
980
|
+
sankey_parser.add_argument('-x', required=False, type=int, help='plot width')
|
|
981
|
+
sankey_parser.add_argument('-y', required=False, type=int, help='plot height')
|
|
982
|
+
args = vars(parser.parse_args())
|
|
983
|
+
sankey.sankey(args)
|
|
984
|
+
|
|
974
985
|
else:
|
|
975
986
|
print('Unrecognized module: %s, program exited' % sys.argv[1])
|
|
976
987
|
exit()
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|