wdl2459 / ConQuR

Batch effects removal for microbiome data via conditional quantile regression
GNU General Public License v3.0
27 stars 4 forks source link

Error in relevel.default(batchid, ref = batch_ref) : 'relevel' only for (unordered) factors #24

Open wygcsu opened 4 months ago

wygcsu commented 4 months ago

taxa_corrected1 = ConQuR(tax_tab=taxa, batchid=batchid, covariates=covar, batch_ref="0") there were 2 bactchs and 1 covariate

wdl2459 commented 4 months ago

Please batchid=factor(batchid) first before using ConQuR. This is because the relevel() function only works on factors. Please let me know whether it works. Thanks!

wygcsu commented 4 months ago

Please batchid=factor(batchid) first before using ConQuR. This is because the relevel() function only works on factors. Please let me know whether it works. Thanks!

Thank you very much! it works well.