BioSAK 1.91.2__tar.gz → 1.91.3__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.
Files changed (153) hide show
  1. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/VERSION +4 -4
  2. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/sankey.py +38 -22
  3. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK.egg-info/PKG-INFO +2 -2
  4. {BioSAK-1.91.2 → BioSAK-1.91.3}/PKG-INFO +2 -2
  5. {BioSAK-1.91.2 → BioSAK-1.91.3}/bin/BioSAK +5 -4
  6. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/BLCA_op_parser.py +0 -0
  7. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/BioSAK_config.py +0 -0
  8. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/COG2020.py +0 -0
  9. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/COG_boxplot_last1row.R +0 -0
  10. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/COG_boxplot_last2row.R +0 -0
  11. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/CheckM.py +0 -0
  12. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/DnaFeaturesViewer.py +0 -0
  13. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/FastaSplitler_by_num.py +0 -0
  14. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/FastaSplitler_by_size.py +0 -0
  15. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/GTDB_for_BLCA.py +0 -0
  16. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/Gene2Ctg.py +0 -0
  17. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/KEGG.py +0 -0
  18. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/KEGG_boxplot_last1row.R +0 -0
  19. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/KEGG_get_eukaryotic_kos.py +0 -0
  20. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/KeepRemovingTmp.py +0 -0
  21. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/MeanMappingDepth.py +0 -0
  22. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/MetaBiosample.py +0 -0
  23. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/MetaCHIP_phylo.hmm +0 -0
  24. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/MetaCyc_reactions_with_ec.txt +0 -0
  25. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/NetEnzymes.py +0 -0
  26. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/Prodigal.py +0 -0
  27. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/Reads_simulator.py +0 -0
  28. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/RunGraphMB.py +0 -0
  29. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/SILVA_for_BLCA.py +0 -0
  30. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/SankeyTaxon.py +0 -0
  31. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/SubsampleLongReads.py +0 -0
  32. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/Tax4Fun2IndOTU.py +0 -0
  33. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/VisBlastOp.py +0 -0
  34. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/VisGeneFlk.py +0 -0
  35. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/__init__.py +0 -0
  36. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/add_desc.py +0 -0
  37. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/arCOG.py +0 -0
  38. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/bam2reads.py +0 -0
  39. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/boxplot.py +0 -0
  40. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/boxplot_last1row.R +0 -0
  41. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/boxplot_matrix_COG.py +0 -0
  42. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/boxplot_matrix_COG_backup.py +0 -0
  43. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/boxplot_matrix_KEGG.py +0 -0
  44. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/boxplot_matrix_dbCAN.py +0 -0
  45. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/cat_fa.py +0 -0
  46. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/cdd2cog.pl +0 -0
  47. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/checkm_marker.py +0 -0
  48. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/compare_sets.py +0 -0
  49. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/count_num.py +0 -0
  50. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/cross_link_seqs.py +0 -0
  51. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/dbCAN.py +0 -0
  52. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/download_GenBank_genome_subset_prokaryotes_csv.py +0 -0
  53. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/dwnld_sra_reads.py +0 -0
  54. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/enrich.py +0 -0
  55. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/exe_cmds.py +0 -0
  56. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/ezaai2mat.py +0 -0
  57. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/fa2id.py +0 -0
  58. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/fastaai.py +0 -0
  59. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/format_converter.py +0 -0
  60. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/fq2fa.py +0 -0
  61. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/gapseq.py +0 -0
  62. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/gbk2faa.py +0 -0
  63. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/gbk2ffn.py +0 -0
  64. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/gbk2fna.py +0 -0
  65. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/gbk2gff.py +0 -0
  66. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/gbk_to_ffn_faa.py +0 -0
  67. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/gc.py +0 -0
  68. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_EC_from_ko_stats_D.py +0 -0
  69. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_GTDB_taxon_gnm.py +0 -0
  70. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_MAG_reads_long.py +0 -0
  71. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_Pfam_hmms.py +0 -0
  72. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_TopHits_taxonomy.py +0 -0
  73. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_aa_composition.py +0 -0
  74. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_bin_abundance copy.py +0 -0
  75. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_data_matrix.py +0 -0
  76. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_gene_depth.py +0 -0
  77. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_genome_GTDB.py +0 -0
  78. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_genome_NCBI.py +0 -0
  79. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_genome_NCBI_v1.py +0 -0
  80. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_genome_NCBI_v2.py +0 -0
  81. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_gnm_size.py +0 -0
  82. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_ko_gene_seqs.py +0 -0
  83. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_krona_plot.py +0 -0
  84. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_reads_from_sam.py +0 -0
  85. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_reads_id_in_sam.py +0 -0
  86. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_sankey_plot.R +0 -0
  87. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_top_hit.py +0 -0
  88. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/get_total_length.py +0 -0
  89. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/gff2chrom.py +0 -0
  90. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/global_functions.py +0 -0
  91. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/hpc3.py +0 -0
  92. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/js_cmds.py +0 -0
  93. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/js_hpc3.py +0 -0
  94. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/keep_best_hit.py +0 -0
  95. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/ko00001.keg +0 -0
  96. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/koala.py +0 -0
  97. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/link_16S_MAG.py +0 -0
  98. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/magabund.py +0 -0
  99. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/magabund2.py +0 -0
  100. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/manipulator_fasta.py +0 -0
  101. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/manipulator_msa.py +0 -0
  102. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/manipulator_newick.py +0 -0
  103. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/manipulator_sam.py +0 -0
  104. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/mann_whitney_u.py +0 -0
  105. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/mean_MAG_cov.py +0 -0
  106. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/merge_df.py +0 -0
  107. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/merge_seq.py +0 -0
  108. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/metaAssembly.py +0 -0
  109. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/metabat2concoct.py +0 -0
  110. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/metabat2maxbin.py +0 -0
  111. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/msa_to_distance_matrix.py +0 -0
  112. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/ncbi_dataset.py +0 -0
  113. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/odp.py +0 -0
  114. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/parse_MetaCyc_RxnDB.py +0 -0
  115. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/parse_mmseqs_tsv.py +0 -0
  116. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/plot_mag.py +0 -0
  117. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/plot_sam_depth.py +0 -0
  118. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/plot_tree.R +0 -0
  119. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/prefix_file.py +0 -0
  120. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/prokka.py +0 -0
  121. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/reads2bam.py +0 -0
  122. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/rename_reads_for_Reago.py +0 -0
  123. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/rename_seq.py +0 -0
  124. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/rename_seqs.py +0 -0
  125. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/ribbon.py +0 -0
  126. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/sam2bam.py +0 -0
  127. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/sampling_GTDB_gnms.py +0 -0
  128. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/select_seq.py +0 -0
  129. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/sep_reads_by_barcode.py +0 -0
  130. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/slice_seq.py +0 -0
  131. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/split_fasta.py +0 -0
  132. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/split_folder.py +0 -0
  133. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/split_sam.py +0 -0
  134. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/statsTaxa.py +0 -0
  135. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/submitHPC.py +0 -0
  136. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/subset_GTDB_meta.py +0 -0
  137. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/subset_df.py +0 -0
  138. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/subset_tree.py +0 -0
  139. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/tmp_1.py +0 -0
  140. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/top_16S_hits.py +0 -0
  141. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/top_hits_in_a_group.py +0 -0
  142. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/transpose.py +0 -0
  143. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/usearch_uc.py +0 -0
  144. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK/wilcox.py +0 -0
  145. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK.egg-info/SOURCES.txt +0 -0
  146. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK.egg-info/dependency_links.txt +0 -0
  147. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK.egg-info/requires.txt +0 -0
  148. {BioSAK-1.91.2 → BioSAK-1.91.3}/BioSAK.egg-info/top_level.txt +0 -0
  149. {BioSAK-1.91.2 → BioSAK-1.91.3}/LICENSE +0 -0
  150. {BioSAK-1.91.2 → BioSAK-1.91.3}/MANIFEST.in +0 -0
  151. {BioSAK-1.91.2 → BioSAK-1.91.3}/README.md +0 -0
  152. {BioSAK-1.91.2 → BioSAK-1.91.3}/setup.cfg +0 -0
  153. {BioSAK-1.91.2 → BioSAK-1.91.3}/setup.py +0 -0
@@ -1,9 +1,9 @@
1
- 1.91.2
2
- - new modules added: sankey
3
-
4
- 1.90.3
1
+ 1.91.3
5
2
  - fixed bugs
6
3
 
4
+ 1.91.0
5
+ - new modules added: sankey
6
+
7
7
  1.90.0
8
8
  - new modules added: statsTaxa
9
9
 
@@ -3,14 +3,15 @@ import argparse
3
3
 
4
4
 
5
5
  sankey_usage = '''
6
- =============================== sankey example commands ===============================
6
+ ================== sankey example commands ==================
7
7
 
8
- BioSAK sankey -p demo -i sankey_matrix.txt
8
+ BioSAK sankey -p demo_sankey -i sankey_matrix.txt
9
+ BioSAK sankey -p demo_sankey -i sankey_matrix.txt -m 3
9
10
 
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.
11
+ # Requires R and R packages optparse, tools and googleVis.
12
+ # Input file need to be tab separated, non column header.
12
13
 
13
- =======================================================================================
14
+ =============================================================
14
15
  '''
15
16
 
16
17
 
@@ -26,33 +27,44 @@ def unique_list_elements(list_input):
26
27
 
27
28
  def sankey(args):
28
29
 
29
- input_datamatrix_txt = args['i']
30
- output_prefix = args['p']
31
- plot_width = args['x']
32
- plot_height = args['y']
30
+ input_datamatrix_txt = args['i']
31
+ output_prefix = args['p']
32
+ plot_width = args['x']
33
+ plot_height = args['y']
34
+ min_link_value = args['m']
33
35
 
34
36
  pwd_self = os.path.realpath(__file__)
35
37
  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
+ pwd_get_sankey_plot_R = '%s/get_sankey_plot.R' % self_path
39
+ output_file_txt = '%s_sankey.txt' % output_prefix
38
40
 
39
41
  paired_taxon_list_all = []
40
42
  genome_number = 0
41
43
  max_col_num = 0
44
+ null_col_list = []
45
+ line_index = 1
42
46
  for each_line in open(input_datamatrix_txt):
43
47
  each_line_split = each_line.strip().split('\t')
44
- print(each_line_split)
45
48
  genome_number += 1
46
49
 
50
+ if '' in each_line_split:
51
+ null_col_list.append(str(line_index))
52
+
47
53
  if (len(each_line_split) - 1) > max_col_num:
48
54
  max_col_num = (len(each_line_split) - 1)
49
55
 
50
- n = 1
56
+ n = 0
51
57
  while n < (len(each_line_split) - 1):
52
- print()
53
58
  paired_taxon_list_all.append('%s,%s' % (each_line_split[n], each_line_split[n+1]))
54
59
  n += 1
55
60
 
61
+ line_index += 1
62
+
63
+ if len(null_col_list) > 0:
64
+ print('Please make sure that there are no empty cells in data matrix, program exited!')
65
+ print('Pay attention to the following rows: %s' % ','.join(null_col_list))
66
+ exit()
67
+
56
68
  paired_taxon_list_uniq = unique_list_elements(paired_taxon_list_all)
57
69
  paired_taxon_list_uniq_count_dict = {}
58
70
  for each_key in paired_taxon_list_uniq:
@@ -61,8 +73,10 @@ def sankey(args):
61
73
  output_file_handle = open(output_file_txt, 'w')
62
74
  output_file_handle.write('C1,C2,Number\n')
63
75
  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)
76
+ link_value = paired_taxon_list_uniq_count_dict[each_genome_taxon]
77
+ for_out = '%s,%s\n' % (each_genome_taxon, link_value)
78
+ if link_value >= min_link_value:
79
+ output_file_handle.write(for_out)
66
80
  output_file_handle.close()
67
81
 
68
82
  # run R script
@@ -77,15 +91,17 @@ def sankey(args):
77
91
  if plot_height < 600:
78
92
  plot_height = 600
79
93
 
80
- os.system('Rscript %s -f %s -x %s -y %s' % (pwd_get_sankey_plot_R, output_file_txt, plot_width, plot_height))
94
+ print('Rscript get_sankey_plot.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))
81
96
 
82
97
 
83
98
  if __name__ == '__main__':
84
99
 
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')
100
+ sankey_parser = argparse.ArgumentParser(usage=sankey_usage)
101
+ sankey_parser.add_argument('-i', required=True, help='input datamatrix')
102
+ sankey_parser.add_argument('-p', required=True, help='output prefix')
103
+ sankey_parser.add_argument('-m', required=False, type=int, default=1, help='Minimal value to plot, default is 1')
104
+ sankey_parser.add_argument('-x', required=False, type=int, help='plot width')
105
+ sankey_parser.add_argument('-y', required=False, type=int, help='plot height')
90
106
  args = vars(sankey_parser.parse_args())
91
107
  sankey(args)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BioSAK
3
- Version: 1.91.2
3
+ Version: 1.91.3
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.2
23
+ BioSAK v1.91.3
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BioSAK
3
- Version: 1.91.2
3
+ Version: 1.91.3
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.2
23
+ BioSAK v1.91.3
@@ -975,10 +975,11 @@ if __name__ == '__main__':
975
975
  elif sys.argv[1] == 'sankey':
976
976
  from BioSAK import sankey
977
977
  sankey_parser = subparsers.add_parser('sankey', 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')
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('-m', required=False, type=int, default=1, help='Minimal value to plot, default is 1')
981
+ sankey_parser.add_argument('-x', required=False, type=int, help='plot width')
982
+ sankey_parser.add_argument('-y', required=False, type=int, help='plot height')
982
983
  args = vars(parser.parse_args())
983
984
  sankey.sankey(args)
984
985
 
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes