This is a test version of Biostars. For the public version, visit https://www.biostars.org.
problem in results

Hi Guys,

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

thanks

rna-seq genome next-gen

In what way is HTSeq involved in preparing your files?

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", "-")

Make your life easier and just use bamCoverage from deepTools.

thank you so much ryan

0 answers

No answers yet.

Log in to answer this question.