How to extract transcripts from Txdb with length >100
1
2
Entering edit mode
@alexandrgopanenko-11598
Last seen 17 months ago
Germany

Hello!

1)I have created TxDb  using makeTxDbFromGFF.

2)Then I want to extract only transcript with length >100.

3)Then I want to export.gff3 to save a new gff3 file utilizing rtracklayer. 

 

How to do the second step with length parameter???

 

Thank you in advance,

Alex

genomicfeatures rtracklayer • 1.0k views
ADD COMMENT
2
Entering edit mode
@martin-morgan-1513
Last seen 4 months ago
United States

Extract the transcripts from the TxDb and subset for the width you are interested in

> tx = transcripts(TxDb.Hsapiens.UCSC.hg38.knownGene)
> length(tx)
[1] 197782
> tx100 = tx[width(tx) > 100]
> length(tx100)
[1] 192874

 

 

ADD COMMENT
0
Entering edit mode

Thank you very much!

ADD REPLY

Login before adding your answer.

Traffic: 696 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