problem in results
0
1
Entering edit mode
7.9 years ago
ashkan ▴ 160

Hi Guys,

I have RNA-seq data and want Choose one or more tags to match

thanks

RNA-Seq genome next-gen • 1.2k views
ADD COMMENT
1
Entering edit mode

In what way is HTSeq involved in preparing your files?

ADD REPLY
1
Entering edit mode

I made wig files like this:

import HTSeq
alignment_file = HTSeq.SAM_Reader("accepted_hits.sam")
fragmentsize = 20
coverage = HTSeq.GenomicArray("auto", stranded = True, typecode = 'i')

for alignment in alignment_file:
  if alignment.aligned:
    alignment.iv.length = fragmentsize
    coverage[ alignment.iv] += 1

coverage.write_bedgraph_file ( "plus.wig", "+")
coverage.write_bedgraph_file ( "minus.wig", "-")
ADD REPLY
2
Entering edit mode

Make your life easier and just use bamCoverage from deepTools.

ADD REPLY
1
Entering edit mode

thank you so much ryan

ADD REPLY
1
Entering edit mode

See here.

ADD REPLY

Login before adding your answer.

Traffic: 2547 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6