# HG changeset patch # User pjbriggs # Date 1524642337 14400 # Node ID a898ee62834311a0df4f6f62270ef6201b31a6b0 # Parent a00f366adc45133af8460668374f337de298f013 Updated to version 1.2.1.0 diff -r a00f366adc45 -r a898ee628343 README.rst --- a/README.rst Thu Nov 09 10:09:33 2017 -0500 +++ b/README.rst Wed Apr 25 03:45:37 2018 -0400 @@ -218,6 +218,9 @@ ========== ====================================================================== Version Changes ---------- ---------------------------------------------------------------------- +1.2.1.0 Updated to Amplicon_Analysis_Pipeline version 1.2.1 (adds + option to use the Human Oral Microbiome Database v15.1, and + updates SILVA database to v123) 1.1.0 First official version on Galaxy toolshed. 1.0.6 Expand inline documentation to provide detailed usage guidance. 1.0.5 Updates including: diff -r a00f366adc45 -r a898ee628343 amplicon_analysis_pipeline.py --- a/amplicon_analysis_pipeline.py Thu Nov 09 10:09:33 2017 -0500 +++ b/amplicon_analysis_pipeline.py Wed Apr 25 03:45:37 2018 -0400 @@ -120,6 +120,7 @@ type=str.lower, default="vsearch") p.add_argument("-S",dest="use_silva",action="store_true") + p.add_argument("-H",dest="use_homd",action="store_true") p.add_argument("-r",dest="reference_data_path") p.add_argument("-c",dest="categories_file") args = p.parse_args() @@ -150,6 +151,14 @@ final_name.write("%s\n" % '\t'.join((r2,sample_name))) sample_names.append(sample_name) + # Reference database + if args.use_silva: + ref_database = "silva" + elif args.use_homd: + ref_database = "homd" + else: + ref_database = "gg" + # Construct the pipeline command print "Amplicon analysis: constructing pipeline command" pipeline = PipelineCmd("Amplicon_analysis_pipeline.sh") @@ -168,8 +177,10 @@ if args.reference_data_path: pipeline.add_args("-r",args.reference_data_path) pipeline.add_args("-P",args.pipeline) - if args.use_silva: + if ref_database == "silva": pipeline.add_args("-S") + elif ref_database == "homd": + pipeline.add_args("-H") # Echo the pipeline command to stdout print "Running %s" % pipeline @@ -190,6 +201,7 @@ except Exception as ex: # Some other problem sys.stderr.write("Unexpected error: %s\n" % str(ex)) + exit_code = 1 # Write out the list of outputs outputs_file = "Pipeline_outputs.txt" @@ -298,8 +310,7 @@ boxplots_dir = os.path.abspath( os.path.join("RESULTS", "%s_%s" % (args.pipeline.title(), - ("gg" if not args.use_silva - else "silva")), + ref_database), "Alpha_diversity", "Alpha_diversity_boxplot", "Categories_shannon")) diff -r a00f366adc45 -r a898ee628343 amplicon_analysis_pipeline.xml --- a/amplicon_analysis_pipeline.xml Thu Nov 09 10:09:33 2017 -0500 +++ b/amplicon_analysis_pipeline.xml Wed Apr 25 03:45:37 2018 -0400 @@ -1,7 +1,7 @@ - + analyse 16S rRNA data from Illumina Miseq paired-end reads - amplicon_analysis_pipeline + amplicon_analysis_pipeline cutadapt sickle bioawk @@ -22,10 +22,12 @@ + diff -r a00f366adc45 -r a898ee628343 install_tool_deps.sh --- a/install_tool_deps.sh Thu Nov 09 10:09:33 2017 -0500 +++ b/install_tool_deps.sh Wed Apr 25 03:45:37 2018 -0400 @@ -35,6 +35,9 @@ rm -rf $wd/* rmdir $wd } +function install_amplicon_analysis_pipeline_1_2_1() { + install_amplicon_analysis_pipeline $1 1.2.1 +} function install_amplicon_analysis_pipeline_1_1() { install_amplicon_analysis_pipeline $1 1.1 } @@ -335,6 +338,9 @@ export ATLAS_ROOT_PATH=$INSTALL_DIR export LD_LIBRARY_PATH=$INSTALL_DIR/lib:$LD_LIBRARY_PATH export LD_LIBRARY_PATH=$INSTALL_DIR/lib/atlas:$LD_LIBRARY_PATH + # Make installation directories + mkdir -p $INSTALL_DIR/bin + mkdir -p $INSTALL_DIR/lib/python2.7/site-packages # Numpy 1.7.1 local wd=$(mktemp -d) echo Moving to $wd @@ -357,13 +363,49 @@ popd rm -rf $wd/* rmdir $wd - # Python packages - ##install_python_package $INSTALL_DIR numpy 1.7.1 \ - ## https://pypi.python.org/packages/84/fb/5e9dfeeb5d8909d659e6892c97c9aa66d3798fad50e1d3d66b3c614a9c35/numpy-1.7.1.tar.gz \ - ## numpy-1.7.1 - install_python_package $INSTALL_DIR matplotlib 1.3.1 \ - https://pypi.python.org/packages/d4/d0/17f17792a4d50994397052220dbe3ac9850ecbde0297b7572933fa4a5c98/matplotlib-1.3.1.tar.gz \ - matplotlib-1.3.1 + # Setuptools 36.4.0 + install_python_package $INSTALL_DIR setuptools 38.2.4 \ + https://github.com/pypa/setuptools/archive/v38.2.4.tar.gz \ + setuptools-38.2.4 + # Distribute 0.6.28 + ##local wd=$(mktemp -d) + ##echo Moving to $wd + ##pushd $wd + ##wget -q https://pypi.python.org/packages/source/d/distribute/distribute-0.6.28.tar.gz + ##tar -zxvf distribute-0.6.28.tar.gz + ##cd distribute-0.6.28 + ##sed -i 's,index_url="http://pypi.python.org/simple",index_url="https://pypi.python.org/simple",g' setuptools/package_index.py + ##sed -i 's,"http://pypi.python.org/simple","https://pypi.python.org/simple",g' setuptools/command/easy_install.py + ##/bin/bash <