BioSAK 1.115.2__tar.gz → 1.115.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.115.2 → BioSAK-1.115.4}/BioSAK/VERSION +1 -1
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_eu_otu.py +20 -21
- BioSAK-1.115.4/BioSAK/tmp_6.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK.egg-info/PKG-INFO +2 -2
- {BioSAK-1.115.2 → BioSAK-1.115.4}/PKG-INFO +2 -2
- {BioSAK-1.115.2 → BioSAK-1.115.4}/bin/BioSAK +6 -5
- BioSAK-1.115.2/BioSAK/tmp_6.py +0 -12
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/BLCA_op_parser.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/BioSAK_config.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/COG2020.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/COG_boxplot_last1row.R +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/COG_boxplot_last2row.R +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/CheckM.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/Combine_KEGG_arCOG.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/DendroDF.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/DnaFeaturesViewer.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/FastaSplitler_by_num.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/FastaSplitler_by_size.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/FasterqDump.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/GTDB_for_BLCA.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/Gene2Ctg.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/KEGG.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/KEGG_boxplot_last1row.R +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/KEGG_get_eukaryotic_kos.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/KeepRemovingTmp.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/MeanMappingDepth.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/MetaBiosample.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/MetaCHIP_phylo.hmm +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/MetaCyc_reactions_with_ec.txt +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/NetEnzymes.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/Prodigal.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/Reads_simulator.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/RunGraphMB.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/SILVA_for_BLCA.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/SankeyTaxon.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/SubsampleLongReads.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/Tax4Fun2IndOTU.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/UNITE_for_BLCA.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/Usearch16S.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/VisBlastOp.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/VisGeneFlk.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/__init__.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/abd.backup.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/abd.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/abd_16s_amplicon.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/abd_16s_metagenome.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/abd_mask.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/abd_rename_and_combine.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/abund.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/add_desc.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/arCOG.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/bam2reads.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/blast.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/blca.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/blca_generate_abundance_table.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/blca_main.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/blca_subset_db_acc.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/blca_subset_db_gg.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/boxplot.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/boxplot_last1row.R +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/boxplot_matrix_COG.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/boxplot_matrix_COG_backup.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/boxplot_matrix_KEGG.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/boxplot_matrix_dbCAN.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/cat_fa.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/cdd2cog.pl +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/checkm_marker.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/combine_low_abd_otu.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/compare_sets.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/count_num.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/cross_link_seqs.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/dbCAN.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/download_GenBank_genome_subset_prokaryotes_csv.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/enrich.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/exe_cmds.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/ezaai2mat.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/fa2id.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/fastaai.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/format_converter.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/fq2fa.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/gapseq.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/gbk2faa.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/gbk2ffn.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/gbk2fna.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/gbk2gff.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/gbk_to_ffn_faa.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/gc.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_EC_from_ko_stats_D.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_GTDB_taxon_gnm.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_MAG_reads_long.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_Pfam_hmms.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_TopHits_taxonomy.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_aa_composition.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_abd1_mask.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_abd3_stats.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_bin_abundance copy.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_data_matrix.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_gene_depth.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_genome_GTDB.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_genome_NCBI.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_genome_NCBI_v1.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_genome_NCBI_v2.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_gnm_size.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_ko_gene_seqs.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_krona_plot.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_reads_from_sam.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_reads_id_in_sam.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_top_hit.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/get_total_length.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/gff2chrom.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/global_functions.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/hpc3.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/js_cmds.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/js_hpc3.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/keep_best_hit.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/ko00001.keg +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/koala.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/link_16S_MAG.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/link_16s.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/magabund.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/magabund2.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/manipulator_fasta.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/manipulator_msa.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/manipulator_newick.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/manipulator_sam.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/mann_whitney_u.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/mean_MAG_cov.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/merge_df.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/merge_seq.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/metaAssembly.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/metabat2concoct.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/metabat2maxbin.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/mmseqs.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/msa_to_distance_matrix.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/ncbi_dataset.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/odp.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/parse_MetaCyc_RxnDB.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/parse_mmseqs_tsv.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/plot_mag.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/plot_sam_depth.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/plot_tree.R +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/prefix_file.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/prefix_seq_by_file_name.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/prokka.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/reads2bam.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/rename_df_row.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/rename_reads_for_Reago.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/rename_seq.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/ribbon.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/rm_low_abd_otu.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/rm_low_depth_sample.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/sam2bam.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/sampling_GTDB_gnms.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/sankey.R +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/sankey.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/select_seq.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/sep_reads_by_barcode.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/slice_seq.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/split_fasta.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/split_folder.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/split_sam.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/sra.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/srun.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/statsTaxa.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/stats_arcog.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/stats_ko.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/submitHPC.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/subset_GTDB_meta.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/subset_df.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/subset_tree.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/taxdump.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/tmp.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/tmp_1.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/tmp_2.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/tmp_3.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/tmp_4.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/tmp_5.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/top_16S_hits.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/top_hits_in_a_group.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/transpose.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/trim.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/usearch_uc.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/vis_color_scheme.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK/wilcox.py +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK.egg-info/SOURCES.txt +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK.egg-info/dependency_links.txt +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK.egg-info/requires.txt +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/BioSAK.egg-info/top_level.txt +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/LICENSE +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/MANIFEST.in +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/README.md +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/setup.cfg +0 -0
- {BioSAK-1.115.2 → BioSAK-1.115.4}/setup.py +0 -0
|
@@ -7,7 +7,7 @@ get_eu_otu_usage = '''
|
|
|
7
7
|
|
|
8
8
|
BioSAK get_eu_otu -i otu_vs_nt.txt -o EU_OTU.txt -node nodes.dmp -db RefSeq_taxonomy.txt -n 10
|
|
9
9
|
|
|
10
|
-
# An OTU was considered as eukaryotic if more than half of its hits are from Eukaryotes
|
|
10
|
+
# An OTU was considered as eukaryotic if more than half of its hits are from Eukaryotes.
|
|
11
11
|
|
|
12
12
|
===============================================================================================
|
|
13
13
|
'''
|
|
@@ -63,14 +63,15 @@ def group_tax_by_domain(nodes_dmp):
|
|
|
63
63
|
|
|
64
64
|
def get_eu_otu(args):
|
|
65
65
|
|
|
66
|
-
blast_op_txt
|
|
67
|
-
eu_otu_txt
|
|
68
|
-
nodes_dmp
|
|
69
|
-
refseq_tax_txt
|
|
70
|
-
hit_num_to_keep
|
|
66
|
+
blast_op_txt = args['i']
|
|
67
|
+
eu_otu_txt = args['o']
|
|
68
|
+
nodes_dmp = args['node']
|
|
69
|
+
refseq_tax_txt = args['db']
|
|
70
|
+
hit_num_to_keep = args['n']
|
|
71
|
+
consider_as_eu_cutoff = args['c']
|
|
71
72
|
|
|
72
73
|
f_name, f_path, f_base, f_ext = sep_path_basename_ext(eu_otu_txt)
|
|
73
|
-
cmd_txt = '%s/%
|
|
74
|
+
cmd_txt = '%s/%s_RefSeq_classification.sh' % (f_path, f_base)
|
|
74
75
|
tax_set_bac, tax_set_ar, tax_set_eu, tax_set_virus = group_tax_by_domain(nodes_dmp)
|
|
75
76
|
|
|
76
77
|
refseq_tax_dict = dict()
|
|
@@ -120,15 +121,11 @@ def get_eu_otu(args):
|
|
|
120
121
|
|
|
121
122
|
hit_num_without_na = hit_num_bac + hit_num_ar + hit_num_eu + hit_num_virus
|
|
122
123
|
|
|
123
|
-
# print(hit_tax_list)
|
|
124
|
-
# print('%s\t%s\t%s\t%s\t%s\t%s' % (query, hit_num_bac, hit_num_ar, hit_num_eu, hit_num_virus, hit_num_na))
|
|
125
|
-
# print()
|
|
126
|
-
|
|
127
124
|
# An OTU was considered as eukaryotic if more than half of the hits are from Eukaryotes
|
|
128
125
|
eu_hit_pct = 0
|
|
129
126
|
if hit_num_without_na > 0:
|
|
130
127
|
eu_hit_pct = hit_num_eu / hit_num_without_na
|
|
131
|
-
if eu_hit_pct >
|
|
128
|
+
if eu_hit_pct > consider_as_eu_cutoff:
|
|
132
129
|
eu_otu_set.add(query)
|
|
133
130
|
|
|
134
131
|
# write out EU OTU
|
|
@@ -137,25 +134,27 @@ def get_eu_otu(args):
|
|
|
137
134
|
eu_otu_txt_handle.close()
|
|
138
135
|
|
|
139
136
|
# report
|
|
137
|
+
print('Note:')
|
|
140
138
|
if len(unclassified_refseq_set) > 0:
|
|
141
139
|
cmd_txt_handle = open(cmd_txt, 'w')
|
|
142
140
|
for seq_accession in unclassified_refseq_set:
|
|
143
141
|
cmd = 'esearch -db nucleotide -query %s | efetch -format docsum | xtract -pattern DocumentSummary -element TaxId > %s.txt' % (seq_accession, seq_accession)
|
|
144
142
|
cmd_txt_handle.write(cmd + '\n')
|
|
145
143
|
cmd_txt_handle.close()
|
|
146
|
-
print('
|
|
147
|
-
print('
|
|
148
|
-
|
|
149
|
-
|
|
144
|
+
print('Taxon ID for %s RefSeqs is missing, to increase accuracy, add their classifications to %s and rerun this script.' % (len(unclassified_refseq_set), refseq_tax_txt))
|
|
145
|
+
print('RefSeq classification commands exported to: %s' % cmd_txt)
|
|
146
|
+
print('The ID of %s eukaryotic OTUs has exported to: %s' % (len(eu_otu_set), eu_otu_txt))
|
|
147
|
+
print('Done!')
|
|
150
148
|
|
|
151
149
|
|
|
152
150
|
if __name__ == '__main__':
|
|
153
151
|
|
|
154
152
|
get_eu_otu_parser = argparse.ArgumentParser(usage=get_eu_otu_usage)
|
|
155
|
-
get_eu_otu_parser.add_argument('-i', required=True,
|
|
156
|
-
get_eu_otu_parser.add_argument('-o', required=True,
|
|
157
|
-
get_eu_otu_parser.add_argument('-node', required=True,
|
|
158
|
-
get_eu_otu_parser.add_argument('-db', required=True,
|
|
159
|
-
get_eu_otu_parser.add_argument('-
|
|
153
|
+
get_eu_otu_parser.add_argument('-i', required=True, help='blast result, outfmt need to be 6')
|
|
154
|
+
get_eu_otu_parser.add_argument('-o', required=True, help='output of identified eukaryotic OTUs')
|
|
155
|
+
get_eu_otu_parser.add_argument('-node', required=True, help='nodes.dmp ')
|
|
156
|
+
get_eu_otu_parser.add_argument('-db', required=True, help='RefSeq taxonomy file')
|
|
157
|
+
get_eu_otu_parser.add_argument('-c', required=False, type=float, default=0.3, help='consider as eukaryotic if the proportion of eukaryotic hits higher than this cutoff, default is 0.3')
|
|
158
|
+
get_eu_otu_parser.add_argument('-n', required=False, type=int, default=10, help='number of top hits to consider, default is 10')
|
|
160
159
|
args = vars(get_eu_otu_parser.parse_args())
|
|
161
160
|
get_eu_otu(args)
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioSAK
|
|
3
|
-
Version: 1.115.
|
|
3
|
+
Version: 1.115.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.115.
|
|
23
|
+
BioSAK v1.115.4
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioSAK
|
|
3
|
-
Version: 1.115.
|
|
3
|
+
Version: 1.115.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.115.
|
|
23
|
+
BioSAK v1.115.4
|
|
@@ -1225,11 +1225,12 @@ if __name__ == '__main__':
|
|
|
1225
1225
|
elif sys.argv[1] == 'get_eu_otu':
|
|
1226
1226
|
from BioSAK import get_eu_otu
|
|
1227
1227
|
get_eu_otu_parser = subparsers.add_parser('get_eu_otu', usage=get_eu_otu.get_eu_otu_usage)
|
|
1228
|
-
get_eu_otu_parser.add_argument('-i', required=True,
|
|
1229
|
-
get_eu_otu_parser.add_argument('-o', required=True,
|
|
1230
|
-
get_eu_otu_parser.add_argument('-node', required=True,
|
|
1231
|
-
get_eu_otu_parser.add_argument('-db', required=True,
|
|
1232
|
-
get_eu_otu_parser.add_argument('-
|
|
1228
|
+
get_eu_otu_parser.add_argument('-i', required=True, help='blast result, outfmt need to be 6')
|
|
1229
|
+
get_eu_otu_parser.add_argument('-o', required=True, help='output of identified eukaryotic OTUs')
|
|
1230
|
+
get_eu_otu_parser.add_argument('-node', required=True, help='nodes.dmp ')
|
|
1231
|
+
get_eu_otu_parser.add_argument('-db', required=True, help='RefSeq taxonomy file')
|
|
1232
|
+
get_eu_otu_parser.add_argument('-c', required=False, type=float, default=0.3, help='consider as eukaryotic if the proportion of eukaryotic hits higher than this cutoff, default is 0.3')
|
|
1233
|
+
get_eu_otu_parser.add_argument('-n', required=False, type=int, default=10, help='number of top hits to consider, default is 10')
|
|
1233
1234
|
args = vars(parser.parse_args())
|
|
1234
1235
|
get_eu_otu.get_eu_otu(args)
|
|
1235
1236
|
|
BioSAK-1.115.2/BioSAK/tmp_6.py
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import os
|
|
2
|
-
|
|
3
|
-
seq_id_txt = '/Users/songweizhi/Desktop/s06_AllSamples_unoise_nc_vs_nt_formatted2_uniq.txt'
|
|
4
|
-
op_dir = '/Users/songweizhi/Desktop/seq_tax_dir'
|
|
5
|
-
cmd_txt = '/Users/songweizhi/Desktop/esearch_cmds.txt'
|
|
6
|
-
|
|
7
|
-
cmd_txt_handle = open(cmd_txt, 'w')
|
|
8
|
-
for each_id in open(seq_id_txt):
|
|
9
|
-
seq_id = each_id.strip()
|
|
10
|
-
esearch_cmd = 'esearch -db nucleotide -query %s | efetch -format docsum | xtract -pattern DocumentSummary -element TaxId > %s.txt' % (seq_id, seq_id)
|
|
11
|
-
cmd_txt_handle.write(esearch_cmd + '\n')
|
|
12
|
-
cmd_txt_handle.close()
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|