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 vs fasta

fastq

@ 고유 시퀀스 식별자

원시 시퀀스 문자열

+ 선택적 ID

문자별 품질 인코딩
  • fastq, fq

fasta

> 고유 시퀀스 식별자

원시 시퀀스 문자열

  • 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...