介紹 ShortRead

R 中的 Bioconductor 入門

Paula Andrea Martinez, PhD.

Data Scientist

植物基因體

  • 小型開花植物:Arabidopsis thaliana(阿拉伯芥)
  • 第一個完成基因體定序的植物
  • 基因體大小 135 兆鹼基對(Mbp)

Arabidopsis thaliana

R 中的 Bioconductor 入門

定序公司

定序儀廠商標誌

1 Dan Koboldt massgenomics.org
R 中的 Bioconductor 入門

fastq 與 fasta

fastq

@ unique sequence identifier

raw sequence string

+ optional id

quality encoding per sequence letter
  • fastq, fq

fasta

> unique sequence identifier

raw sequence string

  • fasta, fa, seq
R 中的 Bioconductor 入門

fasta

library(ShortRead)
# read fasta
fasample <- readFasta(dirPath = "data/", pattern = "fasta")

# print fasample print(fasample)
class: ShortRead
length: 500 reads; width: 50 cycles
# methods accessors
methods(class = "ShortRead")

# Write a ShortRead object writeFasta(fasample, file = "data/sample.fasta")
R 中的 Bioconductor 入門

fastq

library(ShortRead)
# read fastq
fqsample <- readFastq(dirPath = "data/", pattern = "fastq")

# print fqsample fqsample
class: ShortReadQ
length: 500 reads; width: 50 cycles
# methods accessors
methods(class = "ShortReadQ")

# Write a ShortRead object writeFastq(fqsample, file = "data/sample.fastq.gz")
R 中的 Bioconductor 入門

fastq 範例

library(ShortRead)

# set the seed to draw the same read sequences every time set.seed(123)
# Subsample of 500 bases sampler <- FastqSampler("data/SRR1971253.fastq", 500)
# save the yield of 500 read sequences sample_small <- yield(sampler)
# Class ShortReadQ class(sample_small) # length 500 reads length(sample_small)
R 中的 Bioconductor 入門

你已經準備好了!

R 中的 Bioconductor 入門

Preparing Video For Download...