Skip to content

Commit

Permalink
Massive, long overdue update
Browse files Browse the repository at this point in the history
  • Loading branch information
DarwinW13 committed Aug 12, 2024
1 parent 0d82300 commit 8e5bd11
Show file tree
Hide file tree
Showing 41 changed files with 71,535 additions and 1,302 deletions.
5 changes: 2 additions & 3 deletions INSTALL/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ Setting up ASAP via Anaconda
----------------------------
**Linux/MAC**

**1) Install Anaconda**
**1A) Install Anaconda (NOTE: Miniconda will NOT work)**
https://docs.anaconda.com/anaconda/install/

**1B) Install gcc**
``sudo apt install gcc``

Expand Down Expand Up @@ -32,7 +31,7 @@ Setting up ASAP via Anaconda
**Navigate to where you installed the ASAP repository
and run one the following setups:**
**Quick Setup**
``conda env create --file asap.yml``
``conda env create --file asap.txt``

``conda activate asap``

Expand Down
132 changes: 132 additions & 0 deletions asap.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
@EXPLICIT
https://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2024.6.2-hbcca054_0.conda
https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.36.1-hea4e1c9_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libgfortran5-11.2.0-h5c6108e_11.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-11.2.0-he4da1e4_11.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/openjdk-10.0.2-h14c3975_1015.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/pbzip2-1.1.13-0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libgfortran-ng-11.2.0-h69a702a_11.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libgomp-11.2.0-h1d223b6_11.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-1_gnu.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-11.2.0-h1d223b6_11.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h7f98852_4.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/c-ares-1.18.1-h7f98852_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/jpeg-9e-h166bdaf_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libbrotlicommon-1.0.9-h166bdaf_7.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libdeflate-1.7-h7f98852_5.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libev-4.33-h516909a_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.2-h7f98852_5.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.0-h7f98852_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libopenblas-0.3.18-pthreads_h8fe5266_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libwebp-base-1.2.2-h7f98852_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.2.11-h36c2ea0_1013.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/lz4-c-1.9.3-h9c3ff4c_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.2-h58526e2_4.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/openssl-1.1.1o-h166bdaf_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/perl-5.32.1-1_h7f98852_perl5.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/tbb-2020.2-h4bd325d_4.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.5-h516909a_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libblas-3.9.0-12_linux64_openblas.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libbrotlidec-1.0.9-h166bdaf_7.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libbrotlienc-1.0.9-h166bdaf_7.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20191231-he28a2e2_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/readline-8.1-h46c0cb4_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/zlib-1.2.11-h36c2ea0_1013.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/brotli-bin-1.0.9-h166bdaf_7.tar.bz2
https://conda.anaconda.org/bioconda/linux-64/bwa-0.7.17-h5bf99c6_8.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libcblas-3.9.0-12_linux64_openblas.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/liblapack-3.9.0-12_linux64_openblas.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libnghttp2-1.43.0-h812cca2_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libpng-1.6.37-h21135ba_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libssh2-1.10.0-ha56f1ee_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/sqlite-3.37.0-h9cd32fc_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.11-h27826a3_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/zstd-1.4.9-ha95c52a_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/brotli-1.0.9-h166bdaf_7.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/freetype-2.10.4-h0708190_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/krb5-1.19.2-hcc1bbae_3.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libtiff-4.2.0-hbd63e13_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/python-3.7.12-hb7a2778_100_cpython.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/backcall-0.2.0-pyh9f0ad1d_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/backports-1.0-py_2.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/cached_property-1.5.2-pyha770c72_1.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/certifi-2024.6.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.3.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/cycler-0.11.0-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/decorator-5.1.0-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.2.0-pyhd8ed1ab_2.conda
https://conda.anaconda.org/conda-forge/noarch/idna-3.7-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.0.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/lcms2-2.12-hddcbb42_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libcurl-7.80.0-h2574ce0_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/lockfile-0.12.2-py_1.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/munkres-1.1.4-pyh9f0ad1d_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/natsort-8.4.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/olefile-0.47-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/openjpeg-2.4.0-hb52868f_1.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/packaging-23.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/parso-0.8.3-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pickleshare-0.7.5-py_1003.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/ptyprocess-0.7.0-pyhd3deb0d_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pycparser-2.21-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pyparsing-3.1.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.7-2_cp37m.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pytz-2021.3-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/six-1.16.0-pyh6c4a22f_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/threadpoolctl-3.1.0-pyh8a188c0_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/tomli-2.0.1-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/traitlets-5.1.1-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.7.1-pyha770c72_0.conda
https://conda.anaconda.org/conda-forge/noarch/wheel-0.37.0-pyhd8ed1ab_1.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/zipp-3.15.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/bioconda/linux-64/bowtie2-2.4.4-py37h13ad519_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/brotli-python-1.0.9-py37hd23a5d3_7.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/cached-property-1.5.2-hd8ed1ab_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/cffi-1.15.0-py37h036bc23_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/cython-0.29.26-py37hcd2ae1e_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/hdf5-1.12.1-nompi_h2750804_103.tar.bz2
https://conda.anaconda.org/bioconda/linux-64/htslib-1.14-h9093b5e_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/importlib-metadata-4.11.4-py37h89c1867_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/jedi-0.18.1-py37h89c1867_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/matplotlib-inline-0.1.3-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/msgpack-python-1.0.3-py37h7cecad7_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/numpy-1.21.4-py37h31617e3_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pexpect-4.8.0-pyh9f0ad1d_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/pillow-8.2.0-py37h4600e1f_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/pysocks-1.7.1-py37h89c1867_5.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/python-dateutil-2.8.2-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/setuptools-59.6.0-py37h89c1867_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/typing-extensions-4.7.1-hd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/unicodedata2-14.0.0-py37h540881e_1.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/backports.functools_lru_cache-1.6.4-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/brotlipy-0.7.0-py37h540881e_1004.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/cryptography-37.0.2-py37h38fbfac_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/fonttools-4.33.3-py37h540881e_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/h5py-3.6.0-nompi_py37hd308b1e_100.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/hdmedians-0.14.2-py37hb1e94ed_1.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/importlib_metadata-4.11.4-hd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/joblib-1.3.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/kiwisolver-1.4.2-py37h7cecad7_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/pandas-1.3.5-py37he8f5f7f_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pip-21.3.1-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pygments-2.10.0-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/bioconda/linux-64/samtools-1.14-hb421002_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/scipy-1.7.3-py37hf2a6cf1_0.tar.bz2
https://conda.anaconda.org/bioconda/linux-64/bbmap-38.93-he522d1c_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/matplotlib-base-3.5.1-py37h1058ff1_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/pluggy-1.0.0-py37h89c1867_3.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pyopenssl-22.0.0-pyhd8ed1ab_1.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/scikit-learn-1.0.1-py37hf9e9bfc_3.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/wcwidth-0.2.5-pyh9f0ad1d_2.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/prompt-toolkit-3.0.24-pyha770c72_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/pytest-7.4.4-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/urllib3-1.26.7-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ipython-7.30.1-py37h89c1867_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/requests-2.32.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/cachecontrol-0.14.0-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/linux-64/scikit-bio-0.5.6-py37ha21ca33_4.tar.bz2
2 changes: 1 addition & 1 deletion asap/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = 'Darrin Lemmer'
__email__ = '[email protected]'
__version__ = "0.0.12"
__version__ = "1.9.0"
32 changes: 16 additions & 16 deletions asap/analyzeAmplicons.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import pkg_resources

from asap import dispatcher
from asap import bamProcessor
from asap import assayInfo
from asap import __version__
from asap import cmdParser
Expand All @@ -46,8 +45,6 @@ def __unicode__(self):
def main(argv=None): # IGNORE:C0111
'''Command line options.'''

# print("Starting analyzeAmplicons")

if argv is None:
argv = sys.argv
else:
Expand Down Expand Up @@ -103,7 +100,10 @@ def main(argv=None): # IGNORE:C0111
# optional_group.add_argument("--smor", action="store_true", default=False, help="perform SMOR analysis with overlapping reads. [default: False]")
# optional_group.add_argument("-w", "--whole-genome", action="store_true", dest="wholegenome", default=False, help="JSON file uses a whole genome reference, so don't write out the consensus, depth, and proportion arrays for each sample")
# optional_group.add_argument("--allele-output-threshold", dest="allele_min_reads", default=8, type=int, help="cutoff of # of reads below which allels for amino acids and nucleotide alleles will not be output [default: 8]")
# optional_group.add_argument("--remove-dups", action="store_true", dest="remove_dups", default=False, help="remove duplicate reads (ony makes sense for WGS or WMTS data. [default: False]")
# optional_group.add_argument("--remove-dups", action="store_true", dest="remove_dups", default=False, help="remove duplicate reads (probably only makes sense for WGS or WMTS data. [default: False]")
# optional_group.add_argument("--subsample", dest="numreads", type=int, help="Subsample all read files/pairs down to NUMREADS reads/pairs.")
# optional_group.add_argument("--min-base-qual", dest="bqual", default=5, type=int, help="what is the minimum base quality score (BQS) to use a position (Phred scale, i.e. 10=90, 20=99, 30=99.9 accuracy")
# if min-base-qual=0 and primer-mask=False, then this should behave almost identically to before my edits, there may be some 'negligable' differences
# trim_group = parser_analyzeAmplicons.add_argument_group("read trimming options")
# on_off_group = trim_group.add_mutually_exclusive_group()
# on_off_group.add_argument("--trim", default="bbduk", help="perform adapter trimming on reads. [default: bbduk]. NOTE: cannot trim-primers if not using bbduk")
Expand All @@ -117,7 +117,7 @@ def main(argv=None): # IGNORE:C0111
# align_group.add_argument("--aligner-args", dest="aargs", metavar="ARGS", default='', help="additional arguments to pass to the aligner, enclosed in \"\".")
# align_group.add_argument("-d", "--depth", default=100, type=int, help="minimum read depth required to consider a position covered. [default: 100]")
# align_group.add_argument("-b", "--breadth", default=0.8, type=float, help="minimum breadth of coverage required to consider an amplicon as present. [default: 0.8]")
# align_group.add_argument("-p", "--proportion", type=float, help="minimum proportion required to call a mutation at a given locus. [default: 0.1]") #Don't explicitly set default because I need to be certain whether user set the value
# align_group.add_argument("-p", "--proportion", default=-1, type=float, help="minimum proportion required to call a mutation at a given locus. [default: 0.1]") #Set default to -1 so I can tell if user actually set the value or not
# align_group.add_argument("-m", "--mutation-depth", dest="mutdepth", default=5, type=int, help="minimum number of reads required to call a mutation at a given locus. [default: 5]")
# align_group.add_argument("-i", "--identity", dest="percid", default=0, type=float, help="minimum percent identity required to align a read to a reference amplicon sequence. [default: 0]")
# align_group.add_argument("-il", "--identitylist", dest="percidlist", nargs='+', help="amplicon specific percent identies. Space seperated in amplicon then percentage order.")
Expand All @@ -126,8 +126,6 @@ def main(argv=None): # IGNORE:C0111
# mask_group.add_argument("--primer-wiggle", dest="wiggle", default=9, type=int, help="how many nucleotides outside the primer window should be used to identify primer sequences")
# mask_group.add_argument("--primer-mask-bam", dest="pmaskbam", default=True, help="should primer sequences in the alignement file be changed to N for easy viewing (otherwise only base qual is set to 0)")
# # mask_group.add_argument("--primer-only-bam", dest="ponlybam", default=False, help="Should only sequences with primers be considered when calling variants, currently not implemented")
# optional_group.add_argument("--min_base_qual", dest="bqual", default=5, type=int, help="what is the minimum base quality score (BQS) to use a position (Phred scale, i.e. 10=90, 20=99, 30=99.9 accuracy")
# # if min_base_qual=0 and primer-mask=False, then this should behave almost identically to before my edits, there may be some 'negligable' differences
# consensus_group = parser_analyzeAmplicons.add_argument_group("consensus calling options")
# consensus_group.add_argument("--consensus-proportion", default=0.8, type=float, help="minimum proportion required to call at base at that position, else 'N'. [default: 0.8]")
# consensus_group.add_argument("--fill-gaps", nargs="?", const="n", dest="gap_char", help="fill no coverage gaps in the consensus sequence [default: False], optional parameter is the character to use for filling [defaut: n]")
Expand Down Expand Up @@ -181,16 +179,10 @@ def main(argv=None): # IGNORE:C0111
debug = args.debug
wholegenome = args.wholegenome
remove_dups = args.remove_dups
subsample = args.numreads
con_prop = args.consensus_proportion
fill_gap_char = args.gap_char
fill_del_char = args.del_char
if smor:
if proportion:
bamProcessor.smartSMOR = False #Turn off smartSMOR if user explicitely sets proportion flag
else:
proportion = 0.001 #Set SMOR default
else:
proportion = proportion or 0.1 #Set default if user did not specify

if primer_seqs != False and trim != "bbduk":
response = input(
Expand Down Expand Up @@ -258,9 +250,17 @@ def main(argv=None): # IGNORE:C0111
continue
if trim != False: #if trimming has not been turned off by --no-trim
trimmed_reads = dispatcher.trimAdapters(*read, outdir=out_dir, adapters=adapters, quality=qual, minlen=minlen, dependency=index_job, trimmer=trim, primers=primer_seqs)
(bam_file, job_id) = dispatcher.alignReadsToReference(trimmed_reads.sample, trimmed_reads.reads, ref_fasta, out_dir, jobid=trimmed_reads.jobid, aligner=aligner, args=aligner_args, remove_dups=remove_dups)
if subsample:
subsampled_reads = dispatcher.subsampleReads(trimmed_reads.sample, trimmed_reads.reads, outdir=out_dir, number=subsample, dependency=trimmed_reads.jobid)
(bam_file, job_id) = dispatcher.alignReadsToReference(subsampled_reads.sample, subsampled_reads.reads, ref_fasta, out_dir, jobid=subsampled_reads.jobid, aligner=aligner, args=aligner_args, remove_dups=remove_dups)
else:
(bam_file, job_id) = dispatcher.alignReadsToReference(trimmed_reads.sample, trimmed_reads.reads, ref_fasta, out_dir, jobid=trimmed_reads.jobid, aligner=aligner, args=aligner_args, remove_dups=remove_dups)
else: #if trimming has been turned off go straight to aligning
(bam_file, job_id) = dispatcher.alignReadsToReference(read.sample, read.reads, ref_fasta, out_dir, jobid=index_job, aligner=aligner, args=aligner_args, remove_dups=remove_dups)
if subsample:
subsampled_reads = dispatcher.subsampleReads(*read, outdir=out_dir, number=subsample, dependency=index_job)
(bam_file, job_id) = dispatcher.alignReadsToReference(subsampled_reads.sample, subsampled_reads.reads, ref_fasta, out_dir, jobid=subsampled_reads.jobid, aligner=aligner, args=aligner_args, remove_dups=remove_dups)
else:
(bam_file, job_id) = dispatcher.alignReadsToReference(read.sample, read.reads, ref_fasta, out_dir, jobid=index_job, aligner=aligner, args=aligner_args, remove_dups=remove_dups)
bam_list.append((read.sample, bam_file, job_id))
if trim == "bbduk":
if not os.path.isdir(out_dir+"/trimmed/STATS/"):
Expand Down
Loading

0 comments on commit 8e5bd11

Please sign in to comment.