BioSAK 1.99.2__tar.gz → 1.100.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.99.2 → BioSAK-1.100.0}/BioSAK/VERSION +3 -0
- BioSAK-1.100.0/BioSAK/trim.py +62 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK.egg-info/PKG-INFO +2 -2
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK.egg-info/SOURCES.txt +1 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/PKG-INFO +2 -2
- {BioSAK-1.99.2 → BioSAK-1.100.0}/bin/BioSAK +17 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/BLCA_op_parser.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/BioSAK_config.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/COG2020.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/COG_boxplot_last1row.R +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/COG_boxplot_last2row.R +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/CheckM.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/Combine_KEGG_arCOG.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/DendroDF.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/DnaFeaturesViewer.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/FastaSplitler_by_num.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/FastaSplitler_by_size.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/GTDB_for_BLCA.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/Gene2Ctg.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/KEGG.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/KEGG_boxplot_last1row.R +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/KEGG_get_eukaryotic_kos.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/KeepRemovingTmp.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/MeanMappingDepth.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/MetaBiosample.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/MetaCHIP_phylo.hmm +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/MetaCyc_reactions_with_ec.txt +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/NetEnzymes.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/Prodigal.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/Reads_simulator.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/RunGraphMB.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/SILVA_for_BLCA.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/SankeyTaxon.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/SubsampleLongReads.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/Tax4Fun2IndOTU.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/UNITE_for_BLCA.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/VisBlastOp.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/VisGeneFlk.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/__init__.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/add_desc.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/arCOG.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/bam2reads.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/boxplot.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/boxplot_last1row.R +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/boxplot_matrix_COG.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/boxplot_matrix_COG_backup.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/boxplot_matrix_KEGG.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/boxplot_matrix_dbCAN.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/cat_fa.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/cdd2cog.pl +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/checkm_marker.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/compare_sets.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/count_num.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/cross_link_seqs.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/dbCAN.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/download_GenBank_genome_subset_prokaryotes_csv.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/enrich.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/exe_cmds.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/ezaai2mat.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/fa2id.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/fastaai.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/format_converter.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/fq2fa.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/gapseq.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/gbk2faa.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/gbk2ffn.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/gbk2fna.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/gbk2gff.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/gbk_to_ffn_faa.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/gc.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_EC_from_ko_stats_D.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_GTDB_taxon_gnm.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_MAG_reads_long.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_Pfam_hmms.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_TopHits_taxonomy.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_aa_composition.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_bin_abundance copy.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_data_matrix.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_gene_depth.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_genome_GTDB.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_genome_NCBI.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_genome_NCBI_v1.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_genome_NCBI_v2.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_gnm_size.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_ko_gene_seqs.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_krona_plot.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_reads_from_sam.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_reads_id_in_sam.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_top_hit.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/get_total_length.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/gff2chrom.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/global_functions.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/hpc3.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/js_cmds.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/js_hpc3.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/keep_best_hit.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/ko00001.keg +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/koala.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/link_16S_MAG.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/magabund.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/magabund2.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/manipulator_fasta.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/manipulator_msa.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/manipulator_newick.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/manipulator_sam.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/mann_whitney_u.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/mean_MAG_cov.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/merge_df.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/merge_seq.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/metaAssembly.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/metabat2concoct.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/metabat2maxbin.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/msa_to_distance_matrix.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/ncbi_dataset.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/odp.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/parse_MetaCyc_RxnDB.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/parse_mmseqs_tsv.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/plot_mag.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/plot_sam_depth.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/plot_tree.R +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/prefix_file.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/prefix_seq_by_file_name.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/prokka.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/reads2bam.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/rename_reads_for_Reago.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/rename_seq.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/ribbon.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/sam2bam.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/sampling_GTDB_gnms.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/sankey.R +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/sankey.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/select_seq.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/sep_reads_by_barcode.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/slice_seq.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/split_fasta.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/split_folder.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/split_sam.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/sra.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/srun.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/statsTaxa.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/stats_arcog.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/stats_ko.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/submitHPC.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/subset_GTDB_meta.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/subset_df.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/subset_tree.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/tmp_1.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/tmp_2.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/tmp_3.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/top_16S_hits.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/top_hits_in_a_group.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/transpose.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/usearch_uc.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/vis_color_scheme.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK/wilcox.py +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK.egg-info/dependency_links.txt +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK.egg-info/requires.txt +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/BioSAK.egg-info/top_level.txt +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/LICENSE +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/MANIFEST.in +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/README.md +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/setup.cfg +0 -0
- {BioSAK-1.99.2 → BioSAK-1.100.0}/setup.py +0 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import argparse
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
trim_usage = '''
|
|
6
|
+
=========================== trim example commands ===========================
|
|
7
|
+
|
|
8
|
+
BioSAK trim -1 Cliona_R1.fastq.gz -2 Cliona_R2.fastq.gz -a TruSeq3-PE-2.fa
|
|
9
|
+
|
|
10
|
+
=============================================================================
|
|
11
|
+
'''
|
|
12
|
+
|
|
13
|
+
def sep_path_basename_ext(file_in):
|
|
14
|
+
|
|
15
|
+
f_path, f_name = os.path.split(file_in)
|
|
16
|
+
if f_path == '':
|
|
17
|
+
f_path = '.'
|
|
18
|
+
f_base, f_ext = os.path.splitext(f_name)
|
|
19
|
+
|
|
20
|
+
return f_name, f_path, f_base, f_ext[1:]
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def trim(args):
|
|
24
|
+
|
|
25
|
+
fastq_r1 = args['1']
|
|
26
|
+
fastq_r2 = args['2']
|
|
27
|
+
adapter_file = args['a']
|
|
28
|
+
leading = args['leading']
|
|
29
|
+
trailing = args['trailing']
|
|
30
|
+
crop = args['crop']
|
|
31
|
+
headcrop = args['headcrop']
|
|
32
|
+
swl = args['swl']
|
|
33
|
+
swq = args['swq']
|
|
34
|
+
minlen = args['minlen']
|
|
35
|
+
|
|
36
|
+
_, _, r1_base, r1_ext = sep_path_basename_ext(fastq_r1)
|
|
37
|
+
_, _, r2_base, r2_ext = sep_path_basename_ext(fastq_r2)
|
|
38
|
+
|
|
39
|
+
r1_p = '%s_P.%s' % (r1_base, r1_ext)
|
|
40
|
+
r1_up = '%s_UP.%s' % (r1_base, r1_ext)
|
|
41
|
+
r2_p = '%s_P.%s' % (r2_base, r2_ext)
|
|
42
|
+
r2_up = '%s_UP.%s' % (r2_base, r2_ext)
|
|
43
|
+
|
|
44
|
+
trimmomatic_cmd = 'trimmomatic PE %s %s %s %s %s %s ILLUMINACLIP:%s:2:30:10 LEADING:%s TRAILING:%s CROP:%s HEADCROP:%s SLIDINGWINDOW:%s:%s MINLEN:%s' % (fastq_r1, fastq_r2, r1_p, r1_up, r2_p, r2_up, adapter_file, leading, trailing, crop, headcrop, swl, swq, minlen)
|
|
45
|
+
print(trimmomatic_cmd)
|
|
46
|
+
os.system(trimmomatic_cmd)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
if __name__ == '__main__':
|
|
50
|
+
trim_parser = argparse.ArgumentParser(usage=trim_usage)
|
|
51
|
+
trim_parser.add_argument('-1', required=True, help='fastq R1')
|
|
52
|
+
trim_parser.add_argument('-2', required=True, help='fastq R2')
|
|
53
|
+
trim_parser.add_argument('-a', required=True, help='adapter file, e.g., TruSeq3-PE-2.fa')
|
|
54
|
+
trim_parser.add_argument('-leading', required=False, type=int, default=25, help='leading, default is 25')
|
|
55
|
+
trim_parser.add_argument('-trailing', required=False, type=int, default=25, help='trailing, default is 25')
|
|
56
|
+
trim_parser.add_argument('-crop', required=False, type=int, default=140, help='crop, default is 140')
|
|
57
|
+
trim_parser.add_argument('-headcrop', required=False, type=int, default=10, help='headcrop, default is 10')
|
|
58
|
+
trim_parser.add_argument('-swl', required=False, type=int, default=5, help='slidingwindow length, default is 5')
|
|
59
|
+
trim_parser.add_argument('-swq', required=False, type=int, default=30, help='slidingwindow q-value, default is 30')
|
|
60
|
+
trim_parser.add_argument('-minlen', required=False, type=int, default=36, help='minlen, default is 36')
|
|
61
|
+
args = vars(trim_parser.parse_args())
|
|
62
|
+
trim(args)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioSAK
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.100.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.100.0
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: BioSAK
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.100.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.100.0
|
|
@@ -132,6 +132,7 @@ def print_main_help():
|
|
|
132
132
|
sankey -> get sankey plot
|
|
133
133
|
sra -> Download reads with sratoolkit
|
|
134
134
|
vis_color_scheme -> Visualize color scheme
|
|
135
|
+
trim -> a wrapper for trimmomatic
|
|
135
136
|
|
|
136
137
|
1. Phylogenetic tree-related modules have been moved to TreeSAK
|
|
137
138
|
2. Upgrade with: pip3 install --upgrade BioSAK
|
|
@@ -1070,6 +1071,22 @@ if __name__ == '__main__':
|
|
|
1070
1071
|
args = vars(parser.parse_args())
|
|
1071
1072
|
vis_color_scheme.vis_color_scheme(args)
|
|
1072
1073
|
|
|
1074
|
+
elif sys.argv[1] == 'trim':
|
|
1075
|
+
from BioSAK import trim
|
|
1076
|
+
trim_parser = subparsers.add_parser('trim', usage=trim.trim_usage)
|
|
1077
|
+
trim_parser.add_argument('-1', required=True, help='fastq R1')
|
|
1078
|
+
trim_parser.add_argument('-2', required=True, help='fastq R2')
|
|
1079
|
+
trim_parser.add_argument('-a', required=True, help='adapter file, e.g., TruSeq3-PE-2.fa')
|
|
1080
|
+
trim_parser.add_argument('-leading', required=False, type=int, default=25, help='leading, default is 25')
|
|
1081
|
+
trim_parser.add_argument('-trailing', required=False, type=int, default=25, help='trailing, default is 25')
|
|
1082
|
+
trim_parser.add_argument('-crop', required=False, type=int, default=140, help='crop, default is 140')
|
|
1083
|
+
trim_parser.add_argument('-headcrop', required=False, type=int, default=10, help='headcrop, default is 10')
|
|
1084
|
+
trim_parser.add_argument('-swl', required=False, type=int, default=5, help='slidingwindow length, default is 5')
|
|
1085
|
+
trim_parser.add_argument('-swq', required=False, type=int, default=30, help='slidingwindow q-value, default is 30')
|
|
1086
|
+
trim_parser.add_argument('-minlen', required=False, type=int, default=36, help='minlen, default is 36')
|
|
1087
|
+
args = vars(parser.parse_args())
|
|
1088
|
+
trim.trim(args)
|
|
1089
|
+
|
|
1073
1090
|
else:
|
|
1074
1091
|
print('Unrecognized module: %s, program exited' % sys.argv[1])
|
|
1075
1092
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|