Search
Question: error in filtering genes with rowVars(gexpr(bg_chrX)) >1
0
gravatar for fubeide
10 weeks ago by
fubeide0
fubeide0 wrote:

Hi,

        I'm doing RNA-Seq data analysis following nature protocol paper (Transcript-level expression analysis of RNA-seq experiments with HISAT, StringTie and Ballgown). But after going to step 10 (bg_liver_filt=subset(bg_liver_filt,"rowVars(gexpr(bg_liver_filt))>1",genomesubset=TRUE)), I found some genes in my results with expression of 0 in all samples. just like this:

Ar.10265 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
Ar.10715 0.180575 0.000000 0.160167 0.000000 0.000000 0.000000
Ar.10726 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
Ar.10727 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000

(got by liver_gene_expr=gexpr(bg_liver_filt))

So, I think their must be something wrong with subset .........

Thanks for any help.

Beide

 

ADD COMMENTlink modified 10 weeks ago • written 10 weeks ago by fubeide0
0
gravatar for James W. MacDonald
10 weeks ago by
United States
James W. MacDonald44k wrote:

subset is a function from base R that has been around since the dark ages, and used by millions daily. The likelihood that there is a bug in that function is infinintesimal compared to the likelihood that you made a mistake in your code, so I would go back and re-check your code first.

ADD COMMENTlink written 10 weeks ago by James W. MacDonald44k

Thank you for your reply. But I think I didn't give enough info about the function subset. The function subset I used is not from base R, but from package ballgown..................

I go back and checked my code and found that after using the filtering criteria (rowVars(gexpr(bg_liver_filt))>1), I got the logic variable of each gene in my ballgown object ,just like:

Ar.10265     Ar.10266

FALSE        FALSE

However,  these genes were still kept in the filtered ballgown object. I don't know why it is so wired..........

 

ADD REPLYlink written 10 weeks ago by fubeide0
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 198 users visited in the last hour