Python Programming for Biology: Bioinformatics and Beyond



Download 7,75 Mb.
Pdf ko'rish
bet261/514
Sana30.12.2021
Hajmi7,75 Mb.
#91066
1   ...   257   258   259   260   261   262   263   264   ...   514
Bog'liq
[Tim J. Stevens, Wayne Boucher] Python Programming

Using the HTSeq library

Now we come to actually using the result of a short-read to genome alignment to illustrate

how  the  results  may  be  analysed.  For  this  section  we  will  be  making  use  of  the  HTSeq

library,  which  is  not  a  standard  Python  module,  but  which  should  be  downloaded  and

installed  separately.

16

 All  of  the  following  could  be  done  with  pure  Python  and  its



standard libraries, but by using this extra module we will be making the job much easier,

and  this  will  hopefully  result  in  the  ability  to  do  more  science.  Also,  we  could  consider

using  other  packages  like  Pysam,

17

 which  can  read  genomic  alignments,  though  overall



HTSeq provides more diverse functionality.

To  use  the  HTSeq  library,  once  it  is  properly  installed,  we  simply  import  it  into  our

Python programs. The imports give the ability to read several bioinformatics file formats:

FASTQ  for  the  sequence  reads,  SAM  for  the  genome  alignment  results  and  GFF  files

which give the genome annotation information (e.g. where the genes lie in the sequence),

to  which  we  can  relate  the  high-throughput  sequencing  data.  The  GenomicArray  and

GenomicInterval  imports  are  object  classes  that  we  will  use  to  hold  the  sequence

information in an efficient and easily accessible manner. Next some imports are made to

make graphs with the matplotlib library and the usual NumPy module to handle numeric

arrays with which we can do the mathematics.

from HTSeq import FastqReader, SAM_Reader, GFF_Reader

from HTSeq import GenomicArray, GenomicInterval

from matplotlib import pyplot

from numpy import array




Download 7,75 Mb.

Do'stlaringiz bilan baham:
1   ...   257   258   259   260   261   262   263   264   ...   514




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish