MicrobiomeStat icon indicating copy to clipboard operation
MicrobiomeStat copied to clipboard

qiime2 style metadata import error

Open magicprotoss opened this issue 2 months ago • 1 comments

When importing a qiime2 style metadata file, the function mStat_import_qiime2_as_data_obj() does not remove the annotation row "q2:types" specifing the data type

data.obj <- mStat_import_qiime2_as_data_obj( otu_qza = "qiime2_mp_data/rarefied_table.qza", taxa_qza = "qiime2_mp_data/taxonomy.qza", sam_tab = "qiime2_mp_data/sample_metadata.tsv", tree_qza = "qiime2_mp_data/rooted-tree.qza" )

head(data.obj$meta.dat) sample.id barcode.sequence body.site year month day subject reported.antibiotic.usage days.since.experiment.start #q2:types #q2:types categorical categorical numeric numeric numeric categorical categorical numeric L1S8 L1S8 AGCTGACTAGTC gut 2008 10 28 subject-1 Yes 0 L1S57 L1S57 ACACACTATGGC gut 2009 1 20 subject-1 No 84 L1S76 L1S76 ACTACGTGTGGT gut 2009 2 17 subject-1 No 112 L1S105 L1S105 AGTGCGATGCGT gut 2009 3 17 subject-1 No 140 L2S155 L2S155 ACGATGCGACCA left palm 2009 1 20 subject-1 No 84

magicprotoss avatar Apr 27 '24 12:04 magicprotoss