BioSAK 1.78.4__tar.gz → 1.78.5__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 (151) hide show
  1. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/VERSION +1 -1
  2. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/enrich.py +9 -6
  3. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK.egg-info/PKG-INFO +2 -2
  4. {BioSAK-1.78.4 → BioSAK-1.78.5}/PKG-INFO +2 -2
  5. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/BLCA_op_parser.py +0 -0
  6. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/BioSAK_config.py +0 -0
  7. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/COG2020.py +0 -0
  8. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/COG_boxplot_last1row.R +0 -0
  9. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/COG_boxplot_last2row.R +0 -0
  10. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/CheckM.py +0 -0
  11. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/ConvertMSA.py +0 -0
  12. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/DnaFeaturesViewer.py +0 -0
  13. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/FastaSplitler_by_num.py +0 -0
  14. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/FastaSplitler_by_size.py +0 -0
  15. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/GTDB_for_BLCA.py +0 -0
  16. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/Gene2Ctg.py +0 -0
  17. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/KEGG.py +0 -0
  18. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/KEGG_boxplot_last1row.R +0 -0
  19. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/KEGG_get_eukaryotic_kos.py +0 -0
  20. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/KeepRemovingTmp.py +0 -0
  21. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/MeanMappingDepth.py +0 -0
  22. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/MetaBiosample.py +0 -0
  23. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/MetaCHIP_phylo.hmm +0 -0
  24. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/MetaCyc_reactions_with_ec.txt +0 -0
  25. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/NetEnzymes.py +0 -0
  26. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/Newick_tree_plotter.py +0 -0
  27. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/OneLineAln.py +0 -0
  28. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/Prodigal.py +0 -0
  29. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/Reads_simulator.py +0 -0
  30. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/RunGraphMB.py +0 -0
  31. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/SILVA_for_BLCA.py +0 -0
  32. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/SankeyTaxon.py +0 -0
  33. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/SliceMSA.py +0 -0
  34. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/SubsampleLongReads.py +0 -0
  35. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/Tax4Fun2IndOTU.py +0 -0
  36. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/VisBlastOp.py +0 -0
  37. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/VisGeneFlk.py +0 -0
  38. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/__init__.py +0 -0
  39. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/arCOG.py +0 -0
  40. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/bam2reads.py +0 -0
  41. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/boxplot_last1row.R +0 -0
  42. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/boxplot_matrix_COG.py +0 -0
  43. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/boxplot_matrix_COG_backup.py +0 -0
  44. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/boxplot_matrix_KEGG.py +0 -0
  45. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/boxplot_matrix_dbCAN.py +0 -0
  46. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/cat_fa.py +0 -0
  47. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/cdd2cog.pl +0 -0
  48. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/checkm_marker.py +0 -0
  49. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/compare_trees.R +0 -0
  50. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/compare_trees.py +0 -0
  51. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/cross_link_seqs.py +0 -0
  52. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/dbCAN.py +0 -0
  53. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/download_GenBank_genome_subset_prokaryotes_csv.py +0 -0
  54. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/dwnld_sra_reads.py +0 -0
  55. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/exe_cmds.py +0 -0
  56. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/ezaai2mat.py +0 -0
  57. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/fa2id.py +0 -0
  58. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/fa2phy.py +0 -0
  59. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/fa2tree.py +0 -0
  60. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/format_converter.py +0 -0
  61. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/format_leaf_name.py +0 -0
  62. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/fq2fa.py +0 -0
  63. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/gbk2faa.py +0 -0
  64. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/gbk2ffn.py +0 -0
  65. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/gbk2fna.py +0 -0
  66. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/gbk_to_ffn_faa.py +0 -0
  67. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_EC_from_ko_stats_D.py +0 -0
  68. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_GTDB_taxon_gnm.py +0 -0
  69. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_MAG_reads_long.py +0 -0
  70. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_Pfam_hmms.py +0 -0
  71. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_SCG_tree.py +0 -0
  72. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_TopHits_taxonomy.py +0 -0
  73. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_aa_composition.py +0 -0
  74. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_bin_abundance copy.py +0 -0
  75. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_data_matrix.py +0 -0
  76. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_gc.py +0 -0
  77. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_gene_depth.py +0 -0
  78. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_genome_GTDB.py +0 -0
  79. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_genome_NCBI.py +0 -0
  80. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_genome_NCBI_v1.py +0 -0
  81. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_genome_NCBI_v2.py +0 -0
  82. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_gnm_size.py +0 -0
  83. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_ko_gene_seqs.py +0 -0
  84. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_krona_plot.py +0 -0
  85. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_reads_from_sam.py +0 -0
  86. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_reads_id_in_sam.py +0 -0
  87. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_sankey_plot.R +0 -0
  88. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_top_hit.py +0 -0
  89. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/get_total_length.py +0 -0
  90. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/global_functions.py +0 -0
  91. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/hpc3.py +0 -0
  92. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/iTOL.py +0 -0
  93. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/js_cmds.py +0 -0
  94. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/js_hpc3.py +0 -0
  95. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/keep_best_hit.py +0 -0
  96. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/ko00001.keg +0 -0
  97. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/koala.py +0 -0
  98. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/label_tree.R +0 -0
  99. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/label_tree.py +0 -0
  100. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/link_16S_MAG.py +0 -0
  101. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/magabund.py +0 -0
  102. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/magabund2.py +0 -0
  103. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/manipulator_fasta.py +0 -0
  104. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/manipulator_msa.py +0 -0
  105. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/manipulator_newick.py +0 -0
  106. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/manipulator_sam.py +0 -0
  107. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/mean_MAG_cov.py +0 -0
  108. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/merge_seq.py +0 -0
  109. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/metaAssembly.py +0 -0
  110. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/metabat2concoct.py +0 -0
  111. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/metabat2maxbin.py +0 -0
  112. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/msa_to_distance_matrix.py +0 -0
  113. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/ncbi_dataset.py +0 -0
  114. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/odp.py +0 -0
  115. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/parse_MetaCyc_RxnDB.py +0 -0
  116. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/parse_mmseqs_tsv.py +0 -0
  117. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/plot_mag.py +0 -0
  118. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/plot_sam_depth.py +0 -0
  119. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/plot_tree.R +0 -0
  120. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/prefix_file.py +0 -0
  121. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/prokka.py +0 -0
  122. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/reads2bam.py +0 -0
  123. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/rename_leaves.py +0 -0
  124. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/rename_reads_for_Reago.py +0 -0
  125. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/rename_seq.py +0 -0
  126. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/rename_seqs.py +0 -0
  127. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/ribbon.py +0 -0
  128. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/sam2bam.py +0 -0
  129. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/sampling_GTDB_gnms.py +0 -0
  130. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/select_seq.py +0 -0
  131. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/sep_reads_by_barcode.py +0 -0
  132. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/slice_seq.py +0 -0
  133. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/split_fasta.py +0 -0
  134. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/split_folder.py +0 -0
  135. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/split_sam.py +0 -0
  136. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/submitHPC.py +0 -0
  137. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/subset_GTDB_meta.py +0 -0
  138. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/subset_tree.py +0 -0
  139. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/top_16S_hits.py +0 -0
  140. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/top_hits_in_a_group.py +0 -0
  141. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK/usearch_uc.py +0 -0
  142. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK.egg-info/SOURCES.txt +0 -0
  143. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK.egg-info/dependency_links.txt +0 -0
  144. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK.egg-info/requires.txt +0 -0
  145. {BioSAK-1.78.4 → BioSAK-1.78.5}/BioSAK.egg-info/top_level.txt +0 -0
  146. {BioSAK-1.78.4 → BioSAK-1.78.5}/LICENSE +0 -0
  147. {BioSAK-1.78.4 → BioSAK-1.78.5}/MANIFEST.in +0 -0
  148. {BioSAK-1.78.4 → BioSAK-1.78.5}/README.md +0 -0
  149. {BioSAK-1.78.4 → BioSAK-1.78.5}/bin/BioSAK +0 -0
  150. {BioSAK-1.78.4 → BioSAK-1.78.5}/setup.cfg +0 -0
  151. {BioSAK-1.78.4 → BioSAK-1.78.5}/setup.py +0 -0
@@ -1,4 +1,4 @@
1
- 1.78.4
1
+ 1.78.5
2
2
  - fixed bugs
3
3
 
4
4
  1.78.0
@@ -11,7 +11,9 @@ enrich_usage = '''
11
11
 
12
12
  BioSAK enrich -i annotation_files -x txt -g grouping.txt -o output_dir -bc
13
13
 
14
- # The number of genome groups has to be TWO!!!
14
+ # Note:
15
+ 1. The number of genome groups has to be TWO!!!
16
+ 2. Group name should NOT be 1 and 0. use some alphabet or words instead.
15
17
 
16
18
  # Example input files:
17
19
  https://github.com/songweizhi/BioSAK/tree/master/demo_data/enrich
@@ -234,16 +236,19 @@ def enrich(args):
234
236
  ko_id_list = []
235
237
  col_index = 0
236
238
  for column in column_list:
237
- if col_index >= 2:
239
+ if col_index >= 1:
240
+ print('Processing %s/%s: %s' % ((col_index - 1), len(column_list)-1, column))
238
241
  group1 = df.where(df.Group == group_1_id).dropna()[column]
239
242
  group2 = df.where(df.Group == group_2_id).dropna()[column]
243
+
244
+ # to calculate the presence coverage, nothing about the enrichment stats
240
245
  group1_no_zero_pct = len(remove_0_from_Pandas_Series(group1))*100/len(group1)
241
246
  group2_no_zero_pct = len(remove_0_from_Pandas_Series(group2))*100/len(group2)
242
247
  group1_no_zero_pct = float("{0:.2f}".format(group1_no_zero_pct))
243
248
  group2_no_zero_pct = float("{0:.2f}".format(group2_no_zero_pct))
244
249
  ko_to_group_detected_pct_dict[column] = [group1_no_zero_pct, group2_no_zero_pct]
245
-
246
- print('Processing %s/%s: %s' % ((col_index - 1), len(column_list)-1, column))
250
+ # print('%s\t%s\t%s' % (column, group_1_id, list(group1)))
251
+ # print('%s\t%s\t%s' % (column, group_2_id, list(group2)))
247
252
 
248
253
  # store group mean into dict
249
254
  group1_mean = float("{0:.2f}".format(sum(group1) / len(group1)))
@@ -271,12 +276,10 @@ def enrich(args):
271
276
  current_p_adjusted = float("{0:.3f}".format(p_value_list_adjusted[x]))
272
277
  current_p_group_mean = [str(i) for i in ko_to_group_mean_dict[ko_id_list[x]]]
273
278
  current_p_detected_pct = [str(i) for i in ko_to_group_detected_pct_dict[ko_id_list[x]]]
274
-
275
279
  group_1_mean = current_p_group_mean[0]
276
280
  group_2_mean = current_p_group_mean[1]
277
281
  group_1_no_zero_pct = current_p_detected_pct[0]
278
282
  group_2_no_zero_pct = current_p_detected_pct[1]
279
-
280
283
  output_test_handle.write('%s\t%s\t%s\t%s\t%s\t%s\t%s\t%s\n' % (ko_id_list[x], group_1_mean, group_1_no_zero_pct, group_2_mean, group_2_no_zero_pct, current_p, current_p_adjusted, ko_desc_dict[ko_id_list[x]]))
281
284
  x += 1
282
285
  output_test_handle.close()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BioSAK
3
- Version: 1.78.4
3
+ Version: 1.78.5
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.78.4
23
+ BioSAK v1.78.5
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: BioSAK
3
- Version: 1.78.4
3
+ Version: 1.78.5
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.78.4
23
+ BioSAK v1.78.5
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes