skewer过滤软件的安装及使用

skewer 是一个能快速且准确地处理NGS双端reads的接头去除软件。

一、安装软件

conda install -c bioconda skewer=v0.2.2

二、skewer命令参数详解

USAGE: skewer [options] <reads.fastq> [paired-reads.fastq]
    or skewer [options] - (for input from STDIN)

OPTIONS (ranges in brackets, defaults in parentheses):
 Adapter:
          -x <str> Adapter sequence/file (AGATCGGAAGAGCACACGTCTGAACTCCAGTCAC)  ##接头序列文件
          -y <str> Adapter sequence/file for pair-end reads (AGATCGGAAGAGCGTCGTGTAGGGAAAGAGTGTA),  ##双端序列的接头序列文件
                   implied by -x if -x is the only one specified explicitly.
          -M, --matrix <str> File indicates valid adapter pairing (all-ones matrix).
          -j <str> Junction adapter sequence/file for Nextera Mate Pair reads (CTGTCTCTTATACACATCTAGATGTGTATAAGAGACAG)
          -m, --mode <str> trimming mode; 1) single-end -- head: 5' end; tail: 3' end; any: anywhere (tail)
                           2) paired-end -- pe: paired-end; mp: mate-pair; ap: amplicon (pe)
          -b, --barcode    Demultiplex reads according to adapters/primers (no)
 Tolerance:
          -r <num> Maximum allowed error rate (normalized #errors / length of aligned region) [0, 0.5], (0.1)   ##允许的最大错误率
          -d <num> Maximum allowed indel error rate [0, r], (0.03)   ##允许的最大插入或缺失错误率
                   reciprocal is used for -r, -e and -d when num > or = 2
          -k <int> Minimum overlap length for adapter detection [1, inf);
                   (max(1, int(4-10*r)) for single-end; (<junction length>/2) for mate-pair)
 Clipping:
          -c, --cut <int>,<int> Hard clip off the 5' leading bases as the barcodes in amplicon mode; (no)
          -e, --cut3            Hard clip off the 3' tailing bases if the read length is greater than
                                the maximum read length specified by -L; (no)
 Filtering:
          -q, --end-quality  <int> Trim 3' end until specified or higher quality reached; (0)   ## 3'端末尾碱基质量
          -Q, --mean-quality <int> The lowest mean quality value allowed before trimming; (0)  ##最小平均质量值
          -l, --min <int> The minimum read length allowed after trimming; (18)  ##过滤后最小read长度
          -L, --max <int> The maximum read length allowed after trimming; (no limit)  ##过滤后最大read长度
          -n  Whether to filter out highly degenerative (many Ns) reads; (no)  ## 是否过滤掉含有许多N的reads
          -u  Whether to filter out undetermined mate-pair reads; (no)  
          -N, --fillNs Whether to replace trimmed bases with Ns (has no effect with 'b' or '-m mp'); (no)
 Input/Output:
          -f, --format <str>   Format of FASTQ quality value: sanger|solexa|auto; (auto)  ##FASTQ质量值的输出格式,默认自动
          -o, --output <str>   Base name of output file; ('<reads>.trimmed')  ## 输出文件的前缀名
          -z, --compress       Compress output in GZIP format (no)  ##以压缩格式GZIP输出
          -1, --stdout         Redirect output to STDOUT, suppressing -b, -o, and -z options (no)
          --qiime              Prepare the "barcodes.fastq" and "mapping_file.txt" for processing with QIIME; (default: no)
          --quiet              No progress update (not quiet)
          -A, --masked-output  Write output file(s) for trimmed reads (trimmed bases converted to lower case) (no)
          -X, --excluded-output Write output file(s) for excluded reads (no)
 Miscellaneous:
          -i, --intelligent     For mate-pair mode, whether to redistribute reads based on junction information; (no)
          -t, --threads <int>   Number of concurrent threads [1, 32]; (1)   ##运行线程数

三、示例

EXAMPLES:
          skewer -Q 9 -t 2 -x adapters.fa sample.fastq -o trimmed
          skewer -x AGATCGGAAGAGC -q 3 sample-pair1.fq.gz sample-pair2.fq.gz
          skewer -x TCGTATGCCGTCTTCTGCTTGT -l 16 -L 30 -d 0 srna.fastq
          skewer -m mp -i lmp-pair1.fastq lmp-pair2.fastq
          skewer -m ap --cut 0,6 --qiime -x forward-primers.fa -y reverse-primers.fa mix-pair1.fastq mix-pair2.fastq
          ##双端序列过滤,输出结果如下图所示:
          skewer -m pe -q 3 -l 30 -n -z ./raw_reads/ERR3209755_1.fastq.gz ./raw_reads/ERR3209755_2.fastq.gz -o ./trimmed_reads/ERR3209755

image.png
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 216,997评论 6 502
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 92,603评论 3 392
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 163,359评论 0 353
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,309评论 1 292
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,346评论 6 390
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,258评论 1 300
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,122评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 38,970评论 0 275
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,403评论 1 313
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,596评论 3 334
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,769评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,464评论 5 344
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,075评论 3 327
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,705评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 32,848评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 47,831评论 2 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,678评论 2 354