README.md

rDoAMP v0.3.1

DOI

興味ある配列データ(特定の分類群の配列など)が指定したプライマーで増幅しうるかどうかをチェックするためのパッケージです。rentrez を使って検索ワードにヒットした配列を Entrez (https://www.ncbi.nlm.nih.gov/Web/Search/entrezfs.html) からダウンロードし、seqkit amplicon で指定したプライマーで増幅しうるかどうかチェックします。

macOS と Windows で動作確認しています。

事前にインストールする必要があるパッケージ

依存パッケージ

インストール

ベータ版はRコンソール内で以下のコードを入力するとインストールできます。

# install.packages("devtools")
devtools::install_github("ong8181/rDoAMP")

クイックスタート

Rで以下を入力すると検索ワードでヒットしてダウンロードされた配列の中で、指定したプライマーで増幅しうる配列が出力フォルダに保存されます。

# Load package
library(rDoAMP); packageVersion("rDoAMP")

# Display Help
?doamp_auto
?doamp_custom
?expand_degenerate_primer

# Load primer set
data(primer_set)

# Download sequence data and check whether MiFish primer set can amplify downloaded sequences
doamp_auto("Trachurus AND mitochondrion AND 1000:20000[SLEN]",
           F_primer = primer_set$Animal12S_MiFish_U$forward,   # MiFish-U-F
           R_primer = primer_set$Animal12S_MiFish_U$reverse,   # MiFish-U-R
           n_mismatch = 3,
           overwrite_output_dir = FALSE)

出力フォルダに保存されるファイル

詳しいマニュアル

doamp_auto()

引数

doamp_auto(search_query,
           F_primer,
           R_primer,
           n_retmax = 20,
           n_retidmax = n_retmax * 10,
           n_mismatch = 0,
           random_sampling = TRUE,
           random_sampling_seed = 1234,
           output_dir = "rDoAMP_Out",
           save_parameter = TRUE,
           save_stat = TRUE,
           overwrite_output_dir = FALSE)

基本的な使用方法

doamp_auto("Trachurus AND mitochondrion AND 1000:20000[SLEN]",
           F_primer = "GTCGGTAAAACTCGTGCCAGC",                    # MiFish-U-F
           R_primer = "CATAGTGGGGTATCTAATCCCAGTTTG",              # MiFish-U-R
           n_mismatch = 3)

doamp_custom()

引数

doamp_custom(target_fasta,
             F_primer,
             R_primer,
             n_mismatch = 0,
             output_dir = "rDoAMP_Out",
             save_parameter = TRUE,
             save_stat = TRUE,
             overwrite_output_dir = FALSE) 

基本的な使用方法

doamp_custom("YOUR_FASTA.fasta",
             F_primer = "GTCGGTAAAACTCGTGCCAGC",                    # MiFish-U-F
             R_primer = "CATAGTGGGGTATCTAATCCCAGTTTG",              # MiFish-U-R
             n_mismatch = 3)

データセット primer_set

Quick tutorial

R functions to extract amplicons from target sequences using a user-specified primer set. - DOes my primer set AMPlify my targets? -

(Convenient wrapper functions for seqkit amplicon)

Executable in macOS and Windows.

Prerequisites

Dependencies

Installation

You can install the development version of rDoAMP from GitHub with:

# install.packages("devtools")
devtools::install_github("ong8181/rDoAMP")

Quick start

# Load package
library(rDoAMP); packageVersion("rDoAMP")

# Display Help
?doamp_auto
?doamp_custom
?expand_degenerate_primer

# Load primer set
data(primer_set)

# Download sequence data and check whether MiFish primer set can amplify downloaded sequences
doamp_auto("Trachurus AND mitochondrion AND 1000:20000[SLEN]",
           F_primer = primer_set$Animal12S_MiFish_U$forward,   # MiFish-U-F
           R_primer = primer_set$Animal12S_MiFish_U$reverse,   # MiFish-U-R
           n_mismatch = 3,
           overwrite_output_dir = FALSE)

Output files

Detailed manual

doamp_auto()

Arguments

doamp_auto(search_query,
           F_primer,
           R_primer,
           n_retmax = 20,
           n_retidmax = n_retmax * 10,
           n_mismatch = 0,
           random_sampling = TRUE,
           random_sampling_seed = 1234,
           output_dir = "rDoAMP_Out",
           save_parameter = TRUE,
           save_stat = TRUE,
           overwrite_output_dir = FALSE)

Basic usage

doamp_auto("Trachurus AND mitochondrion AND 1000:20000[SLEN]",
           F_primer = "GTCGGTAAAACTCGTGCCAGC",                    # MiFish-U-F
           R_primer = "CATAGTGGGGTATCTAATCCCAGTTTG",              # MiFish-U-R
           n_mismatch = 3)

doamp_custom()

Arguments

doamp_custom(target_fasta,
             F_primer,
             R_primer,
             n_mismatch = 0,
             output_dir = "rDoAMP_Out",
             save_parameter = TRUE,
             save_stat = TRUE,
             overwrite_output_dir = FALSE) 

Basic usage

doamp_custom("YOUR_FASTA.fasta",
             F_primer = "GTCGGTAAAACTCGTGCCAGC",                    # MiFish-U-F
             R_primer = "CATAGTGGGGTATCTAATCCCAGTTTG",              # MiFish-U-R
             n_mismatch = 3)

primer_set



ong8181/rDoAMP documentation built on Aug. 27, 2023, 10:15 a.m.