Question: How to fix Error in `$<-.data.frame`(`*tmp*`, "Kingdom", value = character(0)) : replacement has 0 rows, data has 2407
0
gravatar for arsilan324
16 months ago by
arsilan32470
arsilan32470 wrote:

Hi all, I am stuck with this error.

Error in `$<-.data.frame`(`*tmp*`, "Kingdom", value = character(0)) : 
  replacement has 0 rows, data has 2407

This is what I get after running this command

amp_rabund(data = physeqP,
           tax.aggregate = "Genus",
           tax.add = "Phylum",
           scale.seq = 100)

This is how my phyloseq object (data) looks like

> physeqP
phyloseq-class experiment-level object
otu_table()   OTU Table:         [ 2407 taxa and 73 samples ]
sample_data() Sample Data:       [ 73 samples by 3 sample variables ]
tax_table()   Taxonomy Table:    [ 2407 taxa by 6 taxonomic ranks ]

I have tried to do it on data subset as well but it fails every time. I am not even able to understand what problem it is. The instructions i am following are given in this link

http://madsalbertsen.github.io/ampvis/examples/ampvis_guide.html

I would be very thankful if you please help me fix the issue... Thanks in advance Arslan

phyloseq rank abundance • 3.5k views
ADD COMMENTlink modified 16 months ago • written 16 months ago by arsilan32470

You need to show the actual command producing this error and some context surrounding it.

ADD REPLYlink written 16 months ago by Devon Ryan93k

Apologies. Here is the command.

amp_rabund(data = dsn,
           tax.aggregate = "Genus",
           tax.add = "Phylum",
           scale.seq = 100)
ADD REPLYlink written 16 months ago by arsilan32470
0
gravatar for arsilan324
16 months ago by
arsilan32470
arsilan32470 wrote:

The new version ampvis2 worked perfectly. Thanks!

ADD COMMENTlink written 16 months ago by arsilan32470
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.3.0
Traffic: 867 users visited in the last hour