Ознайомлення з ShortRead

Вступ до Bioconductor в R

Paula Andrea Martinez, PhD.

Data Scientist

Геноми рослин

  • Arabidopsis thaliana — невелика квіткова рослина
  • Перша рослина з повністю секвенованим геномом
  • Розмір геному — 135 мегабазових пар (Mbp)

Arabidopsis thaliana

Вступ до Bioconductor в R

Компанії з секвенування

Логотипи секвенаторів

1 Dan Koboldt massgenomics.org
Вступ до Bioconductor в R

fastq vs 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
Вступ до Bioconductor в R

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")
Вступ до Bioconductor в R

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")
Вступ до Bioconductor в R

зразок 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)
Вступ до Bioconductor в R

Ви готові!

Вступ до Bioconductor в R

Preparing Video For Download...