#!/bin/bashif [ x$usearch == x ] ; thenecho Must set $usearch >> /dev/stderrexit 1
firm -rf ../out
mkdir -p ../out
cd ../out# Merge paired reads
# Add sample name to read label (-relabel option)
# Pool samples together in raw.fq (Linux cat command)
for Sample in Mock Soil Human Mouse
do$usearch -fastq_mergepairs ../data/${Sample}*_R1.fq -fastqout $d.fq -relabel $Sample.cat $d.fq >> d.fq
done# Strip primers (V4F is 19, V4R is 20)
$usearch -fastx_d.fq -stripleft 19 -stripright 20 -fastqout stripped.fq# Quality filter
$usearch -fastq_filter stripped.fq -fastq_maxee 1.0 -fastaout filtered.fa -relabel Filt# Find unique read sequences and abundances
$usearch -fastx_uniques filtered.fa -sizeout -relabel Uniq -fastaout uniques.fa# Make 97% OTUs and filter chimeras
$usearch -cluster_otus uniques.fa -otus otus.fa -relabel Otu# Denoise: predict biological sequences and filter chimeras
$usearch -unoise3 uniques.fa -zotus zotus.fa##################################################
# Downstream analysis of OTU sequences & OTU table
# Can do this for both OTUs and ZOTUs, here do
# just OTUs to keep it simple.
################################################### Make OTU table
$usearch -d.fq -otus otus.fa -otutabout
OTU_ID | Sample1 | Sample2 | Sample3 | Sample4 |
1 | 100 | 80 | 60 | 90 |
2 | 50 | 60 | 70 | 50 |
3 | 40 | 60 | 60 | 40 |
4 | 90 | 80 | 50 | 80 |
KEGG_ID | Sample1 | Sample2 | Sample3 | Sample4 |
ko1234 | 90 | 80 | 40 | 40 |
ko2556 | 60 | 60 | 50 | 10 |
ko6948 | 60 | 18 | 26 | 34 |
ko6549 | 66 | 93 | 10 | 80 |
本文发布于:2024-02-04 09:05:25,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/170703702454214.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |