Entering edit mode
mictadlo
▴
10
@mictadlo-10885
Last seen 4.8 years ago
Hi,
I followed this paper until Pathway analysis
because I wanted to replace it by goseq
.
> head(gene_len)
V1 V2 V3
1 Length GC NA
2 sp0000001 6406 0.3535748
3 sp0000002 333 0.5495495
4 sp0000003 216 0.4583333
5 sp0000004 357 0.5602241
6 sp0000005 4808 0.3928869
> head(go_mapping)
V1 V2
1 geneID Gomapping
2 sp0000001 n/a
3 sp0000005 GO:0003723
4 sp0000006 GO:0016021
5 sp0000007 GO:0003700
6 sp0000007 GO:0006355
Unfortunately, nullp
caused the following error:
> pwf <- nullp(tr, "sp", id=go_mapping, bias.data=gene_len)
Error in nullp(tr, "sp", id = go_mapping, bias.data = gene_len) :
bias.data vector must have the same length as DEgenes vector!
How is it possible to fix it?
Thank you in advance.
Hi, I took your suggested on board but I have a problem with
nullp
's DEgenes Argument (A named binary vector where 1 represents DE, 0 not DE and the names are gene IDs). In this paper they used the following to determine differential expressionHow do I convert
tr
toDEgenes
?Thank you in advance.